InSpectre: Breaking and Fixing Microarchitectural Vulnerabilities by Formal Analysis
Roberto Guanciale, Musard Balliu, Mads Dam
Abstract
The recent Spectre attacks have demonstrated the fundamental insecurity of current computer microarchitecture. The attacks use features like pipelining, out-of-order and speculation to extract arbitrary information about the memory contents of a process. A comprehensive formal microarchitectural model capable of representing the forms of out-of-order and speculative behavior that can meaningfully be implemented in a high performance pipelined architecture has not yet emerged. Such a model would be very useful, as it would allow the existence and non-existence of vulnerabilities, and soundness of countermeasures to be formally established. This paper presents such a model targeting single core processors. The model is intentionally very general and provides an infrastructure to define models of real CPUs. It incorporates microarchitectural features that underpin all known Spectre vulnerabilities. We use the model to elucidate the security of existing and new vulnerabilities, as well as to formally analyze the effectiveness of proposed countermeasures. Specifically, we discover three new (potential) vulnerabilities, including a new variant of Spectre v4, a vulnerability on speculative fetching, and a vulnerability on out-of-order execution, and analyze the effectiveness of existing countermeasures including constant time and serializing instructions.
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.
29 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Constant-time foundations for the new spectre era cites Spectre Attacks: Exploiting Speculative Execution
- Constant-time foundations for the new spectre era cites ZombieLoad: Cross-Privilege-Boundary Data Sampling
- Constant-time foundations for the new spectre era cites RIDL: Rogue In-Flight Data Load
- Constant-time foundations for the new spectre era cites Meltdown: Reading Kernel Memory from User Space
- ZombieLoad: Cross-Privilege-Boundary Data Sampling cites Spectre Attacks: Exploiting Speculative Execution
- ZombieLoad: Cross-Privilege-Boundary Data Sampling cites A Systematic Evaluation of Transient Execution Attacks and Defenses
- Hardware-Software Contracts for Secure Speculation cites Spectre Attacks: Exploiting Speculative Execution
- Hardware-Software Contracts for Secure Speculation cites ZombieLoad: Cross-Privilege-Boundary Data Sampling
- Hardware-Software Contracts for Secure Speculation cites RIDL: Rogue In-Flight Data Load
- Hardware-Software Contracts for Secure Speculation cites Meltdown: Reading Kernel Memory from User Space
- Hardware-Software Contracts for Secure Speculation cites A Systematic Evaluation of Transient Execution Attacks and Defenses
- RIDL: Rogue In-Flight Data Load cites Spectre Attacks: Exploiting Speculative Execution
- RIDL: Rogue In-Flight Data Load cites Meltdown: Reading Kernel Memory from User Space
- Meltdown: Reading Kernel Memory from User Space cites Spectre Attacks: Exploiting Speculative Execution
- High-Assurance Cryptography in the Spectre Era cites Constant-time foundations for the new spectre era
- High-Assurance Cryptography in the Spectre Era cites Spectre Attacks: Exploiting Speculative Execution
- High-Assurance Cryptography in the Spectre Era cites ZombieLoad: Cross-Privilege-Boundary Data Sampling
- High-Assurance Cryptography in the Spectre Era cites Hardware-Software Contracts for Secure Speculation
- High-Assurance Cryptography in the Spectre Era cites RIDL: Rogue In-Flight Data Load
- High-Assurance Cryptography in the Spectre Era cites Meltdown: Reading Kernel Memory from User Space
- High-Assurance Cryptography in the Spectre Era cites A Systematic Evaluation of Transient Execution Attacks and Defenses
- 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 Meltdown: Reading Kernel Memory from User Space
- Automatically eliminating speculative leaks from cryptographic code with blade cites A Systematic Evaluation of Transient Execution Attacks and Defenses
- A Systematic Evaluation of Transient Execution Attacks and Defenses cites Spectre Attacks: Exploiting Speculative Execution
- SoK: Practical Foundations for Software Spectre Defenses cites Constant-time foundations for the new spectre era
- SoK: Practical Foundations for Software Spectre Defenses cites Spectre Attacks: Exploiting Speculative Execution
- SoK: Practical Foundations for Software Spectre Defenses cites ZombieLoad: Cross-Privilege-Boundary Data Sampling
- SoK: Practical Foundations for Software Spectre Defenses cites Hardware-Software Contracts for Secure Speculation
- SoK: Practical Foundations for Software Spectre Defenses cites Meltdown: Reading Kernel Memory from User Space
- 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 A Systematic Evaluation of Transient Execution Attacks and Defenses
Cited by top-tier papers29
- Hardware-Software Contracts for Secure SpeculationMarco Guarnieri, Boris Köpf, Jan Reineke, Pepe VilaS&P 2021 · 111 citations
- Constant-time foundations for the new spectre eraSunjay Cauligi, Craig Disselkoen, Klaus von Gleissenthall, Dean M. Tullsen et al.PLDI 2020 · 90 citations
- SoK: Practical Foundations for Software Spectre DefensesSunjay Cauligi, Craig Disselkoen, Daniel Moghimi, Gilles Barthe et al.S&P 2022 · 59 citations
- Automatically eliminating speculative leaks from cryptographic code with bladeMarco Vassena, Craig Disselkoen, Klaus von Gleissenthall, Sunjay Cauligi et al.POPL 2021 · 53 citations
- High-Assurance Cryptography in the Spectre EraGilles Barthe, Sunjay Cauligi, Benjamin Grégoire, Adrien Koutsos et al.S&P 2021 · 42 citations
Builds on13
- Spectre Attacks: Exploiting Speculative ExecutionPaul Kocher, Jann Horn, Anders Fogh, Daniel Genkin et al.S&P 2019 · 2,435 citations
- Meltdown: Reading Kernel Memory from User SpaceMoritz Lipp, Michael Schwarz, Daniel Gruss, Thomas Prescher et al.USENIX Security 2018 · 1,456 citations
- ZombieLoad: Cross-Privilege-Boundary Data SamplingMichael Schwarz, Moritz Lipp, Daniel Moghimi, Jo Van Bulck et al.CCS 2019 · 464 citations
- A Systematic Evaluation of Transient Execution Attacks and DefensesClaudio Canella, Jo Van Bulck, Michael Schwarz, Moritz Lipp et al.USENIX Security 2019 · 442 citations
- RIDL: Rogue In-Flight Data LoadStephan van Schaik, Alyssa Milburn, Sebastian Österlund, Pietro Frigo et al.S&P 2019 · 408 citations
Related papers
- ProSpeCT: Provably Secure Speculation for the Constant-Time PolicyLesly-Ann Daniel, Marton Bognar, Job Noorman, Sébastien Bardin et al.USENIX Security 2023
- The Code That Never Ran: Modeling Attacks on Speculative EvaluationCraig Disselkoen, Radha Jagadeesan, Alan Jeffrey, James RielyS&P 2019 · 24 citations
- Structural Operational Semantics for Functional and Security Verification of Pipelined ProcessorsRobert J. Colvin, Roger C. SuCAV 2025 · 2 citations
- Automatic Detection of Speculative Execution CombinationsXaver Fabian, Marco Guarnieri, Marco PatrignaniCCS 2022 · 19 citations
- Speculative interference attacks: breaking invisible speculation schemesMohammad Behnia, Prateek Sahu, Riccardo Paccagnella, Jiyong Yu et al.ASPLOS 2021 · 69 citations
