AMD SEV-SNP:机密计算入门指南 AMD SEV-SNP: A Confidential Computing Primer 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-08-03
👁️ 预览文献
💡 AI 中文简介
本文是AMD SEV-SNP技术的入门指南,SEV-SNP是一种硬件机密计算实现,为虚拟机提供可信执行环境(TEE)。它把虚拟机监视器(hypervisor)视为潜在攻击者,使用hypervisor无法获得的密钥加密客户机内存和寄存器状态,在访问时检测对内存的篡改,并允许客户机向远程验证者证明其运行的确切代码。文章从硬件层面逐步构建这些保证,首先介绍威胁模型和硬件基础(AMD安全处理器和内存控制器中的加密引擎),然后阐述实现机密客户机的机制,包括反向映射表(RMP)提供内存完整性,虚拟机特权级别、加密的虚拟机保存区和GHCB协议等特权与通信机制,最后介绍证明管道如何将硬件签名的客户机初始状态度量绑定到AMD证书链,使远程验证者能独立确认运行内容。
领域机密计算 / 硬件安全
适合谁读需要一定专业背景(了解虚拟化和安全基础)
核心贡献["从硬件底层到上层机制全面解析SEV-SNP,构建了从威胁模型到证明管道的完整技术图景", "清晰解释了RMP、VMPL、GHCB等关键机制如何协同工作,使不信任hypervisor的客户机成为可能"]
关键数据暂无显著硬数据
推荐理由想系统了解AMD SEV-SNP内部原理,这篇入门指南是绝佳起点,讲得透彻又易懂。
关键词["机密计算", "AMD SEV-SNP", "可信执行环境", "虚拟机安全", "硬件安全", "远程证明"]

原文摘要

查看英文原文摘要

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. [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. [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. [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. [4] Intel. Intel Trust Domain Extensions [Intel TDX] Module Base Architecture Specification. Intel, 2023. https://cdrdv2.intel.com/v1/dl/getContent/690419
  5. [5] Arm. Arm CCA Security Model. Arm Document DEN0096, Version 1.0, 2021.
  6. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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
  19. [EuroSec], ACM, 2018. https://doi.org/10.1145/3193111.3193112
  20. [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
  21. [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
  22. [21] AMD. SEV-TIO Firmware Interface Specification. AMD, Revision 0.91, 2025. https://docs. amd.com/v/u/en-US/58271_0.91
  23. [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
  24. [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
  25. [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
  26. [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
  27. [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
  28. [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