3 ms·
Oh, and another thing. I just remembered that videogame console hack where a manipulated USB descriptor led to a jailbreak. Who says one can not use bugs in e.
by mschuster91 12y ago
Oh, and another thing. I just remembered that videogame console hack where a manipulated USB descriptor led to a jailbreak.
Who says one can not use bugs in e.g. SMART or other (S)ATA protocol implementations in order to spread malware by disk?
And... isn't data transfer of HDDs usually handled by DMA? Is there a way for a malicious HDD to compromise a system? Everyone locked down their FireWire port, but is eSATA vulnerable?
- Sanddancer 12y agoeSata itself is not vulnerable. The sata lanes themselves have no DMA, it's the controller where the DMA requests are generated, so a malicious hard drive on its own would not be able to compromise a computer. I guess it's conceivable that some three-letter agency has hacked together some hard drive that can compromise a specific chipset, but at that point, it becomes a lot easier to just present a compromise in the filesystem of the hard drive, because filesystem drivers are entirely too easily confused by bad data, such as http://www.spinics.net/lists/linux-ext4/msg47160.html http://www.spinics.net/lists/linux-ext4/msg47160.html
- mschuster91 12y ago> I guess it's conceivable that some three-letter agency has hacked together some hard drive that can compromise a specific chipset I was more thinking of Linux or Windows hardware driver level compromises, as a filesystem exploit requires that the drive in question is actively mounted and a protocol driver exploit pwns your system as soon as you attach the drive. Combine a OSX, a Linux and a Windows exploit in the ATA protocol drivers and you have a cyberweapon capable of infecting even a forensic analysis system. And in contrast to USB, I don't believe that ATA and other low-level hardware protocol implementations in kernels get very much attention from developers. Forensic imagers are pretty much standard equipment in any police lab, but I doubt that a normal investigator will disassemble a disk and do raw forensics on the disk platters... heh, if I were a guy with something to hide, I'd hack the firmware to either wipe the disk upon imaging or compromising the investigator's machine.
- bigiain 12y agoYou've seen Travis Goodspeed's work there? http://events.ccc.de/congress/2012/Fahrplan/events/5327.en.html http://events.ccc.de/congress/2012/Fahrplan/events/5327.en.h... https://www.youtube.com/watch?v=D8Im0_KUEf8 https://www.youtube.com/watch?v=D8Im0_KUEf8 It's _really_ nice...
- mschuster91 12y agoOh indeed. I did not know about this, thank you very much. I came up with yet another, truly weird plan. Take a 2-platter disk with 500GB (so 250GB per platter), scratch off the label. Modify the firmware so that: a) both platters are encrypted with a hardcoded, generated-at-lowlevel-reformat secret key to delay forensic efforts b) the ATA identify and other ID values point to a 250GB drive (half the original capacity!) c) the bootloader is two-staged, boot0 running on the HDD CPU and boot1 running on the host before the OS bootloader. If e.g. a specific key is pressed during boot, boot1 asks for a password and gives this password to boot0 (e.g. via custom ATA command). boot0 now uses this password to apply a second decryption to platter1 - so there is no TrueCrypt or anything on the "hidden" OS which impacts performance (you can reveal if you're using TrueCrypt via a sidechannel attack. Determine the HDD model and compare write speed with a reference value. If you're inside spec - no crypto. If you're slower - crypto). If no key is pressed, then boot0 boots the bootloader from the unlocked platter2 - the "clear" OS will have no way of seeing the data on platter2 and even if the reported HDD size is compared with the specifications of the (manipulated!) HDD model name as reported to the OS, a malware has no way of knowing that this HDD in fact has a hidden area.
- rasz_pl 12y ago1/ This is pretty much how for example Seagate refurbishes drives (or used to). They disable whole bad platters in firmware, rewrite drive capacity, slap REFURB sticker and send drive back as a replacement for smaller one. 2/ you can do this _yourself_ today on off the shelf drive using HPA/DCO 3/ Dont really understand your plan, you want to prepare drive like that to hide your own data from others? average foresic investigator will immediately tell your 'clear' OS is an unused decoy (no signs of regular daily use).
- avodonosov 12y agoThe firmware can just modify data - when BIOS asks HDD to read boot sector, the HDD firmware returns modified boot sector with malicious code implanted. Similarly for other code loaded from hard drive (system files, drivers, etc).
- rasz_pl 12y agoNo. SATA/PATA/IDE bus allows only main bus controller to be the bus master, just like USB/SPI/I2C. Devices connected to those buses must be pooled by the system, they cant initiate transactions on their own. On the other hand you have PCI/PCIe/FW/Thunderbolt/SCSI, those buses allow every device to take over as a temporary bus master, and some of them (Im not familiar/sure about scsi, probably not) allow arbitrary memory access. So you cant use SATA in a way FW can be exploited. There might be some obscure state machine bugs in some hardware host implementations, but why bother when you have low hanging fruit of access to raw binary data. Travis Goodspeed demonstrated (using usb storage, same mechanism) how analysis of read access call order and frequency patterns can be used to estimate OS and use scenario (boot, normal execution, forensic imaging of the drive). Thus infected device can pretend to be fine when analysed standalone.