AMD SEV-SNP:机密计算入门指南 AMD SEV-SNP: A Confidential Computing Primer 预印本
原文摘要
查看英文原文摘要
This paper is a technical primer on AMD Secure Encrypted Virtualization with Secure Nested Paging (SEV-SNP), a hardware confidential computing implementation that provides Trusted Execution Environments (TEEs) for virtual machines. SEV-SNP treats the hypervisor as adversarial. It encrypts guest memory and register state with keys the hypervisor never possesses, detects any tampering with guest memory at the point of access, and lets a guest prove to a remote verifier exactly what code it is running. The paper constructs each of these guarantees from the hardware up. It opens with the threat model that drives the design and the hardware that enforces it, the AMD Secure Processor and the encryption engine in the memory controller. It then develops the mechanisms that make a confidential guest practical. The Reverse Map Table provides memory integrity against an adversary who controls the page tables. The privilege and communication machinery (VM Privilege Levels, the encrypted VM Save Area, and the GHCB protocol) lets the guest cooperate with a hypervisor it does not trust. The attestation pipeline binds a hardware-signed measurement of the guest's initial state to AMD's certificate chain, so a remote verifier can confirm independently what is running.
📚 参考文献 (28 条)
查看全部 28 条
- [1] AMD. AMD64 Architecture Programmer’s Manual, Volume 2: System Programming. AMD Publication 24593, Revision 3.44, 2026. https://docs.amd.com/v/u/en-US/24593_3.44_ APM_Vol2 44
- [2] AMD. SEV-SNP: Strengthening VM Isolation with Integrity Pro- tection and More. AMD White Paper, 2020. https://www.amd. com/content/dam/amd/en/documents/epyc-business-docs/white-papers/ SEV-SNP-strengthening-vm-isolation-with-integrity-protection-and-more.pdf
- [3] AMD. SEV Secure Nested Paging Firmware ABI Specification. AMD Publication 56860, Revision 1.58, 2025. https://www.amd.com/content/dam/amd/en/documents/developer/ 56860.pdf
- [4] Intel. Intel Trust Domain Extensions [Intel TDX] Module Base Architecture Specification. Intel, 2023. https://cdrdv2.intel.com/v1/dl/getContent/690419
- [5] Arm. Arm CCA Security Model. Arm Document DEN0096, Version 1.0, 2021.
- [6] H. Birkholz, D. Thaler, M. Richardson, N. Smith, W. Pan. "Remote ATtestation proce- dureS [RATS] Architecture." RFC 9334, IETF, 2023. https://datatracker.ietf.org/doc/html/ rfc9334
- [7] P. Jauernig, A.-R. Sadeghi, E. Stapf. "Trusted Execution Environments: Properties, Appli- cations, and Challenges." IEEE Security & Privacy, 18(2), 2020. https://doi.org/10.1109/ MSEC.2019.2947124
- [8] J. Chuang, A. Seto, N. Berrios, S. van Schaik, C. Garman, D. Genkin. "TEE.fail: Breaking Trusted Execution Environments via DDR5 Memory Bus Interposition." 47th IEEE Sympo- sium on Security and Privacy [S&P ’26], IEEE, 2026. https://doi.org/10.1109/SP63933. 2026.00101
- [9] J. De Meulemeester, D. Oswald, I. Verbauwhede, J. Van Bulck. "Battering RAM: Low- Cost Interposer Attacks on Confidential Computing via Dynamic Memory Aliasing." 47th IEEE Symposium on Security and Privacy [S&P ’26], IEEE, 2026. https://doi.org/10.1109/ SP63933.2026.00052
- [10] J. De Meulemeester, L. Wilke, D. Oswald, T. Eisenbarth, I. Verbauwhede, J. Van Bulck. "BadRAM: Practical Memory Aliasing Attacks on Trusted Execution Environments." 46th IEEE Symposium on Security and Privacy [S&P ’25], IEEE, 2025. https://doi.org/10.1109/ SP61157.2025.00104
- [11] AMD. SEV-SNP Physical Memory Aliasing. AMD Security Brief AMD-SB-3024, 2025. https://www.amd.com/en/resources/product-security/bulletin/amd-sb-3024.html
- [12] AMD. Voltage Fault Injection on SEV Virtual Machines. AMD Security Brief AMD-SB-3028, 2025. https://www.amd.com/en/resources/product-security/bulletin/amd-sb-3028.html
- [13] M. Li, Y. Zhang, H. Wang, K. Li, Y. Cheng. "CipherLeaks: Breaking Constant-time Cryptography on AMD SEV via the Ciphertext Side Channel." 30th USENIX Security Symposium, 2021. https://www.usenix.org/system/files/sec21-li-mengyuan.pdf
- [14] Y. Yan, W. Huang, I. Grishchenko, G. Saileshwar, A. Mehta, D. Lie. "Relocate-Vote: Using Sparsity Information to Exploit Ciphertext Side-Channels." 34th USENIX Security Symposium, 2025. https://relocatevote.org/
- [15] AMD. SEV Ciphertext Side Channel Attacks. AMD Security Brief AMD-SB-3021, 2025. https://www.amd.com/en/resources/product-security/bulletin/amd-sb-3021.html 45
- [16] M. Shen, Y. Qin. "Insecure Despite Proven Updated: Extracting the Root VCEK Seed on EPYC Milan via a Software-Only Attack." arXiv:2605.12990, 2026. https://arxiv.org/abs/ 2605.12990
- [17] D. Kaplan, J. Powell, T. Woller. AMD Memory Encryption. AMD White Pa- per, 2016. https://www.amd.com/content/dam/amd/en/documents/epyc-business-docs/ white-papers/memory-encryption-white-paper.pdf
- [18] M. Morbitzer, M. Huber, J. Horsch, S. Wessel. "SEVered: Subverting AMD’s Virtual Machine Encryption." Proceedings of the 11th European Workshop on Systems Security
- [EuroSec], ACM, 2018. https://doi.org/10.1145/3193111.3193112
- [19] L. Wilke, J. Wichelmann, M. Morbitzer, T. Eisenbarth. "SEVurity: No Security Without Integrity." IEEE Symposium on Security and Privacy [S&P], 2020. https://doi.org/10.1109/ SP40000.2020.00080
- [20] R. Buhren, H.-N. Jacob, T. Krachenfels, J.-P. Seifert. "One Glitch to Rule Them All: Fault Injection Attacks Against AMD’s Secure Encrypted Virtualization." ACM Conference on Computer and Communications Security [CCS], 2021. https://doi.org/10.1145/3460120. 3484779
- [21] AMD. SEV-TIO Firmware Interface Specification. AMD, Revision 0.91, 2025. https://docs. amd.com/v/u/en-US/58271_0.91
- [22] AMD. Secure VM Service Module for SEV-SNP Guests. AMD Publication 58019, Revision 1.00, 2023. https://docs.amd.com/v/u/en-US/58019.pdf
- [23] AMD. SEV-ES Guest-Hypervisor Communication Block [GHCB] Standardization. AMD Publication 56421, Revision 2.04, 2025. https://www.amd.com/content/dam/amd/en/ documents/epyc-technical-docs/specifications/56421.pdf
- [24] B. Schl"uter, S. Sridhara, A. Bertschi, S. Shinde. "WeSee: Using Malicious #VC Interrupts to Break AMD SEV-SNP." 45th IEEE Symposium on Security and Privacy [S&P ’24], IEEE, 2024. https://arxiv.org/abs/2404.03526
- [25] AMD. Versioned Chip Endorsement Key [VCEK] Certificate and KDS Interface Specification. AMD Publication 57230, Revision 1.00, 2025. https://kdsintf.amd.com https://docs.amd. com/v/u/en-US/57230
- [26] VirTEE. sev-snp-measure: Expected SEV-SNP Launch Measurement Computa- tion. https://github.com/virtee/sev-snp-measure, 2023. https://github.com/virtee/ sev-snp-measure
- [27] confidential.ai. attestation-rs: Rust Libraries and Tools for TEE Attestation Generation and Verification. https://github.com/confidential-dot-ai/attestation-rs, 2026. https://github. com/confidential-dot-ai/attestation-rs 46