Lune

S&P2019Top-tier venue

The Code That Never Ran: Modeling Attacks on Speculative Evaluation

Craig Disselkoen, Radha Jagadeesan, Alan Jeffrey, James Riely

Abstract

This paper studies information flow caused by speculation mechanisms in hardware and software. The Spectre attack shows that there are practical information flow attacks which use an interaction of dynamic security checks, speculative evaluation and cache timing. Previous formal models of program execution are designed to capture computer architecture, rather than micro-architecture, and so do not capture attacks such as Spectre. In this paper, we propose a model based on pomsets which is designed to model speculative evaluation. The model is abstract with respect to specific micro-architectural features, such as caches and pipelines, yet is powerful enough to express known attacks such as Spectre and Prime+Abort, and verify their countermeasures. The model also allows for the prediction of new information flow attacks. We derive two such attacks, which exploit compiler optimizations, and validate these experimentally against gcc and clang.

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.

10 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

  • Prime+Abort: A Timer-Free High-Precision L3 Cache Attack using Intel TSX cites Trusted Browsers for Uncertain Times
  • HyperFlow: A Processor Architecture for Nonmalleable, Timing-Safe Information Flow Security cites Spectre Attacks: Exploiting Speculative Execution
  • High-Assurance Cryptography in the Spectre Era cites Spectre Attacks: Exploiting Speculative Execution
  • High-Assurance Cryptography in the Spectre Era cites InSpectre: Breaking and Fixing Microarchitectural Vulnerabilities by Formal Analysis
  • Automatically eliminating speculative leaks from cryptographic code with blade cites Spectre Attacks: Exploiting Speculative Execution
  • Automatically eliminating speculative leaks from cryptographic code with blade cites InSpectre: Breaking and Fixing Microarchitectural Vulnerabilities by Formal Analysis
  • Cats vs. Spectre: An Axiomatic Approach to Modeling Speculative Execution Attacks cites Spectre Attacks: Exploiting Speculative Execution
  • Cats vs. Spectre: An Axiomatic Approach to Modeling Speculative Execution Attacks cites InSpectre: Breaking and Fixing Microarchitectural Vulnerabilities by Formal Analysis
  • InSpectre: Breaking and Fixing Microarchitectural Vulnerabilities by Formal Analysis cites Spectre Attacks: Exploiting Speculative Execution
  • InSpectre: Breaking and Fixing Microarchitectural Vulnerabilities by Formal Analysis cites Prime+Abort: A Timer-Free High-Precision L3 Cache Attack using Intel TSX
  • SoK: Practical Foundations for Software Spectre Defenses cites Spectre Attacks: Exploiting Speculative Execution
  • SoK: Practical Foundations for Software Spectre Defenses cites High-Assurance Cryptography in the Spectre Era
  • SoK: Practical Foundations for Software Spectre Defenses cites Automatically eliminating speculative leaks from cryptographic code with blade
  • SoK: Practical Foundations for Software Spectre Defenses cites Cats vs. Spectre: An Axiomatic Approach to Modeling Speculative Execution Attacks
  • SoK: Practical Foundations for Software Spectre Defenses cites InSpectre: Breaking and Fixing Microarchitectural Vulnerabilities by Formal Analysis
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers10

  1. SoK: Practical Foundations for Software Spectre DefensesSunjay Cauligi, Craig Disselkoen, Daniel Moghimi, Gilles Barthe et al.S&P 2022 · 59 citations
  2. Automatically eliminating speculative leaks from cryptographic code with bladeMarco Vassena, Craig Disselkoen, Klaus von Gleissenthall, Sunjay Cauligi et al.POPL 2021 · 53 citations
  3. InSpectre: Breaking and Fixing Microarchitectural Vulnerabilities by Formal AnalysisRoberto Guanciale, Musard Balliu, Mads DamCCS 2020 · 51 citations
  4. High-Assurance Cryptography in the Spectre EraGilles Barthe, Sunjay Cauligi, Benjamin Grégoire, Adrien Koutsos et al.S&P 2021 · 42 citations
  5. Cats vs. Spectre: An Axiomatic Approach to Modeling Speculative Execution AttacksHernán Ponce de León, Johannes KinderS&P 2022 · 35 citations

Builds on4

  1. Spectre Attacks: Exploiting Speculative ExecutionPaul Kocher, Jann Horn, Anders Fogh, Daniel Genkin et al.S&P 2019 · 2,435 citations
  2. Prime+Abort: A Timer-Free High-Precision L3 Cache Attack using Intel TSXCraig Disselkoen, David Kohlbrenner, Leo Porter, Dean M. TullsenUSENIX Security 2017 · 186 citations
  3. Trusted Browsers for Uncertain TimesDavid Kohlbrenner, Hovav ShachamUSENIX Security 2016 · 83 citations
  4. HyperFlow: A Processor Architecture for Nonmalleable, Timing-Safe Information Flow SecurityAndrew Ferraiuolo, Mark Zhao, Andrew C. Myers, G. Edward SuhCCS 2018 · 63 citations

Related papers

  1. New Models for Understanding and Reasoning about Speculative Execution AttacksZecheng He, Guangyuan Hu, Ruby B. LeeHPCA 2021 · 18 citations
  2. Speculative interference attacks: breaking invisible speculation schemesMohammad Behnia, Prateek Sahu, Riccardo Paccagnella, Jiyong Yu et al.ASPLOS 2021 · 69 citations
  3. ProSpeCT: Provably Secure Speculation for the Constant-Time PolicyLesly-Ann Daniel, Marton Bognar, Job Noorman, Sébastien Bardin et al.USENIX Security 2023
  4. Pensieve: Microarchitectural Modeling for Security EvaluationYuheng Yang, Thomas Bourgeat, Stella Lau, Mengjia YanISCA 2023 · 23 citations
  5. Exorcising Spectres with Secure CompilersMarco Patrignani, Marco GuarnieriCCS 2021 · 5 citations
Dusk over the sea between two cliffs drawn in fine vertical lines