4 ms·
Personal opinion: flash chips of all kinds should be write-protected so that even a clip flash does not work... but they should have an authentication mechanism
by mschuster91 2y ago
Personal opinion: flash chips of all kinds should be write-protected so that even a clip flash does not work... but they should have an authentication mechanism with, say, a 64 bytes passphrase that the end-user gets on a keycard. That way you'd need a literal "evil maid" in the household of the owner to do any modifications that might compromise the device.
- rollcat 2y agoFrom consumer electronics PoV, this is a complex and brittle measure; for simple on-board microcontrollers, write-protect could be established with a basic e-fuse. But even with e-fuses, we're talking fractions of a cent per unit, which adds up at scale - there will always be a cut-off point where a company will pursue margins instead. Meanwhile, exploding pagers.
- ajb 2y agoThese days most such chips have write protect in built in. They don't need efuses because they can just use flash bits and extra logic at negligible cost
- ce4 2y agoThat doesnt solve stuff. I had to desolder the SOIC8 chip in an X220 because my programmer didnt like the power draw of the remaining attached circuitry that consumed additional power. I also upgraded OpenWrt Routers by soldering bigger RAM and bigger flash chips in the past
- ranma42 2y ago> I also upgraded OpenWrt Routers by soldering bigger RAM and bigger flash chips in the past Sadly this is harder than it used to be because with devicetree the flash size is hardcoded, where before it was auto-detected (so previously you could swap the flash and continue to use stock firmware, not you need to compile custom firmware).
- ryukoposting 2y agoThis is simultaneously complex, hostile to the consumer, and a non-solution to the given problem. Write protection protects the chip, not the computer. And, do you seriously expect anyone to remember where they put those cards? What happens when those computers get re-sold used, and the new owner doesn't get the card with the computer?
- gosub100 2y agoWhat you're describing isn't that much different than using cryptographic signatures. Give up control of the chip and let em write whatever they want to it, but only use the data if it was signed by some private key. This is better for libre too, because you can manage your own keys (presuming you can get root access to whatever low level controller reads and loads the flash).
- bubblethink 2y agoIt doesn't have to be 64 bits passphrase. You can implement this as TOTP. Look at heads.
- freedomben 2y agoThen we have to implement TOTP (which requires a clock) in firmware. Complexity just exploded
- bubblethink 2y agoI think that is nothing compared to what modern UEFI does. There are entire hardware drivers in UEFI. To protect against software evil maid attacks, you need to authenticate the device before you use it. So it has to be some type of challenge response protocol. It can be achieved with fido type keys or it can be HOTP/TOTP.
- freedomben 2y agoFair point, we're already at the level of near full OS in the UEFI. Odds are good there's already full clock and crypto libs, so maybe it's not that much of an addition.
- deleted 2y ago[deleted]
- bigfatkitten 2y agoThat just means the adversary will need to spend two dollars[0] and an extra 15 minutes replacing the flash IC, rather than reprogramming the existing device. [0] https://www.digikey.com/en/products/detail/winbond-electronics/W25Q128JWSIQ/12090690 https://www.digikey.com/en/products/detail/winbond-electroni...