PhotoFinish:可移植的无计时器微架构延迟探测方法 PhotoFinish: Portable Timerless Probing of Microarchitectural Latencies 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-11-06
⬇️ 3 次下载
👁️ 预览文献
💡 AI 中文简介
微架构攻击通常依赖高精度计时器测量延迟差异,因此限制计时器成为常见防御手段。本文提出PhotoFinish,一种无需计时器的可移植探测原语:让被测操作与固定参考操作在两个并行线程中竞争,并写入同一共享内存位置,最终写入值取决于延迟差异,从而把时间差直接转化为可观测的架构值。研究者在覆盖四种指令集架构的38款CPU上测试,能可靠区分缓存状态,编译为WebAssembly在浏览器内运行也保持相近精度,并成功用于AES T表攻击、Evict+Reload攻击、TLB与执行引擎延迟测量,甚至能定位地址所在的末级缓存切片。
领域计算机体系结构与硬件安全(微架构侧信道攻击)
适合谁读需要一定专业背景(体系结构、侧信道与浏览器安全方向读者)
核心贡献提出首个跨平台通用的无计时器探测原语,仅依赖并行执行与共享内存,不构造也不读取时钟;证明共享内存竞争可精确替代显式计时,并揭示仅限制计时器无法阻止软件观测细粒度微架构延迟差异。
关键数据在覆盖4种ISA的38款CPU上实现可靠的缓存状态分类;编译为WebAssembly在浏览器内执行精度相当;可区分TLB与执行引擎延迟,并精确定位地址所属的LLC切片。
推荐理由如果你以为禁用高精度计时器就能挡住侧信道攻击,这篇工作用38款CPU的实验告诉你:两个线程抢写同一块内存就够了。
关键词["微架构侧信道", "无计时器探测", "共享内存竞争", "缓存状态分类", "WebAssembly", "计时器限制防御"]

原文摘要

查看英文原文摘要

Timing measurements are a fundamental building block of microarchitectural attacks, enabling software to convert otherwise invisible latency differences into architectural observations. Thus, restricting high-resolution timers is a common defense, especially in constrained environments such as web browsers. Timerless probing primitives provide an alternative approach. Instead of reading or constructing a timer, they observe architectural events that correlate with the microarchitectural state. However, such primitives typically rely on platform-specific behavior, and none generalizes across the wider computing landscape. In this paper, we present PhotoFinish, a portable timerless probing primitive that converts latency differences directly into an architectural value. PhotoFinish races an operation under test against a fixed reference in two parallel threads that then write unique values to the same shared location, resulting in a latency-dependent architectural value. PhotoFinish only requires parallel execution and shared memory, without constructing or reading a clock. We evaluate PhotoFinish on 38 CPUs spanning four ISAs and demonstrate reliable cache state classification across widely different microarchitectures, with comparable fidelity when compiled to WebAssembly and executed inside a browser. We further use PhotoFinish in AES T-table and Evict+Reload attacks, show that it applies beyond caches to TLB and execution-engine latencies, and demonstrate sufficient precision to identify the LLC slice of an address. Our results demonstrate shared-memory races as a generic and precise replacement for explicit timing, showing that restricting timers alone does not prevent software from observing fine-grained microarchitectural latency differences.