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

选择性延迟指令以防止微体系结构重放攻击

Selectively Delaying Instructions to Prevent Microarchitectural Replay Attacks

Christos Sakalis, Stefanos Kaxiras, Magnus Själander

摘要:

MicroScope和一般的微体系结构重放攻击利用推测执行的特性,将受害者应用程序的执行困在无限循环中,使攻击者能够通过无限期地执行来放大侧信道攻击。由于重放的性质,它可以用于有效地攻击安全关键的可信执行环境(安全飞地),即使在侧信道攻击将不可能的条件下。与此同时,与投机性侧信道攻击不同,MicroScope可用于放大正确的执行路径,使许多现有的投机性侧信道防御无效。在这项工作中,我们概括了MicroScope之外的微架构重放攻击,并提出了一种有效的防御方法。我们观察到,这种攻击依赖于所谓的“重放句柄”的重复挤压,导致侧通道的指令必须驻留在相同的重排序缓冲区窗口的句柄。我们提出了延迟挤压,跟踪压扁指令,并防止他们被推测重放句柄重放技术。我们的评估表明,有可能实现完全的安全性,对微架构重放攻击非常温和的硬件要求,同时仍然保持97%的不安全的基线性能。

英文摘要:

MicroScope, and microarchitectural replay attacks in general, take advantage of the characteristics of speculative execution to trap the execution of the victim application in an infinite loop, enabling the attacker to amplify a side-channel attack by executing it indefinitely. Due to the nature of the replay, it can be used to effectively attack security critical trusted execution environments (secure enclaves), even under conditions where a side-channel attack would not be possible. At the same time, unlike speculative side-channel attacks, MicroScope can be used to amplify the correct path of execution, rendering many existing speculative side-channel defences ineffective. In this work, we generalize microarchitectural replay attacks beyond MicroScope and present an efficient defence against them. We make the observation that such attacks rely on repeated squashes of so-called "replay handles" and that the instructions causing the side-channel must reside in the same reorder buffer window as the handles. We propose Delay-on-Squash, a technique for tracking squashed instructions and preventing them from being replayed by speculative replay handles. Our evaluation shows that it is possible to achieve full security against microarchitectural replay attacks with very modest hardware requirements, while still maintaining 97% of the insecure baseline performance.

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

↑