arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.11438cs.CRcs.AR
收藏

通往信任之路:在机密虚拟机内构建安全区

The Road to Trust: Building Enclaves within Confidential VMs

Wenhao Wang, Linke Song, Benshan Mei, Shuang Liu, Shijun Zhao, Shoumeng Yan, XiaoFeng Wang, Dan Meng, Rui Hou

AI总结:

本文提出 NestedSGX 框架,利用 AMD SEV-SNP 的 VMPL 特性在机密虚拟机内构建硬件安全区,兼容 Intel SGX 工具链,并以较低性能开销实现对客户机操作系统不可信假设下的应用完整性保护与远程证明。

摘要:

完整性对于维护系统安全至关重要,因为它确保只有真实可信的软件被加载到机器上。尽管机密虚拟机(CVM)在与主机隔离的环境中运行,但必须认识到,用户在对可信执行环境(TEE)内运行代码的完整性保持控制方面仍然面临挑战。复杂操作系统(OS)的存在带来了动态创建和执行任意代码的可能性,如果客户机操作系统被攻破,TEE 内的用户应用程序就容易受到干扰或篡改。为解决这一问题,本文提出了 NestedSGX,这是一个利用虚拟机特权级别(VMPL)的框架,VMPL 是 AMD SEV-SNP 上可用的一项近期硬件特性,能够在客户机虚拟机内部创建硬件安全区。与 Intel SGX 类似,NestedSGX 将客户机操作系统视为不可信,不信任其加载潜在恶意代码。它确保只有在安全区内执行的可信且经过度量的代码才能被远程证明。为了无缝保护现有应用程序,NestedSGX 通过模拟 SGX 叶子函数来兼容 Intel SGX。我们还将 SGX SDK 和 Occlum 库操作系统移植到 NestedSGX 上,使现有的 SGX 工具链和应用程序能够在该系统中使用。性能评估表明,NestedSGX 中的上下文切换大约需要 32,000 到 34,000 个周期,约为 Intel SGX 的 1.9 倍到 2.1 倍。NestedSGX 在大多数实际应用中产生的开销极小,对于计算密集型和内存密集型工作负载,平均开销低于 2%;对于 I/O 密集型工作负载,平均开销低于 15.68%。

英文摘要:

Integrity is critical for maintaining system security, as it ensures that only genuine software is loaded onto a machine. Although confidential virtual machines (CVMs) function within isolated environments separate from the host, it is important to recognize that users still encounter challenges in maintaining control over the integrity of the code running within the trusted execution environments (TEEs). The presence of a sophisticated operating system (OS) raises the possibility of dynamically creating and executing any code, making user applications within TEEs vulnerable to interference or tampering if the guest OS is compromised. To address this issue, this paper introduces NestedSGX, a framework which leverages virtual machine privilege level (VMPL), a recent hardware feature available on AMD SEV-SNP to enable the creation of hardware enclaves within the guest VM. Similar to Intel SGX, NestedSGX considers the guest OS untrusted for loading potentially malicious code. It ensures that only trusted and measured code executed within the enclave can be remotely attested. To seamlessly protect existing applications, NestedSGX aims for compatibility with Intel SGX by simulating SGX leaf functions. We have also ported the SGX SDK and the Occlum library OS to NestedSGX, enabling the use of existing SGX toolchains and applications in the system. Performance evaluations show that context switches in NestedSGX take about 32,000 -- 34,000 cycles, approximately $1.9\times$ -- $2.1\times$ higher than that of Intel SGX. NestedSGX incurs minimal overhead in most real-world applications, with an average overhead below 2% for computation and memory intensive workloads and below 15.68% for I/O intensive workloads.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