Lune

ASPLOS2020Top-tier venue

Exploring Branch Predictors for Constructing Transient Execution Trojans

Tao Zhang, Kenneth Koltermann, Dmitry Evtyushkin

Abstract

Transient execution is one of the most critical features used in CPUs to achieve high performance. Recent Spectre attacks demonstrated how this feature can be manipulated to force applications to reveal sensitive data. The industry quickly responded with a series of software and hardware mitigations among which microcode patches are the most prevalent and trusted. In this paper, we argue that currently deployed protections still leave room for constructing attacks. We do so by presenting transient trojans, software modules that conceal their malicious activity within transient execution mode. They appear completely benign, pass static and dynamic analysis checks, but reveal sensitive data when triggered. To construct these trojans, we perform a detailed analysis of the attack surface currently present in today's systems with respect to the recommended mitigation techniques. We reverse engineer branch predictors in several recent x86_64 processors which allows us to uncover previously unknown exploitation techniques. Using these techniques, we construct three types of transient trojans and demonstrate their stealthiness and practicality.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

20 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Automatic Detection of Speculative Execution Combinations cites Spectre Attacks: Exploiting Speculative Execution
  • Automatic Detection of Speculative Execution Combinations cites Spectector: Principled Detection of Speculative Information Flows
  • Automatic Detection of Speculative Execution Combinations cites ret2spec: Speculative Execution Using Return Stack Buffers
  • Automatic Detection of Speculative Execution Combinations cites SoK: Practical Foundations for Software Spectre Defenses
  • Spectector: Principled Detection of Speculative Information Flows cites Spectre Attacks: Exploiting Speculative Execution
  • Spectector: Principled Detection of Speculative Information Flows cites ret2spec: Speculative Execution Using Return Stack Buffers
  • Spectector: Principled Detection of Speculative Information Flows cites A Systematic Evaluation of Transient Execution Attacks and Defenses
  • An Analysis of Speculative Type Confusion Vulnerabilities in the Wild cites Spectre Attacks: Exploiting Speculative Execution
  • An Analysis of Speculative Type Confusion Vulnerabilities in the Wild cites Spectector: Principled Detection of Speculative Information Flows
  • An Analysis of Speculative Type Confusion Vulnerabilities in the Wild cites ret2spec: Speculative Execution Using Return Stack Buffers
  • An Analysis of Speculative Type Confusion Vulnerabilities in the Wild cites Meltdown: Reading Kernel Memory from User Space
  • An Analysis of Speculative Type Confusion Vulnerabilities in the Wild cites Swivel: Hardening WebAssembly against Spectre
  • ret2spec: Speculative Execution Using Return Stack Buffers cites Spectre Attacks: Exploiting Speculative Execution
  • Meltdown: Reading Kernel Memory from User Space cites Spectre Attacks: Exploiting Speculative Execution
  • INTROSPECTRE: A Pre-Silicon Framework for Discovery and Analysis of Transient Execution Vulnerabilities cites Spectre Attacks: Exploiting Speculative Execution
  • INTROSPECTRE: A Pre-Silicon Framework for Discovery and Analysis of Transient Execution Vulnerabilities cites Spectector: Principled Detection of Speculative Information Flows
  • INTROSPECTRE: A Pre-Silicon Framework for Discovery and Analysis of Transient Execution Vulnerabilities cites ret2spec: Speculative Execution Using Return Stack Buffers
  • INTROSPECTRE: A Pre-Silicon Framework for Discovery and Analysis of Transient Execution Vulnerabilities cites Meltdown: Reading Kernel Memory from User Space
  • A Systematic Evaluation of Transient Execution Attacks and Defenses cites Spectre Attacks: Exploiting Speculative Execution
  • A Systematic Evaluation of Transient Execution Attacks and Defenses cites ret2spec: Speculative Execution Using Return Stack Buffers
  • Swivel: Hardening WebAssembly against Spectre cites Spectre Attacks: Exploiting Speculative Execution
  • Swivel: Hardening WebAssembly against Spectre cites Spectector: Principled Detection of Speculative Information Flows
  • Swivel: Hardening WebAssembly against Spectre cites ret2spec: Speculative Execution Using Return Stack Buffers
  • Swivel: Hardening WebAssembly against Spectre cites Meltdown: Reading Kernel Memory from User Space
  • Swivel: Hardening WebAssembly against Spectre cites A Systematic Evaluation of Transient Execution Attacks and Defenses
  • SoK: Practical Foundations for Software Spectre Defenses cites Spectre Attacks: Exploiting Speculative Execution
  • SoK: Practical Foundations for Software Spectre Defenses cites Spectector: Principled Detection of Speculative Information Flows
  • SoK: Practical Foundations for Software Spectre Defenses cites An Analysis of Speculative Type Confusion Vulnerabilities in the Wild
  • SoK: Practical Foundations for Software Spectre Defenses cites ret2spec: Speculative Execution Using Return Stack Buffers
  • SoK: Practical Foundations for Software Spectre Defenses cites Meltdown: Reading Kernel Memory from User Space
  • SoK: Practical Foundations for Software Spectre Defenses cites A Systematic Evaluation of Transient Execution Attacks and Defenses
  • SoK: Practical Foundations for Software Spectre Defenses cites Swivel: Hardening WebAssembly against Spectre
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers20

  1. Swivel: Hardening WebAssembly against SpectreShravan Narayan, Craig Disselkoen, Daniel Moghimi, Sunjay Cauligi et al.USENIX Security 2021 · 74 citations
  2. SoK: Practical Foundations for Software Spectre DefensesSunjay Cauligi, Craig Disselkoen, Daniel Moghimi, Gilles Barthe et al.S&P 2022 · 59 citations
  3. An Analysis of Speculative Type Confusion Vulnerabilities in the WildOfek Kirzner, Adam MorrisonUSENIX Security 2021 · 40 citations
  4. INTROSPECTRE: A Pre-Silicon Framework for Discovery and Analysis of Transient Execution VulnerabilitiesMoein Ghaniyoun, Kristin Barber, Yinqian Zhang, Radu TeodorescuISCA 2021 · 23 citations
  5. Automatic Detection of Speculative Execution CombinationsXaver Fabian, Marco Guarnieri, Marco PatrignaniCCS 2022 · 19 citations

