arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2207.11689cs.CR
收藏

PMUSpill:性能监控单元中的计数器泄漏了SGX保护的秘密

PMUSpill: The Counters in Performance Monitor Unit that Leak SGX-Protected Secrets

Pengfei Qiu, Yongqiang Lyu, Haixia Wang, Dongsheng Wang, Chang Liu, Qiang Gao, Chunlu Wang, Rihui Sun, Gang Qu

摘要:

性能监视器(PMU)是当前处理器上的重要硬件模块,它将处理器发起的事件计数到一组PMU计数器中。理想情况下,不应记录由已执行但结果未成功提交(瞬时执行)的指令触发的事件。然而,在这项研究中,我们发现,一些PMU事件触发的瞬时执行指令,实际上会被记录的PMU。在此基础上,我们提出了PMUSpill攻击,它使攻击者能够恶意泄漏的秘密数据加载在瞬态执行。最大的挑战是如何将秘密数据编码为PMU事件。我们构造了一个指令小工具来解决这个问题,它的执行路径可以由PMU计数器识别,表示秘密数据的值。通过实际实验,成功实现了PMUSpill攻击,泄露了Intel处理器中的可信执行环境(TEE)Intel Software Guard Extensions(SGX)中存储的秘密数据。此外,我们通过迭代所有有效的PMU计数器和指令来定位易受攻击的PMU计数器及其触发指令。实验结果表明,有多达20个PMU计数器可用于实现PMUSpill攻击。我们还提供了一些可能的基于硬件和软件的应对措施来解决PMUSpill攻击,这些措施可用于增强未来处理器的安全性。

英文摘要:

Performance Monitor Unit (PMU) is a significant hardware module on the current processors, which counts the events launched by processor into a set of PMU counters. Ideally, the events triggered by instructions that are executed but the results are not successfully committed (transient execution) should not be recorded. However, in this study, we discover that some PMU events triggered by the transient execution instructions will actually be recorded by PMU. Based on this, we propose the PMUSpill attack, which enables attackers to maliciously leak the secret data that are loaded during transient executions. The biggest challenge is how to encode the secret data into PMU events. We construct an instruction gadget to solve this challenge, whose execution path that can be identified by PMU counters represents what values the secret data are. We successfully implement the PMUSpill attack to leak the secret data stored in Intel Software Guard Extensions (SGX) (a Trusted Execution Environment (TEE) in the Intel's processors) through real experiments. Besides, we locate the vulnerable PMU counters and their trigger instructions by iterating all the valid PMU counters and instructions. The experiment results demonstrate that there are up to 20 PMU counters available to implement the PMUSpill attack. We also provide some possible hardware and software-based countermeasures for addressing the PMUSpill attack, which can be utilized to enhance the security of processors in future.

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

↑