计算机科学 > 密码学与安全
[提交于 2025年2月11日]
标题:SMaCk: Efficient Instruction Cache Attacks via Self-Modifying Code Conflicts
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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.
提交历史
来自:Seonghun Son[v1] 2025年2月11日 星期二 00:00:00 UTC