Automatic Detection of Speculative Execution Combinations
摘要
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).
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 11 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Lifting Micro-Update Models from RTL for Formal Security Analysis 引用了 Spectre Attacks: Exploiting Speculative Execution
- Lifting Micro-Update Models from RTL for Formal Security Analysis 引用了 Spectector: Principled Detection of Speculative Information Flows
- Lifting Micro-Update Models from RTL for Formal Security Analysis 引用了 ret2spec: Speculative Execution Using Return Stack Buffers
- Lifting Micro-Update Models from RTL for Formal Security Analysis 引用了 Specification and Verification of Side-channel Security for Open-source Processors via Leakage Contracts
- Spectector: Principled Detection of Speculative Information Flows 引用了 Spectre Attacks: Exploiting Speculative Execution
- Spectector: Principled Detection of Speculative Information Flows 引用了 ret2spec: Speculative Execution Using Return Stack Buffers
- SMoTherSpectre: Exploiting Speculative Execution through Port Contention 引用了 Spectre Attacks: Exploiting Speculative Execution
- SMoTherSpectre: Exploiting Speculative Execution through Port Contention 引用了 ret2spec: Speculative Execution Using Return Stack Buffers
- Whisper: Timing the Transient Execution to Leak Secrets and Break KASLR 引用了 Spectre Attacks: Exploiting Speculative Execution
- Whisper: Timing the Transient Execution to Leak Secrets and Break KASLR 引用了 SMoTherSpectre: Exploiting Speculative Execution through Port Contention
- Whisper: Timing the Transient Execution to Leak Secrets and Break KASLR 引用了 ret2spec: Speculative Execution Using Return Stack Buffers
- ret2spec: Speculative Execution Using Return Stack Buffers 引用了 Spectre Attacks: Exploiting Speculative Execution
- Specification and Verification of Side-channel Security for Open-source Processors via Leakage Contracts 引用了 Spectre Attacks: Exploiting Speculative Execution
- Specification and Verification of Side-channel Security for Open-source Processors via Leakage Contracts 引用了 Spectector: Principled Detection of Speculative Information Flows
- Testing Side-channel Security of Cryptographic Implementations against Future Microarchitectures 引用了 Spectre Attacks: Exploiting Speculative Execution
- Testing Side-channel Security of Cryptographic Implementations against Future Microarchitectures 引用了 Spectector: Principled Detection of Speculative Information Flows
- Testing Side-channel Security of Cryptographic Implementations against Future Microarchitectures 引用了 Jasmin: High-Assurance and High-Speed Cryptography
- Serberus: Protecting Cryptographic Code from Spectres at Compile-Time 引用了 Spectre Attacks: Exploiting Speculative Execution
- Serberus: Protecting Cryptographic Code from Spectres at Compile-Time 引用了 Spectector: Principled Detection of Speculative Information Flows
- Serberus: Protecting Cryptographic Code from Spectres at Compile-Time 引用了 Jasmin: High-Assurance and High-Speed Cryptography
引用它的顶会 Paper11
- Specification and Verification of Side-channel Security for Open-source Processors via Leakage ContractsZilong Wang, Gideon Mohr, Klaus von Gleissenthall, Jan Reineke 等CCS 2023 · 20 次引用
- Serberus: Protecting Cryptographic Code from Spectres at Compile-TimeNicholas Mosier, Hamed Nemati, John C. Mitchell, Caroline TrippelS&P 2024 · 16 次引用
- Testing Side-channel Security of Cryptographic Implementations against Future MicroarchitecturesGilles Barthe, Marcel Böhme, Sunjay Cauligi, Chitchanok Chuengsatiansup 等CCS 2024 · 6 次引用
- Lifting Micro-Update Models from RTL for Formal Security AnalysisAdwait Godbole, Kevin Cheang, Yatin A. Manerkar, Sanjit A. SeshiaASPLOS 2024 · 3 次引用
- Whisper: Timing the Transient Execution to Leak Secrets and Break KASLRYu Jin, Chunlu Wang, Pengfei Qiu, Chang Liu 等DAC 2024 · 1 次引用
它引用的 Paper18
- Spectre Attacks: Exploiting Speculative ExecutionPaul Kocher, Jann Horn, Anders Fogh, Daniel Genkin 等S&P 2019 · 2,435 次引用
- ret2spec: Speculative Execution Using Return Stack BuffersGiorgi Maisuradze, Christian RossowCCS 2018 · 282 次引用
- SMoTherSpectre: Exploiting Speculative Execution through Port ContentionAtri Bhattacharyya, Alexandra Sandulescu, Matthias Neugschwandtner, Alessandro Sorniotti 等CCS 2019 · 267 次引用
- Spectector: Principled Detection of Speculative Information FlowsMarco Guarnieri, Boris Köpf, José F. Morales, Jan Reineke 等S&P 2020 · 177 次引用
- Jasmin: High-Assurance and High-Speed CryptographyJosé Bacelar Almeida, Manuel Barbosa, Gilles Barthe, Arthur Blot 等CCS 2017 · 157 次引用
相关 Paper
- SoK: Practical Foundations for Software Spectre DefensesSunjay Cauligi, Craig Disselkoen, Daniel Moghimi, Gilles Barthe 等S&P 2022 · 59 次引用
- Exorcising Spectres with Secure CompilersMarco Patrignani, Marco GuarnieriCCS 2021 · 5 次引用
- InSpectre: Breaking and Fixing Microarchitectural Vulnerabilities by Formal AnalysisRoberto Guanciale, Musard Balliu, Mads DamCCS 2020 · 51 次引用
- ProSpeCT: Provably Secure Speculation for the Constant-Time PolicyLesly-Ann Daniel, Marton Bognar, Job Noorman, Sébastien Bardin 等USENIX Security 2023
- Structural Operational Semantics for Functional and Security Verification of Pipelined ProcessorsRobert J. Colvin, Roger C. SuCAV 2025 · 2 次引用
