paperbot · PL 论文追踪

全部论文 待读 收藏

P2 SMaCk: Efficient Instruction Cache Attacks via Self-Modifying Code Conflicts

SMaCk:利用自修改代码冲突的高效指令缓存攻击
ASPLOS Proceedings of the 30th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 22025匹配度 1/10 · 该论文研究自修改代码引发的指令缓存时序差异、缓存攻击与硬件计数器检测,属于微架构侧信道安全方向,与用户关注的静态分析、LLM/Agentic 程序分析、浮点程序分析或贝叶斯程序分析没有直接交集。引用 3 inbox
Seonghun Son, Daniel Moghimi, Berk Gulmezoglu
crossref: 2026-09-12dblp: 2026-09-12arxiv: 2026-09-12

AI 速览

一句话:揭示自修改代码引发的指令缓存时序差异,据此提出更精确的缓存攻击及基于硬件计数器的检测方法。

自修改代码(SMC)能让程序在 x86 处理器上修改自身指令以优化性能,但其独特的微架构行为也可能被恶意利用。本文研究特定 x86 指令如何影响指令缓存行,造成缓存命中与未命中之间可测量的时序差异,这些差异使缓存攻击的噪声更低、效果更好。作者提出新颖的攻击技术,利用这些时序变化增强 Prime+Probe 和 Flush+Reload 等已有方法,从而更精确地攻击密码密钥,并在多种 x86 平台上构造类似 Spectre 的隐蔽信道。最后,论文提出一种利用硬件性能计数器的动态检测方法,以缓解这些增强型威胁。

问题
自修改代码在 x86 上引入的微架构行为可被滥用,而现有指令缓存攻击噪声较大、精度与效率有限。
方法
分析影响指令缓存行的特定 x86 指令,测量其缓存命中与未命中的时序差异,并据此改进 Prime+Probe 与 Flush+Reload 等攻击技术。
评估
在多种 x86 平台上攻击密码密钥并构建类 Spectre 隐蔽信道,验证攻击有效性;同时利用硬件性能计数器实现动态检测以缓解威胁。
原文摘要(Abstract)

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.

链接与引用

DOI 原文 · arXiv · PDF(开放获取) · DBLP

BibTeX
@inproceedings{abs-2502-05429,
  title = {SMaCk: Efficient Instruction Cache Attacks via Self-Modifying Code Conflicts},
  author = {Seonghun Son and Daniel Moghimi and Berk Gulmezoglu},
  booktitle = {ASPLOS},
  year = {2025},
  doi = {10.1145/3676641.3716274}
}