Builds on9

  1. Spectre Attacks: Exploiting Speculative ExecutionPaul Kocher, Jann Horn, Anders Fogh, Daniel Genkin et al.S&P 2019 · 2,435 citations
  2. Meltdown: Reading Kernel Memory from User SpaceMoritz Lipp, Michael Schwarz, Daniel Gruss, Thomas Prescher et al.USENIX Security 2018 · 1,456 citations
  3. A Systematic Evaluation of Transient Execution Attacks and DefensesClaudio Canella, Jo Van Bulck, Michael Schwarz, Moritz Lipp et al.USENIX Security 2019 · 442 citations
  4. ret2spec: Speculative Execution Using Return Stack BuffersGiorgi Maisuradze, Christian RossowCCS 2018 · 282 citations
  5. Spectector: Principled Detection of Speculative Information FlowsMarco Guarnieri, Boris Köpf, José F. Morales, Jan Reineke et al.S&P 2020 · 177 citations

Related papers

  1. ConTExT: A Generic Approach for Mitigating SpectreMichael Schwarz, Moritz Lipp, Claudio Canella, Robert Schilling et al.NDSS 2020
  2. Phantom: Exploiting Decoder-detectable MispredictionsJohannes Wikner, Daniël Trujillo, Kaveh RazaviMICRO 2023 · 19 citations
  3. An Exploratory Analysis of Microcode as a Building Block for System DefensesBenjamin Kollenda, Philipp Koppe, Marc Fyrbiak, Christian Kison et al.CCS 2018 · 13 citations
  4. I See Dead µops: Leaking Secrets via Intel/AMD Micro-Op CachesXida Ren, Logan Moody, Mohammadkazem Taram, Matthew Jordan et al.ISCA 2021 · 59 citations
  5. Branch Target Reuse: Practical Spectre-v2 Attacks in JIT Engines via Stale Branch Prediction EntriesSander Wiebing, Yuhui Zhu, Alessandro Biondi, Cristiano GiuffridaCCS 2026
Dusk over the sea between two cliffs drawn in fine vertical lines