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

通过硬件预取器泄漏控制流信息

Leaking Control Flow Information via the Hardware Prefetcher

Yun Chen, Lingfeng Pei, Trevor E. Carlson

摘要:

现代处理器设计使用各种微体系结构方法来实现高性能。不幸的是,新的侧通道经常被发现,利用这些增强的设计。从安全角度来看,一个很少受到关注的领域是处理器的硬件预取器,这是一个用于减轻当今系统中DRAM延迟的关键组件。预取器,像分支预测器一样,保持与应用程序执行相关的关键状态,并且有可能泄漏秘密信息。但到目前为止,还没有一个通用的预取器侧通道,可以积极利用今天的硬件演示。在本文中,我们提出了AfterImage,一个新的侧通道,利用英特尔指令指针为基础的步幅预取。我们观察到,当处理器的执行在不同的私有域之间切换时,由一个域训练的预取器可以在另一个域中触发。据我们所知,这项工作是第一次公开展示一种方法,这种方法既与算法无关,又能够将内核数据泄漏到用户空间。AfterImage与以前的作品不同,因为它在执行的非推测路径上泄漏数据。正因为如此,大量专注于保护瞬态、基于分支结果的数据的工作将无法阻止这种侧通道。通过对现代英特尔处理器中的IP步幅预取器进行逆向工程,我们成功地开发了三种AfterImage变体,以跨代码区域、进程和用户内核边界泄漏控制流信息。我们发现我们的方法泄漏信息的准确性很高(从91%,高达99%),并提出了两种缓解技术来阻止这种侧通道,其中之一可以用于今天的硬件系统。

英文摘要:

Modern processor designs use a variety of microarchitectural methods to achieve high performance. Unfortunately, new side-channels have often been uncovered that exploit these enhanced designs. One area that has received little attention from a security perspective is the processor's hard-ware prefetcher, a critical component used to mitigate DRAM latency in today's systems. Prefetchers, like branch predictors, hold critical state related to the execution of the application, and have the potential to leak secret information. But up to now, there has not been a demonstration of a generic prefetcher side-channel that could be actively exploited in today's hardware. In this paper, we present AfterImage, a new side-channel that exploits the Intel Instruction Pointer-based stride prefetcher. We observe that, when the execution of the processor switches between different private domains, the prefetcher trained by one domain can be triggered in another. To the best of our knowledge, this work is the first to publicly demonstrate a methodology that is both algorithm-agnostic and also able to leak kernel data into userspace. AfterImage is different from previous works, as it leaks data on the non-speculative path of execution. Because of this, a large class of work that has focused on protecting transient, branch-outcome-based data will be unable to block this side-channel. By reverse-engineering the IP-stride prefetcher in modern Intel processors, we have successfully developed three variants of AfterImage to leak control flow information across code regions, processes and the user-kernel boundary. We find a high level of accuracy in leaking information with our methodology (from 91%, up to 99%), and propose two mitigation techniques to block this side-channel, one of which can be used on hardware systems today.

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

↑