by andersa · 3y ago · 0 comments
The only one I'm aware of that can do it is Bitlocker, but the setup is stupidly clunky for no reason (you even have to reinstall windows to activate it - wtf).
A while back I used a tool to do it manually called sedutil but it seems to be abandoned now and no longer works with modern processors.
Because the situation is similar to Dr. House: All disks lie. An OS can't trust the quality of the encryption in modern SSDs, there is no way short of dedicated hardware and firmware reverse engineering to make sure it actually encrypts the data. And on top of that comes the issue with using the supposedly "secure" TPM for disk encryption, that in many cases can simply be sniffed on the communication bus [1].
The only way a disk encryption solution can reasonably guarantee security is if it either controls the whole stack (such as Apple's FileVault using the T2 coprocessor on Intel/built-in capabilities on M SoCs) or it does everything in ring 0 inside the OS.
Why is this the job of the OS? If we trust the SSD ourselves, it should simply accept that and proceed using the API as intended. For example, there's no reason to suspect anything wrong with the latest Samsung SSDs, is there?
I've so far not understood the purpose of the TPM here. Why can't the key be derived off a password entered during boot? It's not necessary to involve a TPM at all.
It seems wild to even consider software encryption for the whole disk at the bandwidth and iops modern SSDs are expected to deliver.
Because in the event of the crypto being only for show, people might blame the software for not warning them.
> I've so far not understood the purpose of the TPM here. Why can't the key be derived off a password entered during boot?
The general idea behind using the TPM as a crypto HSM was to provide at least a basic protection against simple disk cloning, i.e. evil-maid attacks.
> It seems wild to even consider software encryption for the whole disk at the bandwidth and iops modern SSDs are expected to deliver.
CPUs are pretty fast these days at anything crypto, as virtually all popular architectures have native AES instructions.