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

利用安全加密虚拟机的接口

Exploiting Interfaces of Secure Encrypted Virtual Machines

Martin Radev, Mathias Morbitzer

摘要:

云计算是远程处理数据的一种便捷模式。但是,用户必须信任他们的云提供商,确保存储和处理的数据的机密性和完整性。为了加强对虚拟机的保护,AMD推出了SEV,这是一项旨在保护虚拟机中代码和数据的硬件功能。这允许在云环境中存储和处理敏感数据,而无需信任云提供商或底层软件。然而,虚拟机仍然依赖于管理程序来执行某些活动,例如模拟特殊的CPU指令或模拟设备。然而,在虚拟机中运行的大多数代码都不是使用将虚拟机管理程序视为恶意的攻击者模型编写的。在这项工作中,我们引入了一类新的攻击,其中恶意的虚拟机管理程序操纵SEV或SEV-ES虚拟机的外部接口,使其对自己的利益采取行动。我们首先展示如何利用虚拟设备来提取虚拟机的加密密钥和秘密数据。然后,我们展示了如何通过仔细操作CPUID和RDTSC指令的结果来减少虚拟机中概率内核防御的熵。我们继续展示了一种基于虚拟机地址空间上MMIO区域伪造的秘密数据泄漏和代码注入方法。最后,我们展示了另一种攻击,它强制解密VM的堆栈,并使用面向返回的编程在VM内部执行任意代码。虽然我们的方法也适用于传统的虚拟化环境,但其严重性随着SEV-ES的攻击模型而显著增加,SEV-ES的目的是保护虚拟机免受良性但易受攻击的虚拟机管理程序的攻击。

英文摘要:

Cloud computing is a convenient model for processing data remotely. However, users must trust their cloud provider with the confidentiality and integrity of the stored and processed data. To increase the protection of virtual machines, AMD introduced SEV, a hardware feature which aims to protect code and data in a virtual machine. This allows to store and process sensitive data in cloud environments without the need to trust the cloud provider or the underlying software. However, the virtual machine still depends on the hypervisor for performing certain activities, such as the emulation of special CPU instructions, or the emulation of devices. Yet, most code that runs in virtual machines was not written with an attacker model which considers the hypervisor as malicious. In this work, we introduce a new class of attacks in which a malicious hypervisor manipulates external interfaces of an SEV or SEV-ES virtual machine to make it act against its own interests. We start by showing how we can make use of virtual devices to extract encryption keys and secret data of a virtual machine. We then show how we can reduce the entropy of probabilistic kernel defenses in the virtual machine by carefully manipulating the results of the CPUID and RDTSC instructions. We continue by showing an approach for secret data exfiltration and code injection based on the forgery of MMIO regions over the VM's address space. Finally, we show another attack which forces decryption of the VM's stack and uses Return Oriented Programming to execute arbitrary code inside the VM. While our approach is also applicable to traditional virtualization environments, its severity significantly increases with the attacker model of SEV-ES, which aims to protect a virtual machine from a benign but vulnerable hypervisor.

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

↑