6 ms·
> Hard disk makers don’t cryptographically sign the firmware they install on drives the way software vendors do. That is not a solution for this. You have to a
by AnthonyMouse 12y ago
> Hard disk makers don’t cryptographically sign the firmware they install on drives the way software vendors do.
That is not a solution for this. You have to assume that a state-level attacker will be able to either coerce the vendor or its employees into signing malicious firmware or just compromise their network and steal the signing key.
The right way to secure firmware updates is with a hardware write-enable switch/jumper that has to be physically set to make any changes to the firmware.
- tw04 12y agoI guess I could see having that as an option, but reality is that every vendor would just ship the dries with the jumper in the "flashme" position by default. Asking a consumer to pull out a drive and move a jumper to install an update is akin to asking them to remove their own spleen.
- hueving 12y agoHow often do consumers actually have to flash a hard drive with new firmware?
- tedunangst 12y agoI think every SSD I've owned, from three manufacturers, recommended firmware updates. Not nearly as rare as such updates were ten years ago.
- semi-extrinsic 12y agoI own several SSDs, but have never updated any firmwares. How do you get notified?
- thoth 12y agoProbably from installing the utility program that often comes with the SSD. I bought a Samsung 840 EVO recently and it came with "Samsung Magician" which dutifully tells me about the Feb 2015 update available. http://www.samsung.com/global/business/semiconductor/minisite/SSD/global/html/support/downloads.html http://www.samsung.com/global/business/semiconductor/minisit... Now tedu being a BSD guy ;) probably is finding out some other way but I'm going to guess the vast majority of SSD customers have a Windows or Mac computer and just go with the utility provided by the hardware vendor, Samsung or some other company.
- semi-extrinsic 12y agoI see. All my computers run ArchLinux. Guess I should skim through the manufacturers recommendations some time.
- mrsteveman1 12y agoManufacturers don't seem to release firmware updates for hard drives very often, but even when they do, consumers may never learn that they need to apply an update to a drive they own so the actual update rate in the wild is probably very low. As an example of a rather serious firmware update that likely went unnoticed by most drive owners, some Samsung F4 EcoGreen hard drives (the ones Samsung actually made before the Seagate buyout) had a serious bug[1] that caused data corruption if a specific S.M.A.R.T. command was issued to the drive during normal operation: "The above suggests that the disk sometimes discards a pending 64 sector write command when a IDENTIFY DEVICE command is received. This data loss occurs silently. There is no error message in kernel log, SMART Error log, NCQ Command Error log page, or SATA Phy Event Counters log page." Manufacturers can't notify people directly about these things unless buyers contact info is submitted along with info about which specific drive model they own. I don't know if this patch was pushed out via Windows Update but I'd bet it wasn't. I only heard about it because Smartmontools warned me. Samsung fixed it in a firmware update but neglected to bump the version number of the firmware, so it's impossible to tell which drives have been fixed. As a result, it's quite easy to assume your drive is fine, so Smartmontools will print this in any system with any HD204UI or HD155UI detected: ==> WARNING: Using smartmontools or hdparm with this drive may result in data loss due to a firmware bug. ****** THIS DRIVE MAY OR MAY NOT BE AFFECTED! ****** Buggy and fixed firmware report same version number! See the following web pages for details: http://knowledge.seagate.com/articles/en_US/FAQ/223571en http://www.smartmontools.org/wiki/SamsungF4EGBadBlocks [1] http://www.smartmontools.org/wiki/SamsungF4EGBadBlocks http://www.smartmontools.org/wiki/SamsungF4EGBadBlocks
- tw04 12y agoFirst generation SSDs, across the board, were getting firmware at least quarterly. Even ignoring that, let's move on to... enterprise storage. I don't foresee someone with a 1200 disk storage array being enthused at the prospect of popping out drives one at a time to be able to update firmware (something that is currently an online operation).
- marssaxman 12y agoIn thirty years of computing I have never flashed a hard drive with new firmware ever, for any reason.
- sjtrny 12y agoPhysical switches can easily be bypassed in the code.
- mmastrac 12y agoNot if the physical switch is directly controlling the NAND's !WP pin. If that's possible it's beyond my knowledge. eg: http://www.hynix.com/datasheet/pdf/flash/HY27UF084G2M%20Series%28Rev.0.7%29.pdf http://www.hynix.com/datasheet/pdf/flash/HY27UF084G2M%20Seri...
- sjtrny 12y agoIt seems unlikely that any PC manufacturer (Apple, Dell, HP etc) would force their users to open up their machines and flick the WP switch on the hard drive controller to install a firmware update.
- andrewpi 12y agoThey could wire it to a key on the keyboard, so you have to hold down 'Esc' to flash a firmware update, for example.
- mmastrac 12y agoUnless you've got a direct electrical connection between the Esc key and that pin, you've unfortunately introduced a way for software to do the same thing as holding Esc.
- mmastrac 12y agoHow often have you honestly installed a firmware update on an HDD ever? I think I've done it maybe twice in my lifetime. Both times required jumping through crazy hoops creating boot floppies. Apple would likely just ask you to bring it into the Apple store.
- eli 12y ago
- manicdee 12y agoPhysical switches are no impediment to people who already gain physical access in transit.
- rl3 12y agoPhysical switches would be an impediment, actually. Some targets may fall under surveillance and not acquire new hardware for long periods of time. Years.
- AnthonyMouse 12y agoWith physical access they could just program the flash chips directly or replace the entire hard drive with a compromised one. The only way to defend against physical access is to prevent physical access.
- pdkl95 12y agoIt was a serious design flaw to move away from physical write-enable protection. Physical interlocks for rare-but-important events such as upgrading firmware should exist in almost all situations. Look back at floppy disks: while many people were caught by the write-protect tab/switch while they were still learning, it was an easy concept for people to understand once taught. I knew many non-technical people that quickly adopted habits that utilized write-protection. The physical interlock is something that can be taught a lot easier than how to use crypto without screwing up. If you require proactive checking or fancy technique, it will be forgotten and skipped. On the other hand, if you fail the update with a message "did you forget to flip the write-protect switch? [picture of switch]", a lot of people will figure it out. There are similarities to Schneier's (et al) recommendation to make good (long, random) passwords, but write them down and keep them someplace safe. (i.e. leverage the physical security knowledge that people already have)
- tehwalrus 12y agoI still use write protection on SD cards, since I had a buggy Mac that reformatted one to be unusable by my camera. I just got into the habit of flipping the switch whenever plugging a card into a machine, and it works fine (and is slightly safer).
- jnbiche 12y agoYeah, as you suggest by your "slightly safer" parenthetical, the mechanical write protection on most SD cards is just a suggestion that the card reader is free to ignore (though obviously most don't). It's actually specified in the SD spec [1], which says on p. 38 that the mechanical protect switch is "Host responsibility only" and that the "The position of the write protect switch is unknown to the internal circuitry of the card." 1. https://www.sdcard.org/downloads/pls/simplified_specs/part1_410.pdf https://www.sdcard.org/downloads/pls/simplified_specs/part1_... [pdf file]
- tehwalrus 12y agoI did read that somewhere, but I'd forgotten.. Good catch! Hardware write protection is harder to find than you think..
- userbinator 12y agoEven with hardware write-enable, they could just ship the firmware with the backdoor code by default, and sign it too. This somewhat reminds me of Computrace in the BIOS - it's advertised as a "theft recovery" solution, but could also be used as a firmware-level backdoor, and many laptops are sold with this preinstalled in the BIOS without the user's knowledge. (It's easy enough to remove for those who are into hacking BIOSes, but anyone asking how gets accused of stealing hardware...) The ultimate solution would be to make HDD firmware open-source, just like Coreboot for BIOSes, so the truly paranoid could download, verify, compile, and flash their drives themselves. Unfortunately, I don't see this happening due to all the trade secrets (including some existing backdoors into passworded drives that you can find on data recovery forums, but obviously manufacturers don't want you to know about...) that are likely involved.
- zby 12y agoI agree with the open source point (but not that it would solve everything - see "Trusting trust"), but shipping with the backdoor by default is is problematic for the attackers, because it makes it public.
- psykovsky 12y agoRE: passworded drives. To access a BIOS passworded drive all you had to do was swap it for another for which you knew the password, boot into the BIOS and change the HDD password. It will ask you for your old password, you enter it and you go to the new password input screen. Now you take out the HDD and put the locked one in its place. You press enter twice, setting the password as blank, and voilá, you have your locked drive unlocked. Just boot the computer and no more HDD password. Have fun.
- tedunangst 12y agoNot to worry. Soon you'll be able to buy a Librem laptop with a CPU that accepts unsigned microcode updates as well.