Cabin:在机密虚拟机中限制不可信程序
Cabin: Confining Untrusted Programs within Confidential VMs
AI总结:
针对机密虚拟机中不可信程序对内核的威胁,提出基于AMD SEV-SNP的隔离框架Cabin,通过代理内核和VMPL特权控制最小化攻击面,平均开销仅5%。
摘要:
机密计算保护敏感计算免受不可信云环境的影响,其中机密虚拟机(CVM)为客户操作系统提供安全环境。然而,CVM 通常带有庞大且易受攻击的操作系统内核,使其容易受到利用内核弱点的攻击。页表中读写访问控制的不精确使得攻击者能够利用漏洞。缺乏安全层级导致不可信应用程序与客户操作系统之间的隔离不足,使内核容易受到来自不可信程序的直接威胁。本研究提出 Cabin,一个利用最新 AMD SEV-SNP 技术在客户虚拟机内的隔离执行框架。Cabin 通过在受限进程与客户操作系统之间引入代理内核,将不可信进程隔离到较低虚拟机特权级别(VMPL)的用户空间。此外,我们提出了基于 VMPL 特权细粒度控制的执行保护机制,用于易受攻击的程序和代理内核,以最小化攻击面。我们引入异步转发机制和匿名内存管理以减少性能影响。评估结果表明,Cabin 框架在 Nbench 和 WolfSSL 基准测试上仅产生适度开销(平均 5%)。
英文摘要:
Confidential computing safeguards sensitive computations from untrusted clouds, with Confidential Virtual Machines (CVMs) providing a secure environment for guest OS. However, CVMs often come with large and vulnerable operating system kernels, making them susceptible to attacks exploiting kernel weaknesses. The imprecise control over the read/write access in the page table has allowed attackers to exploit vulnerabilities. The lack of security hierarchy leads to insufficient separation between untrusted applications and guest OS, making the kernel susceptible to direct threats from untrusted programs. This study proposes Cabin, an isolated execution framework within guest VM utilizing the latest AMD SEV-SNP technology. Cabin shields untrusted processes to the user space of a lower virtual machine privilege level (VMPL) by introducing a proxy-kernel between the confined processes and the guest OS. Furthermore, we propose execution protection mechanisms based on fine-gained control of VMPL privilege for vulnerable programs and the proxy-kernel to minimize the attack surface. We introduce asynchronous forwarding mechanism and anonymous memory management to reduce the performance impact. The evaluation results show that the Cabin framework incurs a modest overhead (5% on average) on Nbench and WolfSSL benchmarks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。