Lune

USENIX Security2021Top-tier venue

CIPHERLEAKS: Breaking Constant-time Cryptography on AMD SEV via the Ciphertext Side Channel

Mengyuan Li, Yinqian Zhang, Huibo Wang, Kang Li, Yueqiang Cheng

Abstract

AMD's Secure Encrypted Virtualization (SEV) is a hardware extension available in AMD's EPYC server processors to support confidential cloud computing. While various prior studies have demonstrated attacks against SEV by exploiting its lack of encryption in the VM control block or the lack of integrity protection of the encrypted memory and nested page tables, these issues have been addressed in the subsequent releases of SEV-Encrypted State (SEV-ES) and SEV-Secure Nested Paging (SEV-SNP).

In this paper, we study a previously unexplored vulnerability of SEV, including both SEV-ES and SEV-SNP. The vulnerability is dubbed ciphertext side channels, which allows the privileged adversary to infer the guest VM's execution states or recover certain plaintext. To demonstrate the severity of the vulnerability, we present the CIPHERLEAKS attack, which exploits the ciphertext side channel to steal private keys from the constant-time implementation of the RSA and the ECDSA in the latest OpenSSL library.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

62 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • A Systematic Look at Ciphertext Side Channels on AMD SEV-SNP cites SEVurity: No Security Without Integrity : Breaking Integrity-Free Memory Encryption with Minimal Assumptions
  • A Systematic Look at Ciphertext Side Channels on AMD SEV-SNP cites CrossLine: Breaking "Security-by-Crash" based Memory Isolation in AMD SEV
  • A Systematic Look at Ciphertext Side Channels on AMD SEV-SNP cites Exploiting Unprotected I/O Operations in AMD's Secure Encrypted Virtualization
  • SEVurity: No Security Without Integrity : Breaking Integrity-Free Memory Encryption with Minimal Assumptions cites Exploiting Unprotected I/O Operations in AMD's Secure Encrypted Virtualization
  • CrossLine: Breaking "Security-by-Crash" based Memory Isolation in AMD SEV cites SEVurity: No Security Without Integrity : Breaking Integrity-Free Memory Encryption with Minimal Assumptions
  • CrossLine: Breaking "Security-by-Crash" based Memory Isolation in AMD SEV cites Exploiting Unprotected I/O Operations in AMD's Secure Encrypted Virtualization
  • HECKLER: Breaking Confidential VMs with Malicious Interrupts cites A Systematic Look at Ciphertext Side Channels on AMD SEV-SNP
  • HECKLER: Breaking Confidential VMs with Malicious Interrupts cites SEVurity: No Security Without Integrity : Breaking Integrity-Free Memory Encryption with Minimal Assumptions
  • HECKLER: Breaking Confidential VMs with Malicious Interrupts cites CrossLine: Breaking "Security-by-Crash" based Memory Isolation in AMD SEV
  • HECKLER: Breaking Confidential VMs with Malicious Interrupts cites WeSee: Using Malicious #VC Interrupts to Break AMD SEV-SNP
  • WeSee: Using Malicious #VC Interrupts to Break AMD SEV-SNP cites HECKLER: Breaking Confidential VMs with Malicious Interrupts
  • HECKLER: Breaking Confidential VMs with Malicious Interrupts cites Exploiting Unprotected I/O Operations in AMD's Secure Encrypted Virtualization
  • SoK: SGX.Fail: How Stuff Gets eXposed cites SEVurity: No Security Without Integrity : Breaking Integrity-Free Memory Encryption with Minimal Assumptions
  • SoK: SGX.Fail: How Stuff Gets eXposed cites CrossLine: Breaking "Security-by-Crash" based Memory Isolation in AMD SEV
  • WeSee: Using Malicious #VC Interrupts to Break AMD SEV-SNP cites A Systematic Look at Ciphertext Side Channels on AMD SEV-SNP
  • WeSee: Using Malicious #VC Interrupts to Break AMD SEV-SNP cites SEVurity: No Security Without Integrity : Breaking Integrity-Free Memory Encryption with Minimal Assumptions
  • WeSee: Using Malicious #VC Interrupts to Break AMD SEV-SNP cites CrossLine: Breaking "Security-by-Crash" based Memory Isolation in AMD SEV
  • WeSee: Using Malicious #VC Interrupts to Break AMD SEV-SNP cites Exploiting Unprotected I/O Operations in AMD's Secure Encrypted Virtualization
  • Verifying Constant-Time Implementations cites "Make Sure DSA Signing Exponentiations Really are Constant-Time"
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers62

  1. A Systematic Look at Ciphertext Side Channels on AMD SEV-SNPMengyuan Li, Luca Wilke, Jan Wichelmann, Thomas Eisenbarth et al.S&P 2022 · 87 citations
  2. SoK: SGX.Fail: How Stuff Gets eXposedStephan van Schaik, Alexander Seto, Thomas Yurek, Adam Batori et al.S&P 2024 · 52 citations
  3. HECKLER: Breaking Confidential VMs with Malicious InterruptsBenedict Schlüter, Supraja Sridhara, Mark Kuhne, Andrin Bertschi et al.USENIX Security 2024 · 48 citations
  4. WeSee: Using Malicious #VC Interrupts to Break AMD SEV-SNPBenedict Schlüter, Supraja Sridhara, Andrin Bertschi, Shweta ShindeS&P 2024 · 42 citations
  5. CrossLine: Breaking "Security-by-Crash" based Memory Isolation in AMD SEVMengyuan Li, Yinqian Zhang, Zhiqiang LinCCS 2021 · 41 citations

