2 ms·
Can I have a mode where some of that 128M is never flushed to RAM? For example, I'd quite like my disk encryption key to never end up in RAM - it's much harder
by londons_explore 4y ago
Can I have a mode where some of that 128M is never flushed to RAM?
For example, I'd quite like my disk encryption key to never end up in RAM - it's much harder to steal from inside a running CPU...
- imiric 4y agoIsn't the TPM meant for precisely that use case?
- londons_explore 4y agoThe TPM is good for storing keys, but can't actually decrypt/encrypt large amounts of data fast as required for disk encryption. So the key ends up temporarily stored in RAM. The fact that most people leave their computers in sleep mode means that to a determined attacker, disk encryption is bypass able by reading the key from RAM.
- smileybarry 4y agoI think the current sleep implementation in Windows flushes the key from memory before entering sleep, and re-fetches it on-wake. That's one reason for those "BitLocker PC doesn't wake from sleep" bugs in quirky setups.
- mmis1000 4y agoAMD has a cpu extension (something called SME) that make vm ram data never appears as cleartext in actual ram. It is done by encrypt the ram data before going out from cpu using a key that is only available to cpu itself. But I remembered that it is a ryzen pro only feature.