Hacky Racers:利用指令级并行生成隐形细粒度定时器
Hacky Racers: Exploiting Instruction-Level Parallelism to Generate Stealthy Fine-Grained Timers
摘要:
侧信道攻击对许多安全模型构成严重威胁,尤其是基于沙箱的浏览器。虽然乱序处理器中的瞬时执行侧通道以前被归咎于Spectre和Meltdown等漏洞,但我们表明,事实上,乱序执行\emph{itself}造成混乱的能力要普遍得多。我们开发了Hacky Racers,一种新型的计时小工具,它使用指令级并行,乱序执行的另一个关键特性,来测量任意细粒度的计时差异,即使在高度受限的JavaScript沙箱环境中也是如此。虽然这样的环境试图通过降低定时器精度和移除诸如\textit{SharedArrayBuffer}之类的可用于经由线程级并行性间接生成定时器的语言功能来减轻定时侧通道,但是不能设计这样的限制来限制Hacky Racers。我们还设计了Hacky Racers的版本,这些版本不需要任何错误推测,这表明瞬态执行并不是现代微架构性能优化对安全性的唯一威胁。我们使用Hacky Racers来构建新颖的\textit{backwards-in-time} Spectre小工具,这些小工具通过在错误推测被发现之前泄露秘密来打破文献中的许多硬件对策。我们还使用它们来生成JavaScript中第一个已知的不需要\textit{SharedArrayBuffer}支持的末级缓存驱逐集生成器。
英文摘要:
Side-channel attacks pose serious threats to many security models, especially sandbox-based browsers. While transient-execution side channels in out-of-order processors have previously been blamed for vulnerabilities such as Spectre and Meltdown, we show that in fact, the capability of out-of-order execution \emph{itself} to cause mayhem is far more general. We develop Hacky Racers, a new type of timing gadget that uses instruction-level parallelism, another key feature of out-of-order execution, to measure arbitrary fine-grained timing differences, even in the presence of highly restricted JavaScript sandbox environments. While such environments try to mitigate timing side channels by reducing timer precision and removing language features such as \textit{SharedArrayBuffer} that can be used to indirectly generate timers via thread-level parallelism, no such restrictions can be designed to limit Hacky Racers. We also design versions of Hacky Racers that require no misspeculation whatsoever, demonstrating that transient execution is not the only threat to security from modern microarchitectural performance optimization. We use Hacky Racers to construct novel \textit{backwards-in-time} Spectre gadgets, which break many hardware countermeasures in the literature by leaking secrets before misspeculation is discovered. We also use them to generate the first known last-level cache eviction set generator in JavaScript that does not require \textit{SharedArrayBuffer} support.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。