arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1612.01119cs.CR
收藏

加密虚拟机的安全性分析

Security Analysis of Encrypted Virtual Machines

Felicitas Hetzelt, Robert Buhren

摘要:

云计算已成为当今计算机领域不可或缺的一部分。它为客户和供应商提供的灵活性已经成为计算机行业大部分地区的关键因素。虚拟化是允许在不同客户之间共享硬件资源的关键技术。控制软件组件(称为管理程序)提供计算机资源的虚拟化视图,并确保不同客户虚拟机的分离。但是,云计算的这一重要基石并不一定值得信赖。为了缓解这一威胁,AMD推出了安全加密虚拟化,简称SEV。SEV是一种处理器扩展,它对客户机内存进行加密,以防止潜在的恶意虚拟机管理程序访问客户机数据。在本文中,我们分析了所提出的功能是否可以抵御恶意的虚拟机管理程序,并讨论了额外的保护机制所带来的权衡。为此,我们根据现有文档开发了SEV安全功能的模型,因为实际的硅实现尚未上市。我们发现,目前提出的版本的SEV是不符合任务,由于三个设计缺陷。首先,与标准AMD-V一样,在SEV下,虚拟机控制块不加密,并直接由管理程序处理,允许他通过执行方便选择的小工具绕过VM内存加密。其次,通用寄存器在vmexit时没有加密,从而泄露了潜在的敏感数据。最后,对嵌套分页表的控制允许恶意虚拟机管理程序密切控制VM的执行,并使用内存重放攻击对其进行攻击。

英文摘要:

Cloud computing has become indispensable in today's computer landscape. The flexibility it offers for customers as well as for providers has become a crucial factor for large parts of the computer industry. Virtualization is the key technology that allows for sharing of hardware resources among different customers. The controlling software component, called hypervisor, provides a virtualized view of the computer resources and ensures separation of different guest virtual machines. However, this important cornerstone of cloud computing is not necessarily trustworthy. To mitigate this threat AMD introduced Secure Encrypted Virtualization, short SEV. SEV is a processor extension that encrypts guest memory in order to prevent a potentially malicious hypervisor from accessing guest data. In this paper we analyse whether the proposed features can resist a malicious hypervisor and discuss the trade-offs imposed by additional protection mechanisms. To do so, we developed a model of SEV's security capabilities based on the available documentation as actual silicon implementations are not yet on the market. We found that the currently proposed version of SEV is not up to the task owing to three design shortcomings. First, as with standard AMD-V, under SEV, the virtual machine control block is not encrypted and handled directly by the hypervisor, allowing him to bypass VM memory encryption by executing conveniently chosen gadgets. Secondly, the general purpose registers are not encrypted upon vmexit, leaking potentially sensitive data. Finally, the control of the nested pagetables allows a malicious hypervisor to closely control the execution of a VM and attack it with memory replay attacks.

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

↑