High-Assurance Cryptography in the Spectre Era
Gilles Barthe, Sunjay Cauligi, Benjamin Grégoire, Adrien Koutsos, Kevin Liao, Tiago Oliveira, Swarn Priya, Tamara Rezk, Peter Schwabe
摘要
High-assurance cryptography leverages methods from program verification and cryptography engineering to deliver efficient cryptographic software with machine-checked proofs of memory safety, functional correctness, provable security, and absence of timing leaks. Traditionally, these guarantees are established under a sequential execution semantics. However, this semantics is not aligned with the behavior of modern processors that make use of speculative execution to improve performance. This mismatch, combined with the high-profile Spectre-style attacks that exploit speculative execution, naturally casts doubts on the robustness of high-assurance cryptography guarantees. In this paper, we dispel these doubts by showing that the benefits of high-assurance cryptography extend to speculative execution, costing only a modest performance overhead. We build atop the Jasmin verification framework an end-to-end approach for proving properties of cryptographic software under speculative execution, and validate our approach experimentally with efficient, functionally correct assembly implementations of ChaCha20 and Poly1305, which are secure against both traditional timing and speculative execution attacks.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 20 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Automatic Detection of Speculative Execution Combinations 引用了 Spectre Attacks: Exploiting Speculative Execution
- Automatic Detection of Speculative Execution Combinations 引用了 SoK: Practical Foundations for Software Spectre Defenses
- ZombieLoad: Cross-Privilege-Boundary Data Sampling 引用了 Spectre Attacks: Exploiting Speculative Execution
- ZombieLoad: Cross-Privilege-Boundary Data Sampling 引用了 A Systematic Evaluation of Transient Execution Attacks and Defenses
- Meltdown: Reading Kernel Memory from User Space 引用了 Spectre Attacks: Exploiting Speculative Execution
- A Systematic Evaluation of Transient Execution Attacks and Defenses 引用了 Spectre Attacks: Exploiting Speculative Execution
- Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order Execution 引用了 Spectre Attacks: Exploiting Speculative Execution
- Serberus: Protecting Cryptographic Code from Spectres at Compile-Time 引用了 Automatic Detection of Speculative Execution Combinations
- Serberus: Protecting Cryptographic Code from Spectres at Compile-Time 引用了 Spectre Attacks: Exploiting Speculative Execution
- Serberus: Protecting Cryptographic Code from Spectres at Compile-Time 引用了 ZombieLoad: Cross-Privilege-Boundary Data Sampling
- Serberus: Protecting Cryptographic Code from Spectres at Compile-Time 引用了 A Systematic Evaluation of Transient Execution Attacks and Defenses
- Serberus: Protecting Cryptographic Code from Spectres at Compile-Time 引用了 Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order Execution
- Serberus: Protecting Cryptographic Code from Spectres at Compile-Time 引用了 SoK: Practical Foundations for Software Spectre Defenses
- Serberus: Protecting Cryptographic Code from Spectres at Compile-Time 引用了 Axiomatic hardware-software contracts for security
- SoK: Practical Foundations for Software Spectre Defenses 引用了 Spectre Attacks: Exploiting Speculative Execution
- SoK: Practical Foundations for Software Spectre Defenses 引用了 ZombieLoad: Cross-Privilege-Boundary Data Sampling
- SoK: Practical Foundations for Software Spectre Defenses 引用了 Meltdown: Reading Kernel Memory from User Space
- SoK: Practical Foundations for Software Spectre Defenses 引用了 A Systematic Evaluation of Transient Execution Attacks and Defenses
- SoK: Practical Foundations for Software Spectre Defenses 引用了 Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order Execution
- Preservation of Speculative Constant-Time by Compilation 引用了 Spectre Attacks: Exploiting Speculative Execution
- Preservation of Speculative Constant-Time by Compilation 引用了 SoK: Practical Foundations for Software Spectre Defenses
- Axiomatic hardware-software contracts for security 引用了 Spectre Attacks: Exploiting Speculative Execution
- Axiomatic hardware-software contracts for security 引用了 ZombieLoad: Cross-Privilege-Boundary Data Sampling
引用它的顶会 Paper20
- SoK: Practical Foundations for Software Spectre DefensesSunjay Cauligi, Craig Disselkoen, Daniel Moghimi, Gilles Barthe 等S&P 2022 · 59 次引用
- Axiomatic hardware-software contracts for securityNicholas Mosier, Hanna Lachnitt, Hamed Nemati, Caroline TrippelISCA 2022 · 26 次引用
- Automatic Detection of Speculative Execution CombinationsXaver Fabian, Marco Guarnieri, Marco PatrignaniCCS 2022 · 19 次引用
- Serberus: Protecting Cryptographic Code from Spectres at Compile-TimeNicholas Mosier, Hamed Nemati, John C. Mitchell, Caroline TrippelS&P 2024 · 16 次引用
- Preservation of Speculative Constant-Time by CompilationSantiago Arranz-Olmos, Gilles Barthe, Lionel Blatter, Benjamin Grégoire 等POPL 2025 · 8 次引用
它引用的 Paper29
- Spectre Attacks: Exploiting Speculative ExecutionPaul Kocher, Jann Horn, Anders Fogh, Daniel Genkin 等S&P 2019 · 2,435 次引用
- Meltdown: Reading Kernel Memory from User SpaceMoritz Lipp, Michael Schwarz, Daniel Gruss, Thomas Prescher 等USENIX Security 2018 · 1,456 次引用
- Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order ExecutionJo Van Bulck, Marina Minkin, Ofir Weisse, Daniel Genkin 等USENIX Security 2018 · 1,175 次引用
- ZombieLoad: Cross-Privilege-Boundary Data SamplingMichael Schwarz, Moritz Lipp, Daniel Moghimi, Jo Van Bulck 等CCS 2019 · 464 次引用
- A Systematic Evaluation of Transient Execution Attacks and DefensesClaudio Canella, Jo Van Bulck, Michael Schwarz, Moritz Lipp 等USENIX Security 2019 · 442 次引用
相关 Paper
- Typing High-Speed Cryptography against Spectre v1Basavesh Ammanaghatta Shivakumar, Gilles Barthe, Benjamin Grégoire, Vincent Laporte 等S&P 2023
- The Last Mile: High-Assurance and High-Speed Cryptographic ImplementationsJosé Bacelar Almeida, Manuel Barbosa, Gilles Barthe, Benjamin Grégoire 等S&P 2020 · 67 次引用
- Protecting Cryptographic Code Against Spectre-RSB: (and, in Fact, All Known Spectre Variants)Santiago Arranz-Olmos, Gilles Barthe, Chitchanok Chuengsatiansup, Benjamin Grégoire 等ASPLOS 2025 · 1 次引用
- Jasmin: High-Assurance and High-Speed CryptographyJosé Bacelar Almeida, Manuel Barbosa, Gilles Barthe, Arthur Blot 等CCS 2017 · 157 次引用
- Constant-time foundations for the new spectre eraSunjay Cauligi, Craig Disselkoen, Klaus von Gleissenthall, Dean M. Tullsen 等PLDI 2020 · 90 次引用
