By Chris MorleyPosted Monday 21st July 2008 19:20 GMT
Does this attack work if you have "quick POST" turned off in the BIOS so the BIOS does a full memory test? Won't the crypto keys get nuked by the BIOS.
Or... there must be some memory the BIOS is almost guaranteed to flatten on boot (e.g. where does the boot loader get loaded?!), the OS should allocate that specific bit of physical memory for its crypto keys... if the keys are long > 1 sector you can still flatten 1 sectors worth, 512 bytes is a lot to guess for a crypto key!
Both ways, reboot & the keys get flattened by the BIOS.
Make sure all key material is wiped on screen lock/hibernate. You usually need to reenter the password, so the OS can regenerate it's keys when the machine wakes up.
Also, having the BIOS do a full memory test before booting should remove any old data, unless people have a way of replacing the bios before booting?
cant see how it really does anything useful, a mobo bios can take 30sec to boot before any drive is accessed, then the bios would have to have the floppy drive as the primary boot check
By Anonymous CowardPosted Tuesday 22nd July 2008 00:22 GMT
It is not just hackers or computer forensics.
The problem with the OS regenerate keys, is you have to keep somethings outside of the encrypted area to allow for that. So, for example if you lock the computer you will have to stop logging, or expose the logs.
It is the solution but is not that simple when you wonder what wouldn't work, and how much you would have to control. You couldn't assume a write to disk, so perhaps you start buffering, and that could lead to RAM exhaustion attacks.
By Edward MilesPosted Tuesday 22nd July 2008 01:20 GMT
Yes - if they use your computer. A very similar method is to rip the ram straight out of the mobo (after giving it a quick blast with an upside down can of compressed air to cool it) and whack it into your own system that has quick boot on., then boot off your pendrive and get the keys out that way. And as long as you put the stick into your computer as a second stick, any areas that would get written too occurs on the first stick.
By Nexox EnigmaPosted Tuesday 22nd July 2008 01:46 GMT
I believe that as soon as the power is returned to the memory, the bits would keep themselves there. The long bios memory test doesn't take nearly long enough to overwrite the entire capacity of the memory.
Seems like the safe way to take care of this would be to shut down the computer and power supply, just to cut off that pesky standby power. And possibly make sure that loads and loads of different (bad) keys are stored in memory at any given time can't help.
By Charles ManningPosted Tuesday 22nd July 2008 03:41 GMT
Doing it at the chip level is the best bet, and should have the following inputs: hard reset input, refresh loss or repowering (ie getting good power after a power loss).
As soon as any of those are detected then all the DRAM cells get wiped, likely by a single inversion of a in-chip power rail or a slight modification to the refresh logic that does a wiping in the first refresh cycle or similar.
This would make the DRAM immune to all hotswap nasties.
The DRAM cell that holds each bit is very simple, basically a capacitor and a transistor. Adding a hard reset to the chip would double the transistor count and halve the capacity / double the price per gigabyte.
There may be a market for "secure DRAM" that gets reset, but I doubt it.
By Chris MorleyPosted Tuesday 22nd July 2008 07:53 GMT
Yes, it is that easy to defeat. I read their pdf. A full memory scan nukes it... ECC memory works too because the BIOS has to reset all the memory on boot up.
As for taking RAM out of a machine all bets are off with all encryption systems when you _own_ the hardware. Just read Hacking the Xbox!
But I'd like to see someone get the ECC RAM out of a particular server of mine in a hurry without slicing their fingers off on the damn case! The trail of blood will presumably lead directly back to the perp.
By MichellePosted Tuesday 22nd July 2008 10:11 GMT
Here's a nice trick that works with certain Mobo vendors and corresponding CMOS/BIOS Writers:
Put new firmware on a floppy!
I've had to do this before when a friend of mine bricked his BIOS. Basically, you just make a Windows boot floppy, put the BIOS flasher and new BIOS (With Mem Test disabled or even missing from the binary) on it, and put the commands to flash it in the AUTOEXEC.BAT.
Apparently, you pull out a jumper, put in the disk, and it doesn't even do a BIOS check, it just runs the disk and Flash's the BIOS (Don't know specifics, would need to check some hardware I'd think). Works on a LOT of MSI hardware.
Now, with enough recon, you could figure out the mobo maker, and download a BIOS update. End result - Owned.
Sidenote: If your HDD encryption relies on your Windows password, your HDD encryption is S**t. Stick some something safe, like TrueCrypt (And it's Bootloader).
If it's full scan, ok. But if it's not, then being in Full-scan is certainly not a workaround.
The security agency just needs to reset the BIOS.
And contrary to what has been said above by Pheet, it's futile to expect that "Hopefully the time it takes to open the machine and physically reset the BIOS means there's insufficient key material left in the RAM."
The basic hypothesis here is that the people coming it to get you have access to the computer while it's still turned on.
You can't seriously expect that they'll turn it off, then open the machine.
They will just open the machine, and when they have their screwdriver 1 inch from the BIOS reset button, ready to go, then they'll turn off, reset BIOS and turn on. 5 seconds lost, at most.
Comments on: Researchers release 'cold boot' attack utilities
Old Skool! #
By Boris Blank Posted Monday 21st July 2008 17:16 GMT
Wot no hard reset? #
By Nigel Posted Monday 21st July 2008 18:20 GMT
Easy to defeat? #
By Chris Morley Posted Monday 21st July 2008 19:20 GMT
Relatively easy to fix #
By Rich Posted Monday 21st July 2008 22:06 GMT
None #
By Zmodem Posted Monday 21st July 2008 22:20 GMT
A boon for the crackers as well #
By Anonymous Coward Posted Tuesday 22nd July 2008 00:22 GMT
workaround #
By Pheet Posted Tuesday 22nd July 2008 00:29 GMT
@Easy to defeat? #
By Edward Miles Posted Tuesday 22nd July 2008 01:20 GMT
Timing #
By Nexox Enigma Posted Tuesday 22nd July 2008 01:46 GMT
@Nigel #
By Charles Manning Posted Tuesday 22nd July 2008 03:41 GMT
@Nigel #
By Rich Posted Tuesday 22nd July 2008 03:54 GMT
Easy to defeat? pt2 #
By Chris Morley Posted Tuesday 22nd July 2008 07:53 GMT
@Rich #
By BristolSteve Posted Tuesday 22nd July 2008 08:19 GMT
BIOS can be bypassed, so all Mem Checks are off #
By Michelle Posted Tuesday 22nd July 2008 10:11 GMT
BIOS full memory scan maybe no solution #
By Greg Posted Tuesday 22nd July 2008 10:20 GMT
bios count #
By tony trolle Posted Wednesday 23rd July 2008 00:50 GMT