在侧信道攻击中利用不准确的分支历史
Exploiting Inaccurate Branch History in Side-Channel Attacks
AI总结:
本文分析现代 BPU 的无偏置预测与分支历史推测如何改变 BHB 更新,提出 Spectre-BSE、Spectre-BHS 和 BiasScope,并用 Chimera 实现高速内核内存泄露。
摘要:
现代乱序 CPU 为优化性能严重依赖推测执行,而分支预测是减少停顿并最大化效率的基石。每当共享的分支预测资源缺乏适当隔离与清理方法时,它们就可能产生安全漏洞,使敏感数据在不同软件上下文之间暴露。本文考察现代 Branch Prediction Units(BPU,分支预测单元)的基本组成,并研究资源共享与争用如何影响两种被广泛实现但缺少文档说明的特性:Bias-Free Branch Prediction(无偏置分支预测)和 Branch History Speculation(分支历史推测)。我们的分析表明,这些 BPU 特性虽旨在通过更准确的分支历史提高推测执行效率,却也会引入显著安全风险。我们证明,这些特性会无意中改变 Branch History Buffer(BHB,分支历史缓冲区)的更新行为,并创建可触发恶意错误推测的新原语。这一发现揭示了 Branch History Injection(BHI,分支历史注入)此前未知的跨权限攻击面。基于这些发现,我们提出三种新型攻击原语:两种 Spectre 攻击,即 Spectre-BSE 和 Spectre-BHS,以及一种名为 BiasScope 的跨权限控制流侧信道攻击。我们的研究识别了相应的易受攻击控制流模式,并在多个处理器上演示了利用。最后,本文提出 Chimera:一个基于 eBPF、针对 Spectre-BHS 某一变体的攻击演示器,能够以 24,628 bit/s 泄露内核内存内容。
英文摘要:
Modern out-of-order CPUs heavily rely on speculative execution for performance optimization, with branch prediction serving as a cornerstone to minimize stalls and maximize efficiency. Whenever shared branch prediction resources lack proper isolation and sanitization methods, they may originate security vulnerabilities that expose sensitive data across different software contexts. This paper examines the fundamental components of modern Branch Prediction Units (BPUs) and investigates how resource sharing and contention affect two widely implemented but underdocumented features: Bias-Free Branch Prediction and Branch History Speculation. Our analysis demonstrates that these BPU features, while designed to enhance speculative execution efficiency through more accurate branch histories, can also introduce significant security risks. We show that these features can inadvertently modify the Branch History Buffer (BHB) update behavior and create new primitives that trigger malicious mis-speculations. This discovery exposes previously unknown cross-privilege attack surfaces for Branch History Injection (BHI). Based on these findings, we present three novel attack primitives: two Spectre attacks, namely Spectre-BSE and Spectre-BHS, and a cross-privilege control flow side-channel attack called BiasScope. Our research identifies corresponding patterns of vulnerable control flows and demonstrates exploitation on multiple processors. Finally, Chimera is presented: an attack demonstrator based on eBPF for a variant of Spectre-BHS that is capable of leaking kernel memory contents at 24,628 bit/s.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。