WeSee: Using Malicious #VC Interrupts to Break AMD SEV-SNP
Benedict Schlüter, Supraja Sridhara, Andrin Bertschi, Shweta Shinde
摘要
AMD SEV-SNP offers VM-level trusted execution environments (TEEs) to protect the confidentiality and integrity for sensitive cloud workloads from untrusted hypervisor controlled by the cloud provider. AMD introduced a new exception, #VC, to facilitate the communication between the VM and the untrusted hypervisor. We present WeSee attack, where the hypervisor injects malicious #VC into a victim VM’s CPU to compromise the security guarantees of AMD SEV-SNP. Specifically, WeSee injects interrupt number 29, which delivers a #VC exception to the VM who then executes the corresponding handler that performs data and register copies between the VM and the hypervisor. WeSee shows that using well-crafted #VC injections, the attacker can induce arbitrary behavior in the VM. Our case-studies demonstrate that WeSee can leak sensitive VM information (kTLS keys for NGINX), corrupt kernel data (firewall rules), and inject arbitrary code (launch a root shell from the kernel space).
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 24 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- A Systematic Look at Ciphertext Side Channels on AMD SEV-SNP 引用了 CIPHERLEAKS: Breaking Constant-time Cryptography on AMD SEV via the Ciphertext Side Channel
- A Systematic Look at Ciphertext Side Channels on AMD SEV-SNP 引用了 Exploiting Unprotected I/O Operations in AMD's Secure Encrypted Virtualization
- TDXdown: Single-Stepping and Instruction Counting Attacks against Intel TDX 引用了 A Systematic Look at Ciphertext Side Channels on AMD SEV-SNP
- TDXdown: Single-Stepping and Instruction Counting Attacks against Intel TDX 引用了 HECKLER: Breaking Confidential VMs with Malicious Interrupts
- TDXdown: Single-Stepping and Instruction Counting Attacks against Intel TDX 引用了 CIPHERLEAKS: Breaking Constant-time Cryptography on AMD SEV via the Ciphertext Side Channel
- TDXdown: Single-Stepping and Instruction Counting Attacks against Intel TDX 引用了 Exploiting Unprotected I/O Operations in AMD's Secure Encrypted Virtualization
- HECKLER: Breaking Confidential VMs with Malicious Interrupts 引用了 A Tale of Two Worlds: Assessing the Vulnerability of Enclave Shielding Runtimes
- HECKLER: Breaking Confidential VMs with Malicious Interrupts 引用了 A Systematic Look at Ciphertext Side Channels on AMD SEV-SNP
- HECKLER: Breaking Confidential VMs with Malicious Interrupts 引用了 CIPHERLEAKS: Breaking Constant-time Cryptography on AMD SEV via the Ciphertext Side Channel
- HECKLER: Breaking Confidential VMs with Malicious Interrupts 引用了 Exploiting Unprotected I/O Operations in AMD's Secure Encrypted Virtualization
- HECKLER: Breaking Confidential VMs with Malicious Interrupts 引用了 Occlum: Secure and Efficient Multitasking Inside a Single Enclave of Intel SGX
- TEE.Fail: Breaking Trusted Execution Environments via DDR5 Memory Bus Interposition 引用了 A Systematic Look at Ciphertext Side Channels on AMD SEV-SNP
- TEE.Fail: Breaking Trusted Execution Environments via DDR5 Memory Bus Interposition 引用了 TDXdown: Single-Stepping and Instruction Counting Attacks against Intel TDX
- TEE.Fail: Breaking Trusted Execution Environments via DDR5 Memory Bus Interposition 引用了 HECKLER: Breaking Confidential VMs with Malicious Interrupts
- TEE.Fail: Breaking Trusted Execution Environments via DDR5 Memory Bus Interposition 引用了 CIPHERLEAKS: Breaking Constant-time Cryptography on AMD SEV via the Ciphertext Side Channel
- Cross-Core Interrupt Detection: Exploiting User and Virtualized IPIs 引用了 HECKLER: Breaking Confidential VMs with Malicious Interrupts
- CIPHERLEAKS: Breaking Constant-time Cryptography on AMD SEV via the Ciphertext Side Channel 引用了 Exploiting Unprotected I/O Operations in AMD's Secure Encrypted Virtualization
引用它的顶会 Paper24
- HECKLER: Breaking Confidential VMs with Malicious InterruptsBenedict Schlüter, Supraja Sridhara, Mark Kuhne, Andrin Bertschi 等USENIX Security 2024 · 48 次引用
- TEE.Fail: Breaking Trusted Execution Environments via DDR5 Memory Bus InterpositionJalen Chuang, Alexander Seto, Nicolás Berrios, Stephan van Schaik 等S&P 2026 · 29 次引用
- VeriSMo: A Verified Security Module for Confidential VMsZiqiao Zhou, Anjali, Weiteng Chen, Sishuai Gong 等OSDI 2024 · 27 次引用
- TDXdown: Single-Stepping and Instruction Counting Attacks against Intel TDXLuca Wilke, Florian Sieck, Thomas EisenbarthCCS 2024 · 9 次引用
- Cross-Core Interrupt Detection: Exploiting User and Virtualized IPIsFabian Rauscher, Daniel GrussCCS 2024 · 4 次引用
它引用的 Paper14
- A Tale of Two Worlds: Assessing the Vulnerability of Enclave Shielding RuntimesJo Van Bulck, David F. Oswald, Eduard Marin, Abdulla Aldoseri 等CCS 2019 · 159 次引用
- Occlum: Secure and Efficient Multitasking Inside a Single Enclave of Intel SGXYouren Shen, Hongliang Tian, Yu Chen, Kang Chen 等ASPLOS 2020 · 144 次引用
- CIPHERLEAKS: Breaking Constant-time Cryptography on AMD SEV via the Ciphertext Side ChannelMengyuan Li, Yinqian Zhang, Huibo Wang, Kang Li 等USENIX Security 2021 · 130 次引用
- Exploiting Unprotected I/O Operations in AMD's Secure Encrypted VirtualizationMengyuan Li, Yinqian Zhang, Zhiqiang Lin, Yan SolihinUSENIX Security 2019 · 104 次引用
- A Systematic Look at Ciphertext Side Channels on AMD SEV-SNPMengyuan Li, Luca Wilke, Jan Wichelmann, Thomas Eisenbarth 等S&P 2022 · 87 次引用
相关 Paper
- CacheWarp: Software-based Fault Injection using Selective State ResetRuiyi Zhang, Lukas Gerlach, Daniel Weber, Lorenz Hetterich 等USENIX Security 2024 · 36 次引用
- STALEUS: Breaking AMD SEV-SNP via Memory IncoherenceBenedict Schlüter, Shweta ShindeUSENIX Security 2026
- CounterSEVeillance: Performance-Counter Attacks on AMD SEV-SNPStefan Gast, Hannes Weissteiner, Robin Leander Schröder, Daniel GrussNDSS 2025
- 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
- BadRAM: Practical Memory Aliasing Attacks on Trusted Execution EnvironmentsJesse De Meulemeester, Luca Wilke, David F. Oswald, Thomas Eisenbarth 等S&P 2025
