129 points · by amalantony06 · 12y ago · 72 comments
Ed Felton did some great work (2008) where he physically removed the sticks of DRAM from one computer, stuck them in another, and read their contents. But doesn't DRAM lose it's content without continuous power? Not if you turn a can of compressed air upside down and spray the chips first, cooling them to -50C! He used this to recover encryption keys and defeat whole disk encryption.
Pretty crazy stuff: https://citp.princeton.edu/research/memory/
update: link to images/videos: https://citp.princeton.edu/research/memory/media/
You can do a lot with that space. My company PrivateCore runs an entire Linux/KVM stack within the L3 cache, then fully encrypts main memory. Someone physically acquiring memory would only obtain plaintext.
Note that a software compromise could still read memory. That's one reason why it's necessary to fully attest a system before provisioning it with any keys or passwords.
Here's a CanSecWest talk with more details: http://cansecwest.com/slides/2013/PrivateCore%20CSW%202013.p...
On Linux, libgcrypt can do encrypted malloc, which might also help.
[1] http://msdn.microsoft.com/en-us/library/windows/desktop/aa38...
Are they "safe enough"? Maybe, it depends entirely on your use case.
Second, I am not sure I understand the judge decision. If the man truly forgot it, or lets say the files on USB got corrupted (can happen) and the password he is giving out does not work, then how can you continue to jail him (for that reason)? Is this something specific to UK, or are similar US cases out there?
I have a hard time understanding why such a skill is so rare. It seems sort of useful.
Note that this doesn't work if the entire memory is encrypted, but I can't imagine how a computer could function with the whole RAM encrypted.
Yes, I realize this would still be susceptible to coercion of the humans involved, and other issues, but it could be a building block of some degree of NSA-proofing.
I'm still not sure how my motherboard detects if my case is open...
Full disk encryption TrueCrypt/BitLocker/FileVault can act as countermeasures[2] and modern versions of OSX don't allow DMA from the login screen anymore.
[1] http://www.breaknenter.org/2012/02/adventures-with-daisy-in-...
[2] http://www.researchgate.net/publication/49277520_Cold_Boot_M...
I guess the number one thing is to prevent physical access, and failing that, make an attack that targets RAM take longer.
A simple defense would be to access all such material through a permutation table. (Which need not be explicitly stored in memory, but could be computed by means of multiplication modulo a prime.)
Can somebody with more expertise comment on this? I was under the impression that virtualization software (Xen etc) was deemed safe?
(all this in context of the statement that "if you are serious about security, use dedicated hardware")
1. Store password in a function and return the password. 2. Whenever the password is needed call the function.
Example in JS.
function getPassword(){ return 'I am a password'; }
if(req.data.password == getPassword()){ passwordIsCorrect(); }else{ passwordIsNotCorrect(); }
This is not for sure. Core dump and debug dump usually dumps variables, but not the source code of program.
In an interpreted language, the interpreter would create some kind of string object containing the contents of the password in memory, and getPassword() would return that object when called.
that more diverse the people are the more perspective we can look at a problem:
collective indulgence >= individual common sense
Thanks HN