4 ms·
Just put the software in the device in ROM, a forgotten technology. No malware will survive a power cycle. It's like I read that malware could infect your "int
by WalterBright 10y ago
Just put the software in the device in ROM, a forgotten technology. No malware will survive a power cycle.
It's like I read that malware could infect your "internet of things" thermostat and then hackers could remotely turn off your heat until you pay ransom. Just put the dang thermostat code in ROM. Power cycle, goodbye malware.
For more critical stuff, just have it regularly power cycle itself.
- infinite8s 10y agoThen you can't do over the wire updates, which means no fixes after it's been manufactured and installed, which would probably increase the costs quite a bit.
- WalterBright 10y ago> Then you can't do over the wire updates, Which, of course, is the whole point. If ROMs do cost more, I bet people who want secure systems would be quite willing to pay a bit extra. It would be too expensive to put an OS in ROM, but the ROMs could contain the hashes of the OS on disk, and can verify the disk image before booting. And besides, why would I want over-the-air updates to my freakin' thermostat?
- WalterBright 10y agoAnother way is to have a jumper that is required to enable the write cycle to the flash ROMs. That enables the manufacturer to update the ROMs before shipping, then remove the jumper. Anyone trying to compromise the device would then require physical access.
- mikeash 10y agoMake it a button, so the customer can apply updates, but they need to press a button to make it happen. Add another button which, using only software stored in ROM, reloads the firmware from ROM. Then you have updates, but only when the customer knows and wants it, and if they ever screw it up then they can get back to a known good state.
- WalterBright 10y agoYup, that's the way to do it.
- Const-me 10y agoThe customer has no way of knowing whether they are installing genuine update, or MITM-modified malicious update. Public key cryptography solves that but then you have a problem how to protect the keys and crypto algorithms from tampering. Update buttons ain't a good replacement for TPM hardware.
- mikeash 10y agoIt's not a panacea, but nothing is, and it would help a lot. It's not supposed to be a replacement for anything, just an addition.
- WalterBright 10y agoIt's an enormously harder problem to convince the customer to push the "update firmware" button on the front panel than it is to insert malware remotely without any action or knowledge on the customer's part.
- Const-me 10y agoIt’s enormously easier problem to exploit a well-known remote code execution vulnerability, that’s unpatched because updates are too easy to ignore. For the end user, it’s extremely easy to NOT push that button.
- kjs3 10y agoThere are some pretty dense, cheap ROMs out there, certainly 64Mb and I think 128Mb. Nothing as dense as flash, tho. Of course, you can just disable writing of flash memory and get the same result.
- jonathankoren 10y agoThis is literally how everything was made until the very recent past. Next you'll be telling me that you can ship software on physical media.
- deleted 10y ago[deleted]
- krylon 10y agoOne may consider that an incentive for manufacturers to make sure their code is working correctly before shipping it. In many cases that would probably be prohibitively expensive, but for a thermostat or a light switch, it should not be that difficult to do.
- infinite8s 10y agoAre you including the capability to control it over a network? Burning potentially unfixable 0-day exploits into ROM would probably be a non-starter.
- WalterBright 10y agoIf you can update the firmware over a network, you have an uncloseable exploit vector. ROMs are not unfixable. They do require physical access, though, which eliminates nearly all of the risk.
- infinite8s 10y agoEven if those updates require signature verification with a public key stored in ROM? I guess the signing key cold get out or you could patch the firmware to skip the signature check (the way the initial iPhone was jailbroken)
- heavenlyhash 10y agoWe also literally just had the Windows key leaks within the last week. Un-updatable signing keys are still an uncloseable exploit vector. (And updatable signing keys are an uncloseable exploit vector. You can't win.) Physical-access-only updates: yes please. We know what the security boundary is on those, and how to reset it.
- WalterBright 10y agoProhibitively expensive? That's how things have been done for decades. Only recently have manufacturers decided that everything should be redoable over the internet.
- viraptor 10y agoIf you haven't seen it yet, you may like the stateless laptop idea: http://blog.invisiblethings.org/2015/12/23/state_harmful.html http://blog.invisiblethings.org/2015/12/23/state_harmful.htm...
- megablast 10y ago> No malware will survive a power cycle. Not true at all.
- WalterBright 10y agoPlease explain.
- deftnerd 10y agoI'm not the original poster, but unless you're talking about a very simple embedded system, most computing devices have lots of areas for malware to live that will survive power cycles. HDD firmware, graphics card firmware, various controllers have their own firmware, NIC cards have their own firmware, etc. Even if the boot device is read-only, it would be a huge challenge to build any kind of system without these vulnerable components.
- WalterBright 10y agoEvery one of those devices that is done with ROMs closes another door to malware. It's certainly far more doable and reliable than ensuring the software doesn't have holes in it. There's a huge market for secure items - routers, cars, thermostats, medical devices, avionics, ATMs, etc. I simply don't understand why ROMs aren't used.
- Dolores12 10y agoMalware infection module can be stored nearby on different device infecting your target device every time you power it on, until you patch your device.
- WalterBright 10y agoRight. But each device that uses ROMs is one less attack vulnerability. After all, if attacks can target A, B, or C, that is no excuse to not fix B.