Automatic Detection of Speculative Execution Combinations
Abstract
Modern processors employ different prediction mechanisms to speculate over different kinds of instructions. Attackers can exploit these prediction mechanisms simultaneously in order to trigger leaks about speculatively-accessed data. Thus, sound reasoning about such speculative leaks requires accounting for all potential mechanisms of speculation. Unfortunately, existing formal models only support reasoning about fixed, hard-coded mechanisms of speculation, with no simple support to extend said reasoning to new mechanisms. In this paper we develop a framework for reasoning about composed speculative semantics that capture speculation due to different mechanisms and implement it as part of the Spectector verification tool. We implement novel semantics for speculating over store and return instructions and combine them with the semantics for speculating over branches. Our framework yields speculative semantics for speculating over any combination of those instructions that are secure by construction, i.e., we obtain these security guarantees for free. The implementation of our novel semantics in Spectector let us verify existing codebases that are vulnerable to Spectre v1, Spectre v4, and Spectre v5 vulnerabilities as well as new snippets that are only vulnerable to their compositions. B+S+R ) and proving their security (Section 5).
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.
11 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
- Lifting Micro-Update Models from RTL for Formal Security Analysis cites Spectre Attacks: Exploiting Speculative Execution
- Lifting Micro-Update Models from RTL for Formal Security Analysis cites Spectector: Principled Detection of Speculative Information Flows
- Lifting Micro-Update Models from RTL for Formal Security Analysis cites ret2spec: Speculative Execution Using Return Stack Buffers
- Lifting Micro-Update Models from RTL for Formal Security Analysis cites Specification and Verification of Side-channel Security for Open-source Processors via Leakage Contracts
- 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
- SMoTherSpectre: Exploiting Speculative Execution through Port Contention cites Spectre Attacks: Exploiting Speculative Execution
- SMoTherSpectre: Exploiting Speculative Execution through Port Contention cites ret2spec: Speculative Execution Using Return Stack Buffers
- Whisper: Timing the Transient Execution to Leak Secrets and Break KASLR cites Spectre Attacks: Exploiting Speculative Execution
- Whisper: Timing the Transient Execution to Leak Secrets and Break KASLR cites SMoTherSpectre: Exploiting Speculative Execution through Port Contention
- Whisper: Timing the Transient Execution to Leak Secrets and Break KASLR cites ret2spec: Speculative Execution Using Return Stack Buffers
- ret2spec: Speculative Execution Using Return Stack Buffers cites Spectre Attacks: Exploiting Speculative Execution
- Specification and Verification of Side-channel Security for Open-source Processors via Leakage Contracts cites Spectre Attacks: Exploiting Speculative Execution
- Specification and Verification of Side-channel Security for Open-source Processors via Leakage Contracts cites Spectector: Principled Detection of Speculative Information Flows
- Testing Side-channel Security of Cryptographic Implementations against Future Microarchitectures cites Spectre Attacks: Exploiting Speculative Execution
- Testing Side-channel Security of Cryptographic Implementations against Future Microarchitectures cites Spectector: Principled Detection of Speculative Information Flows
- Testing Side-channel Security of Cryptographic Implementations against Future Microarchitectures cites Jasmin: High-Assurance and High-Speed Cryptography
- Serberus: Protecting Cryptographic Code from Spectres at Compile-Time cites Spectre Attacks: Exploiting Speculative Execution
- Serberus: Protecting Cryptographic Code from Spectres at Compile-Time cites Spectector: Principled Detection of Speculative Information Flows
- Serberus: Protecting Cryptographic Code from Spectres at Compile-Time cites Jasmin: High-Assurance and High-Speed Cryptography
Cited by top-tier papers11
- Specification and Verification of Side-channel Security for Open-source Processors via Leakage ContractsZilong Wang, Gideon Mohr, Klaus von Gleissenthall, Jan Reineke et al.CCS 2023 · 20 citations
- Serberus: Protecting Cryptographic Code from Spectres at Compile-TimeNicholas Mosier, Hamed Nemati, John C. Mitchell, Caroline TrippelS&P 2024 · 16 citations
- Testing Side-channel Security of Cryptographic Implementations against Future MicroarchitecturesGilles Barthe, Marcel Böhme, Sunjay Cauligi, Chitchanok Chuengsatiansup et al.CCS 2024 · 6 citations
- Lifting Micro-Update Models from RTL for Formal Security AnalysisAdwait Godbole, Kevin Cheang, Yatin A. Manerkar, Sanjit A. SeshiaASPLOS 2024 · 3 citations
- Whisper: Timing the Transient Execution to Leak Secrets and Break KASLRYu Jin, Chunlu Wang, Pengfei Qiu, Chang Liu et al.DAC 2024 · 1 citation
Builds on18
- Spectre Attacks: Exploiting Speculative ExecutionPaul Kocher, Jann Horn, Anders Fogh, Daniel Genkin et al.S&P 2019 · 2,435 citations
- ret2spec: Speculative Execution Using Return Stack BuffersGiorgi Maisuradze, Christian RossowCCS 2018 · 282 citations
- SMoTherSpectre: Exploiting Speculative Execution through Port ContentionAtri Bhattacharyya, Alexandra Sandulescu, Matthias Neugschwandtner, Alessandro Sorniotti et al.CCS 2019 · 267 citations
- Spectector: Principled Detection of Speculative Information FlowsMarco Guarnieri, Boris Köpf, José F. Morales, Jan Reineke et al.S&P 2020 · 177 citations
- Jasmin: High-Assurance and High-Speed CryptographyJosé Bacelar Almeida, Manuel Barbosa, Gilles Barthe, Arthur Blot et al.CCS 2017 · 157 citations
Related papers
- SoK: Practical Foundations for Software Spectre DefensesSunjay Cauligi, Craig Disselkoen, Daniel Moghimi, Gilles Barthe et al.S&P 2022 · 59 citations
- Exorcising Spectres with Secure CompilersMarco Patrignani, Marco GuarnieriCCS 2021 · 5 citations
- InSpectre: Breaking and Fixing Microarchitectural Vulnerabilities by Formal AnalysisRoberto Guanciale, Musard Balliu, Mads DamCCS 2020 · 51 citations
- ProSpeCT: Provably Secure Speculation for the Constant-Time PolicyLesly-Ann Daniel, Marton Bognar, Job Noorman, Sébastien Bardin et al.USENIX Security 2023
- Structural Operational Semantics for Functional and Security Verification of Pipelined ProcessorsRobert J. Colvin, Roger C. SuCAV 2025 · 2 citations
