Training Solo: On the Limitations of Domain Isolation Against Spectre-v2 Attacks
摘要
Spectre-v2 vulnerabilities have been increasingly gaining momentum, as they enable particularly powerful cross-domain transient execution attacks. Attackers can train the indirect branch predictor in one protection domain (e.g., user process) in order to speculatively hijack control flow and disclose data in a victim domain (e.g., kernel). In response to these attacks, vendors have deployed increasingly strong domain isolation techniques (e.g., eIBRS and IBPB) to prevent the predictor in one domain from being influenced by another domain's execution. While recent attacks such as BHI and Post-barrier Spectre have evidenced (now patched) implementation flaws of such techniques, the common assumption is that, barring implementation issues, domain isolation can close the attack surface in the practical cases of interest. In this paper, we challenge this assumption and show that even perfect domain isolation is insufficient to deter practical attacks. To this end, we systematically analyze self-training Spectre-v2 attacks, where both training and speculative control-flow hijacking occur in the same (victim) domain. While self-training attacks are believed to be limited to the in-domain scenario–where attackers can run arbitrary code and inject their own disclosure gadgets in a (default-off) sandbox such as eBPF–our analysis shows cross-domain variants are possible in practice. Specifically, we describe three new classes of attacks against the Linux kernel and present two end-to-end exploits that leak kernel memory on recent Intel CPUs at up to 17 KB/sec. During our investigation, we also stumbled upon two Intel issues which completely break (user, guest, and hypervisor) isolation and re-enable classic Spectre-v2 attacks.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 6 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Spectre on RISC-V Silicon: Attacks and Defenses on Commercial Out-of-Order Processors 引用了 Spectre Attacks: Exploiting Speculative Execution
- Inferring Fine-grained Control Flow Inside SGX Enclaves with Branch Shadowing 引用了 Prefetch Side-Channel Attacks: Bypassing SMAP and Kernel ASLR
- Spectre Attacks: Exploiting Speculative Execution 引用了 Inferring Fine-grained Control Flow Inside SGX Enclaves with Branch Shadowing
- Transient Architectural Execution: From Weird Gates to Weird Programs 引用了 Spectre Attacks: Exploiting Speculative Execution
- Transient Architectural Execution: From Weird Gates to Weird Programs 引用了 RIDL: Rogue In-Flight Data Load
- RIDL: Rogue In-Flight Data Load 引用了 Spectre Attacks: Exploiting Speculative Execution
- iEnFlow: Endogenous Control-Flow Attacks via Conditional Branch Prediction on Apple Silicon 引用了 Spectre Attacks: Exploiting Speculative Execution
- Speculative Probing: Hacking Blind in the Spectre Era 引用了 Spectre Attacks: Exploiting Speculative Execution
- Speculative Probing: Hacking Blind in the Spectre Era 引用了 Prefetch Side-Channel Attacks: Bypassing SMAP and Kernel ASLR
- Speculative Probing: Hacking Blind in the Spectre Era 引用了 RIDL: Rogue In-Flight Data Load
- TONTOU: On the Exploitability of Time-of-Neutralization to Time-of-Use Windows 引用了 Spectre Attacks: Exploiting Speculative Execution
- Defeating Transient Execution Attacks by Limiting Secret Reachability Through Register Hiding and ShadowCFI 引用了 Spectre Attacks: Exploiting Speculative Execution
- Defeating Transient Execution Attacks by Limiting Secret Reachability Through Register Hiding and ShadowCFI 引用了 Speculative Probing: Hacking Blind in the Spectre Era
引用它的顶会 Paper6
- Defeating Transient Execution Attacks by Limiting Secret Reachability Through Register Hiding and ShadowCFIDaniël Trujillo, Jagadish Kotra, David Kaplan, Mengjia YanS&P 2026 · 1 次引用
- Spectre on RISC-V Silicon: Attacks and Defenses on Commercial Out-of-Order ProcessorsLukas Gerlach, Marton Bognar, Daniel Weber, Michael Schwarz 等USENIX Security 2026
- Transient Architectural Execution: From Weird Gates to Weird ProgramsPing-Lun Wang, Fraser Brown, Riccardo Paccagnella, Eyal Ronen 等S&P 2026
- iEnFlow: Endogenous Control-Flow Attacks via Conditional Branch Prediction on Apple SiliconKaiyuan Rong, Jiajie Chen, Junqi Fang, Peng Qu 等CCS 2026
- TONTOU: On the Exploitability of Time-of-Neutralization to Time-of-Use WindowsDaniël Trujillo, Mengjia YanUSENIX Security 2026
它引用的 Paper18
- Spectre Attacks: Exploiting Speculative ExecutionPaul Kocher, Jann Horn, Anders Fogh, Daniel Genkin 等S&P 2019 · 2,435 次引用
- Inferring Fine-grained Control Flow Inside SGX Enclaves with Branch ShadowingSangho Lee, Ming-Wei Shih, Prasun Gera, Taesoo Kim 等USENIX Security 2017 · 536 次引用
- RIDL: Rogue In-Flight Data LoadStephan van Schaik, Alyssa Milburn, Sebastian Österlund, Pietro Frigo 等S&P 2019 · 408 次引用
- Prefetch Side-Channel Attacks: Bypassing SMAP and Kernel ASLRDaniel Gruss, Clémentine Maurice, Anders Fogh, Moritz Lipp 等CCS 2016 · 278 次引用
- Speculative Probing: Hacking Blind in the Spectre EraEnes Göktas, Kaveh Razavi, Georgios Portokalidis, Herbert Bos 等CCS 2020 · 36 次引用
相关 Paper
- Branch Privilege Injection: Compromising Spectre v2 Hardware Mitigations by Exploiting Branch Predictor Race ConditionsSandro Rüegge, Johannes Wikner, Kaveh RazaviUSENIX Security 2025
- InSpectre Gadget: Inspecting the Residual Attack Surface of Cross-privilege Spectre v2Sander Wiebing, Alvise de Faveri Tron, Herbert Bos, Cristiano GiuffridaUSENIX Security 2024 · 32 次引用
- Breaking the Barrier: Post-Barrier Spectre AttacksJohannes Wikner, Kaveh RazaviS&P 2025
- Branch History Injection: On the Effectiveness of Hardware Mitigations Against Cross-Privilege Spectre-v2 AttacksEnrico Barberis, Pietro Frigo, Marius Muench, Herbert Bos 等USENIX Security 2022
- Branch Target Reuse: Practical Spectre-v2 Attacks in JIT Engines via Stale Branch Prediction EntriesSander Wiebing, Yuhui Zhu, Alessandro Biondi, Cristiano GiuffridaCCS 2026
