arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2109.10660cs.CR
收藏

VIA:分析受保护虚拟机的设备接口

VIA: Analyzing Device Interfaces of Protected Virtual Machines

Felicitas Hetzelt, Martin Radev, Robert Buhren, Mathias Morbitzer, Jean-Pierre Seifert

摘要:

AMD和英特尔都提出了在云环境中进行机密计算的技术。建议的解决方案- AMD SEV(-ES,-SNP)和英特尔TDX -通过内存加密和完整性保护保护虚拟机(VM)免受来自更高特权层的攻击。这种计算模型在虚拟设备和VM之间绘制了一个新的信任边界,到目前为止还缺乏彻底的检查。因此,在本文中,我们提出了一个分析的虚拟设备接口,并讨论了几个攻击向量对受保护的虚拟机。此外,我们开发和评估VIA,一个自动化的分析工具,以检测通过虚拟设备接口收到的输入不正确的消毒的情况下。VIA在以下方面改进了现有的设备接口自动分析方法:(i)支持虚拟化相关总线,(ii)高效的直接内存访问(DMA)支持和(iii)性能。VIA基于Linux内核库和clang的libfuzzer构建,通过MMIO、PIO和DMA模糊驱动程序和设备之间的通信。对VIA的评估表明,它平均每秒执行570次执行,与现有方法相比,性能平均提高了2706倍。使用VIA,我们分析了Linux 5.10.0-rc 6中的22个驱动程序,从而发现了50个错误,并对Linux的虚拟设备驱动程序接口启动了多个补丁。为了证明我们的研究结果在AMD SEV和Intel TDX威胁模型下的重要性,我们展示了基于发现的漏洞的三种示例性攻击。这些攻击使恶意虚拟机管理程序能够损坏内存并在受保护的具有SEV-ES的虚拟机中获得代码执行,理论上适用于SEV-SNP和TDX。

英文摘要:

Both AMD and Intel have presented technologies for confidential computing in cloud environments. The proposed solutions - AMD SEV (-ES, -SNP) and Intel TDX - protect Virtual Machines (VMs) against attacks from higher privileged layers through memory encryption and integrity protection. This model of computation draws a new trust boundary between virtual devices and the VM, which in so far lacks thorough examination. In this paper, we therefore present an analysis of the virtual device interface and discuss several attack vectors against a protected VM. Further, we develop and evaluate VIA, an automated analysis tool to detect cases of improper sanitization of input recieved via the virtual device interface. VIA improves upon existing approaches for the automated analysis of device interfaces in the following aspects: (i) support for virtualization relevant buses, (ii) efficient Direct Memory Access (DMA) support and (iii) performance. VIA builds upon the Linux Kernel Library and clang's libfuzzer to fuzz the communication between the driver and the device via MMIO, PIO, and DMA. An evaluation of VIA shows that it performs 570 executions per second on average and improves performance compared to existing approaches by an average factor of 2706. Using VIA, we analyzed 22 drivers in Linux 5.10.0-rc6, thereby uncovering 50 bugs and initiating multiple patches to the virtual device driver interface of Linux. To prove our findings criticality under the threat model of AMD SEV and Intel TDX, we showcase three exemplary attacks based on the bugs found. The attacks enable a malicious hypervisor to corrupt the memory and gain code execution in protected VMs with SEV-ES and are theoretically applicable to SEV-SNP and TDX.

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

↑