Builds on6

  1. Translation Leak-aside Buffer: Defeating Cache Side-channel Protections with TLB AttacksBen Gras, Kaveh Razavi, Herbert Bos, Cristiano GiuffridaUSENIX Security 2018 · 357 citations
  2. Verifying Constant-Time ImplementationsJosé Bacelar Almeida, Manuel Barbosa, Gilles Barthe, François Dupressoir et al.USENIX Security 2016 · 274 citations
  3. Exploiting Unprotected I/O Operations in AMD's Secure Encrypted VirtualizationMengyuan Li, Yinqian Zhang, Zhiqiang Lin, Yan SolihinUSENIX Security 2019 · 104 citations
  4. "Make Sure DSA Signing Exponentiations Really are Constant-Time"Cesar Pereida García, Billy Bob Brumley, Yuval YaromCCS 2016 · 93 citations
  5. SEVurity: No Security Without Integrity : Breaking Integrity-Free Memory Encryption with Minimal AssumptionsLuca Wilke, Jan Wichelmann, Mathias Morbitzer, Thomas EisenbarthS&P 2020 · 72 citations

Related papers

  1. Reload+Reload: Exploiting Cache and Memory Contention Side Channel on AMD SEVLi-Chung Chiang, Shih-Wei LiASPLOS 2025 · 8 citations
  2. CounterSEVeillance: Performance-Counter Attacks on AMD SEV-SNPStefan Gast, Hannes Weissteiner, Robin Leander Schröder, Daniel GrussNDSS 2025
  3. Insecure Until Proven Updated: Analyzing AMD SEV's Remote AttestationRobert Buhren, Christian Werling, Jean-Pierre SeifertCCS 2019 · 60 citations
  4. CipherH: Automated Detection of Ciphertext Side-channel Vulnerabilities in Cryptographic ImplementationsSen Deng, Mengyuan Li, Yining Tang, Shuai Wang et al.USENIX Security 2023
  5. One Glitch to Rule Them All: Fault Injection Attacks Against AMD's Secure Encrypted VirtualizationRobert Buhren, Hans Niklas Jacob, Thilo Krachenfels, Jean-Pierre SeifertCCS 2021
Dusk over the sea between two cliffs drawn in fine vertical lines