CipherLeaks: deterministic memory encryption in AMD SEV leaks constant-time crypto
Li, Zhang, Wang and Lin showed that AMD SEV's memory encryption (XEX mode with address-based tweaks) is deterministic over time: the same plaintext at the same physical address always yields the same ciphertext. A malicious hypervisor watching ciphertext changes in the guest's register save area during VM exits could infer secret-dependent values and recover keys from constant-time RSA and ECDSA in OpenSSL.
Broken implementation. The underlying math is not broken by this. The failure is in code, hardware, or how the primitive is used.
Background
This 'ciphertext side channel' breaks the confidential-computing assumption that a host cannot learn anything from encrypted guest memory. It does not need cache timing: the leak is architectural (deterministic encryption without freshness). AMD added ciphertext hiding for the VM save area in SEV-SNP firmware and later 'Ciphertext Hiding' for DRAM (CVE-2020-12966).
The same root cause - deterministic, freshness-free memory encryption chosen for scalability - underlies the 2025 physical interposer attacks WireTap, Battering RAM and TEE.fail, and the software-only Heracles (2025) chosen-plaintext attack on SEV-SNP.
Sources
- paperCIPHERLEAKS: Breaking Constant-time Cryptography on AMD SEV via the Ciphertext Side Channel (USENIX Security 2021)USENIX, usenix.org
- cveCVE-2020-12966NIST NVD, nvd.nist.gov