5 ms·
The Pi doesn't have a BIOS or EFI on board, it uses a special partition on the SD card to POST from, so there's no worry of the device itself being infected. I
by nitrogen 12y ago
The Pi doesn't have a BIOS or EFI on board, it uses a special partition on the SD card to POST from, so there's no worry of the device itself being infected.
It might be possible for a malicious script that gains root access to replace the SD card firmware with something that looks clean on the Pi, but delivers malware when some conditions are met.
- a1369209993 12y agoYou can always boot from a ROM/7400 board with no writeback capability, although that's a bit of a pain to set up.
- morganvachon 12y agoYep, which is why I said "I would wipe the Pi's SD card afterward, just to be sure. Scripts can run on any architecture." The SD card is not part of the RPi; there's nothing on the board itself that is writable.
- nitrogen 12y agoWiping the SD card using standard disk tools would not affect the SD card's firmware. SD cards are not dumb storage devices; they have built-in CPUs that handle DRM, protocol interfacing, and wear leveling, possibly among other things. That CPU has its own firmware, which might be reprogrammable by an attacker that knows the right commands to send.
- morganvachon 12y agoFair enough, I didn't think about that. I guess if you were using a RPi for a quarantine job like this, you would consider the SD cards as one time use devices and destroy them after use. The RPi itself shouldn't be affected though.