paperbot · PL 论文追踪

全部论文 待读 收藏

P2 BranchScope

BranchScope:针对方向分支预测器的细粒度侧信道攻击
ASPLOS Proceedings of the Twenty-Third International Conference on Architectural Support for Programming Languages and Operating Systems2018匹配度 0/10 · 论文研究的是通过分支预测器进行侧信道攻击并攻击 SGX enclave,属于微架构安全领域,与用户的 PL→AI、AI→PL、浮点程序分析、贝叶斯程序分析及 LLM/Agent 交叉方向均无直接关联。引用 182 inbox
Dmitry Evtyushkin, Ryan Riley, Nael CSE and ECE Abu-Ghazaleh, Dmitry Ponomarev
crossref: 2026-09-12

AI 速览

一句话:提出 BranchScope 攻击,通过操纵共享方向分支预测器推断受害者条件分支方向,并成功攻击 SGX enclave。

此前针对分支预测单元(BPU)的侧信道研究主要集中于分支目标缓冲(BTB),而负责存储分支跳转方向预测的方向分支预测器是否可被细粒度攻击尚不清楚。本文提出 BranchScope:攻击者通过操纵与受害者共享的方向分支预测器状态,推断受害者程序中任意条件分支的跳转方向。由于现代处理器采用结构未知的复杂混合分支预测器,攻击者先迫使其退化为简单的单级(1-level)模式,从而简化方向恢复过程。作者在多种近期 Intel CPU 上实现了 BranchScope,并进一步演示了对 SGX enclave 的成功攻击,表明方向分支预测器构成被低估的侧信道脆弱面。

问题
既有分支预测单元侧信道工作只攻击 BTB,方向分支预测器能否被细粒度利用以泄漏任意条件分支方向仍属未知。
方法
攻击者操纵共享的方向分支预测器,并迫使组织未知的混合预测器切换到简单的一级模式,以此恢复受害程序条件分支的跳转方向。
评估
在多种近期 Intel 处理器上实现 BranchScope,并成功对 SGX enclave 实施攻击,验证了方向分支预测器的侧信道脆弱性。
原文摘要(Abstract)

We present BranchScope - a new side-channel attack where the attacker infers the direction of an arbitrary conditional branch instruction in a victim program by manipulating the shared directional branch predictor. The directional component of the branch predictor stores the prediction on a given branch (taken or not-taken) and is a different component from the branch target buffer (BTB) attacked by previous work. BranchScope is the first fine-grained attack on the directional branch predictor, expanding our understanding of the side channel vulnerability of the branch prediction unit. Our attack targets complex hybrid branch predictors with unknown organization. We demonstrate how an attacker can force these predictors to switch to a simple 1-level mode to simplify the direction recovery. We carry out BranchScope on several recent Intel CPUs and also demonstrate the attack against an SGX enclave.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot4275,
  title = {BranchScope},
  author = {Dmitry Evtyushkin and Ryan Riley and Nael CSE and ECE Abu-Ghazaleh and Dmitry Ponomarev},
  booktitle = {ASPLOS},
  year = {2018},
  doi = {10.1145/3173162.3173204}
}