SMaCk:通过自修改代码冲突实现的高效指令缓存攻击
SMaCk: Efficient Instruction Cache Attacks via Self-Modifying Code Conflicts
AI总结:
本文研究自修改代码在x86处理器上引发的指令缓存时间差异,提出利用该差异增强Prime+Probe和Flush+Reload等缓存攻击的新技术,并设计基于硬件性能计数器的动态检测方法来缓解相关威胁。
摘要:
自修改代码(SMC)允许程序修改自身指令,从而在 x86 处理器上优化性能和功能。尽管 SMC 具有诸多益处,但它引入了独特的微架构行为,可能被用于恶意目的。本文通过研究影响指令缓存行的特定 x86 指令如何导致缓存命中与未命中之间可测量的时间差异,探讨了 SMC 的安全影响。这些差异有助于实现更精细的缓存攻击,使其噪声更低且更有效。我们提出了新颖的攻击技术,利用这些时间变化来增强现有方法,如 Prime+Probe 和 Flush+Reload。我们的先进技术使攻击者能够更精确地攻击加密密钥,并在各种 x86 平台上创建类似于 Spectre 的隐蔽信道。最后,我们提出了一种利用硬件性能计数器的动态检测方法,以缓解这些增强的威胁。
英文摘要:
Self-modifying code (SMC) allows programs to alter their own instructions, optimizing performance and functionality on x86 processors. Despite its benefits, SMC introduces unique microarchitectural behaviors that can be exploited for malicious purposes. In this paper, we explore the security implications of SMC by examining how specific x86 instructions affecting instruction cache lines lead to measurable timing discrepancies between cache hits and misses. These discrepancies facilitate refined cache attacks, making them less noisy and more effective. We introduce novel attack techniques that leverage these timing variations to enhance existing methods such as Prime+Probe and Flush+Reload. Our advanced techniques allow adversaries to more precisely attack cryptographic keys and create covert channels akin to Spectre across various x86 platforms. Finally, we propose a dynamic detection methodology utilizing hardware performance counters to mitigate these enhanced threats.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。