by upofadown · 5y ago · 0 comments
I am not sure why Elcomsoft would want to write a blog article informing the world of this fact...
Anyway, here is the direct link to how VeraCrypt does their RAM encryption:
* https://sourceforge.net/p/veracrypt/discussion/technical/thr...
It's mathematically impossible to prevent key extraction unless you put the key in an HSM (the TPM might function as such, but it may not have good performance) and use that for decryption (the most you can do is make the key larger up to the amount of RAM you have, at the costing of wasting RAM).
Even if you use an HSM, the malware can just extract the data itself or even on-the-fly decrypt the disk with the HSM and re-encrypt with a known key and then exfiltrate the known key, so all this does is make the attack slower since you need to read/write the whole disk.
That isn't to say RAM encryption doesn't have other benefits, but if your computer is unlocked and unattended, then yeah someone is going to be able to dump those keys one way or another especially if the system isn't tamper-safe (like a smart card aims to be).