6 ms·
Windows 7/8, Linux, OS X Full Disk Encryption FireWire Exploit
- bdash 14y agoAs the article notes, OS X is only vulnerable to this issue when the machine is unlocked as DMA access via FireWire is disabled while it is locked. If your machine is left unattended and unlocked then anyone with the ability to plug in a FireWire device could already cause you grief.
- ajross 14y agoA user with physical access to an unlocked machine probably doesn't need DMA to cause you grief anyway. Obviously this is a security issue in some contexts, and some people need to take it seriously. But physical access remains one of the hardest barriers to overcome. Real world security for people who aren't spies really doesn't worry about stuff like this.
- stcredzero 14y ago> But physical access remains one of the hardest barriers to overcome. Basically it's the same problem as DRM that actually works.
- dsl 14y agoYou'd be surprised. It's not just the James Bond types that are being attacked by foreign intelligence anymore. By some estimates industrial espionage against technology companies by China is second only to domestic security in terms of funding and manpower. Companies are issuing disposable laptops, iPads, and cell phones to employees traveling to Asia. Consider why that might be.
- finnh 14y agoBy some estimates industrial espionage against technology companies by China is second only to domestic security in terms of funding and manpower. What estimates? That sounds frankly incredible. Given that China's total population is far larger than the total population of engineers in the entire world, having the manpower devoted to industrial espionage being anywhere even close to that dedicated to domestic security would imply that there are more "chinese spies per engineer in the world" than there are "chinese police per chinese person". If I do, in fact, have my own personal Chinese spy, I'd like to say "hi" and "i'm sorry I didn't get much coding done today."
- mitchty 14y agoYep, physical access in general means game over. If its unlocked they can just clock you over the head and take the laptop and copy things. No need for fancy devices.
- bjustin 14y agoAs the site says, OS X is mostly safe by default. DMA is disabled when a machine is locked or the user is not logged in[1], in OS X 10.7.2+. [1] https://support.apple.com/kb/HT5002 https://support.apple.com/kb/HT5002 (missed the note about this on the page the first time through, but I'm leaving this for others who may have missed it)
- pyre 14y agoI'm curious, would this be possible in Linux? What would the kernel <-> {xscreensaver,gdm,lightdm,gnome-screensaver,etc} communication work like? How would the pathway be secure from an attacker just turning DMA back on? How does this work in OSX if a Firewire device is in the middle of a DMA operation when the OS is locked? Does the operation fail? Does the user lose data?
- TheAmazingIdiot 14y agoI just removed the module from loading. I dont have any firewire stuff anyways, so it's just some useless 4 pin port at the bottom left of my thinkpad. No driver, no workey.
- pyre 14y agoRight, but that's not what OSX is apparently doing. It's just limiting DMA operations under specific conditions. I'm wondering what that functionality would look like if implemented in Linux.
- tjoff 14y agoI've disabled it in BIOS (didn't find the option on my thinkpad though). It was a bit frustrating though when I, years later, tried to use a firewire media source and had forgotten that I had disabled it :\
- stcredzero 14y agoThe correct way to implement it would be to prevent the initiation of DMA operations when the device is locked, but to let current ones continue. I have no idea if that's what happened, though.
- jlgreco 14y agoLooks like a standard DMA attack. This problem has been known about forever, though I guess now people will stop thinking of it as an obscure hypothetical attack?
- pyre 14y agoOnce there is a tool that's, "so easy a script-kiddie could do it," you're forced to take it seriously.
- X-Istence 14y agoThis tool (inception) has been around for a long time ... I remember playing with it at Blackhat 2008. Edit: May not have been inception, but something similar... I remember unlocking Windows XP laptops!
- georgemcbay 14y agoPreviously discussed (though not a very big turnout in the thread): http://news.ycombinator.com/item?id=4646918 http://news.ycombinator.com/item?id=4646918
- nicholasjarnold 14y agoThis is interesting, but is certainly not novel. I did a talk (in one of my grad school courses) in 2008 summarizing the Princeton research regarding attacks on encryption keys stored in memory (https://citp.princeton.edu/research/memory/ https://citp.princeton.edu/research/memory/). DMA and Firewire were both attack vectors mentioned in that paper. Physical Access == Game Over
- carmaa 14y agoIt should not be that way, though. Physical access should not equal compromise. There's no good reason why this vulnerability still exists after 10 years except a failed design, laziness on the part of OS developers and that security professionals in general meet the problem with the above statement that "physical access equals compromise". I think end users deserve (and expect) secure devices, even when physical access is lost. I realize that it's harder to protect a physical device, but it's not impossible.
- lotyrin 14y ago> There's no good reason why this vulnerability still exists after 10 years except a failed design I'll give you that, but there are too many kinds of physical access attacks to even consider aiming at solving the entire class of attacks. > Physical access should not equal compromise. And I want a million dollars. Guess which one's more likely.
- stcredzero 14y ago> Physical access should not equal compromise. Physical access == compromise even for devices that are as simple as a hollow metal box. http://en.wikipedia.org/wiki/Safe http://en.wikipedia.org/wiki/Safe Security ratings for those devices are measured in time. Basically, if you lose possession, it's just a matter of time. Digital security is both easier and harder, because all you're protecting there is information. If you wish for the information to be destroyed on tampering, then your job may be easier. The only way for there to be hardening when physical access is lost is to have some form of layered defense in depth, the aim being giving the user enough time to send a command to wipe the device.
- dguido 14y agoThe author of the tool commented in this thread on Reddit: http://www.reddit.com/r/netsec/comments/15ydem/inception_is_a_tool_for_using_firewire_to/ http://www.reddit.com/r/netsec/comments/15ydem/inception_is_...
- lallysingh 14y agoAt an old MacHack, someone was going around with a powerbook. They'd plug a cable into your mac, and start drawing things on your screen. More than a few organizations shove hot glue into USB ports to secure the machine. It's hard enough to get machines secure from drive-by web browsing attacks. Getting them safe from physical access is substantially, substantially harder.
- raverbashing 14y agoNot very useful really Open machine and plug unglued USB connector to the motherboard. It is probably not that difficult to unglue the connector with a heat gun and some pliers or something.
- pyre 14y agoI'm guessing the point of hot-glueing USB ports is to prevent drive-by attacks, not to prevent someone that can steal the computer from doing something to it.
- mkup 14y agoThere seems to be two distinct types of attack for that attack vector: (1) bypassing OS logon screen by patching in-memory code (2) stealing password or encryption key for already-mounted encrypted volume But bypassing or stealing password or key for cold, non-mounted volume is impossible: for example, TrueCrypt volume is mathematically indistinguishable from /dev/urandom output until exact password is provided.
- lallysingh 14y agoWell, I'd imagine something like a laptop hooking up to the target machine, over both USB and firewire (or something like it). The USB interface would act like a disk, holding an executable or two you'd like. Walk over the process list in memory, and find one that's got good privileges but stays asleep. Patch its code to call mount (anywhere's fine, maybe in the heap, or if it's asleep in sys_read, in the destination buffer), alter the saved IP in the task table to the mount call, and (this may be the tricky part) move it to a CPU's ready-task list. After mount, play the same trick to run an executable, and change it's UID to root. Hell it can just spin in a get UID/sleep() loop until it's ready. Then you've got all of root-userland to do what you need. That can include installing keyboard sniffers that save the last kilobyte or so, which is saved or transmitted when the right entry point into the encrypted-mount path is hit.
- lallysingh 14y agoI just looked up IO MMUs, which can provide protection for this. Sadly, on Wikipedia, it looks like the hardware support for them is blotchy. http://en.wikipedia.org/wiki/IOMMU_hardware_list http://en.wikipedia.org/wiki/IOMMU_hardware_list Hopefully that'll get better.
- sweis 14y agoShameless startup promotion here: PrivateCore (www.privatecore.com) is working on protecting against DMA and other memory extraction attacks, like non-volatile memory. Check out the attack device we implemented and how we defend against it: http://www.privatecore.com/dma-attack-video.html http://www.privatecore.com/dma-attack-video.html
- javert 14y agoI am assuming this would not be a vulnerability against a laptop that is turned off, with disk encryption? e.g. I leave my laptop, off, in a hotel room? (I do realize there are other vulns in that scenario, e.g., hotel maid puts in a new BIOS chip that contains a keylogger.)
- tjoff 14y agoNo, a laptop that is turned off is safe from this. And you don't really need something as tailored as a new BIOS chip, in most cases where you can boot from USB/Firewire/whatever you can just replace the bootloader with one that copies the password as you enter it. That's why you might want to have your bootloader on a USB stick or something that isn't available to the attacker even if he/she gets physical access. But that of course doesn't protect someone from altering the BIOS (or even, the firmware of your keyboard...). But it at least usually requires more effort. Or, one could be listening in by targeting a laser on a window nearby (and watch the reflections as the sound-waves propagate through the glass) and listen to your keystrokes, and based on statistics (gathered when you write HN posts ;)) figure out your password without even getting in the same room as the hardware. If someone has the resources and motivation to get your data he/she will probably be able to :(
- stcredzero 14y ago> If someone has the resources and motivation to get your data he/she will probably be able to :( Goes for anything else you "own." The real question is, how bad do they want it, what are the economics, and how does society at large feel about it?
- nfm 14y agoA previous tool for the same class of exploits (Firewire DMA): http://web.archive.org/web/20100510013948/http://www.storm.net.nz/projects/16 http://web.archive.org/web/20100510013948/http://www.storm.n... Were these kinds of exploits noted when writing the 1394 spec and ignored in favour of the DMA feature?