Declassiflow: A Static Analysis for Modeling Non-Speculative Knowledge to Relax Speculative Execution Security Measures
Rutvik Choudhary, Alan Wang, Zirui Neil Zhao, Adam Morrison, Christopher W. Fletcher
摘要
Speculative execution attacks undermine the security of constanttime programming, the standard technique used to prevent microarchitectural side channels in security-sensitive software such as cryptographic code. Constant-time code must therefore also deploy a defense against speculative execution attacks to prevent leakage of secret data stored in memory or the processor registers. Unfortunately, contemporary defenses, such as speculative load hardening (SLH), can only satisfy this strong security guarantee at a very high performance cost. This paper proposes Declassiflow, a static program analysis and protection framework to efficiently protect constant-time code from speculative leakage. Declassiflow models "attacker knowledge"-data which is inherently transmitted (or, implicitly declassified) by the code's non-speculative execution-and statically removes protection on such data from points in the program where it is already guaranteed to leak non-speculatively. Overall, Declassiflow ensures that data which never leaks during the nonspeculative execution does not leak during speculative execution, but with lower overhead than conservative protections like SLH.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 3 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Place Protections at the Right Place: Targeted Hardening for Cryptographic Code against Spectre v1 引用了 Spectre Attacks: Exploiting Speculative Execution
- Place Protections at the Right Place: Targeted Hardening for Cryptographic Code against Spectre v1 引用了 Spectector: Principled Detection of Speculative Information Flows
- Place Protections at the Right Place: Targeted Hardening for Cryptographic Code against Spectre v1 引用了 ret2spec: Speculative Execution Using Return Stack Buffers
- 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
- ret2spec: Speculative Execution Using Return Stack Buffers 引用了 Spectre Attacks: Exploiting Speculative Execution
- Hardware-Software Contracts for Secure Speculation 引用了 Spectre Attacks: Exploiting Speculative Execution
- Hardware-Software Contracts for Secure Speculation 引用了 Spectector: Principled Detection of Speculative Information Flows
- Hardware-Software Contracts for Secure Speculation 引用了 SMoTherSpectre: Exploiting Speculative Execution through Port Contention
- Hardware-Software Contracts for Secure Speculation 引用了 ret2spec: Speculative Execution Using Return Stack Buffers
- Securing Cryptographic Software via Typed Assembly Language 引用了 Spectre Attacks: Exploiting Speculative Execution
- Securing Cryptographic Software via Typed Assembly Language 引用了 Spectector: Principled Detection of Speculative Information Flows
- Securing Cryptographic Software via Typed Assembly Language 引用了 ret2spec: Speculative Execution Using Return Stack Buffers
- Securing Cryptographic Software via Typed Assembly Language 引用了 Hardware-Software Contracts for Secure Speculation
- Cassandra: Efficient Enforcement of Sequential Execution for Cryptographic Programs 引用了 Spectre Attacks: Exploiting Speculative Execution
- Cassandra: Efficient Enforcement of Sequential Execution for Cryptographic Programs 引用了 Spectector: Principled Detection of Speculative Information Flows
- Cassandra: Efficient Enforcement of Sequential Execution for Cryptographic Programs 引用了 Hardware-Software Contracts for Secure Speculation
引用它的顶会 Paper3
- Cassandra: Efficient Enforcement of Sequential Execution for Cryptographic ProgramsAli Hajiabadi, Trevor E. CarlsonISCA 2025 · 2 次引用
- Place Protections at the Right Place: Targeted Hardening for Cryptographic Code against Spectre v1Yiming Zhu, Wenchao Huang, Yan XiongUSENIX Security 2025
- Securing Cryptographic Software via Typed Assembly LanguageShixin Song, Tingzhen Dong, Kosi Nwabueze, Julian Zanders 等CCS 2025
它引用的 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 次引用
- Hardware-Software Contracts for Secure SpeculationMarco Guarnieri, Boris Köpf, Jan Reineke, Pepe VilaS&P 2021 · 111 次引用
相关 Paper
- Spectre Declassified: Reading from the Right Place at the Wrong TimeBasavesh Ammanaghatta Shivakumar, Jack Barnes, Gilles Barthe, Sunjay Cauligi 等S&P 2023
- Constantine: Automatic Side-Channel Resistance Using Efficient Control and Data Flow LinearizationPietro Borrello, Daniele Cono D'Elia, Leonardo Querzoni, Cristiano GiuffridaCCS 2021 · 43 次引用
- Decompiling for Constant-Time AnalysisSantiago Arranz-Olmos, Gilles Barthe, Lionel Blatter, Youcef Bouzid 等OOPSLA 2026 · 1 次引用
- Constant-time foundations for the new spectre eraSunjay Cauligi, Craig Disselkoen, Klaus von Gleissenthall, Dean M. Tullsen 等PLDI 2020 · 90 次引用
- Speculative Privacy Tracking (SPT): Leaking Information From Speculative Execution Without Compromising PrivacyRutvik Choudhary, Jiyong Yu, Christopher W. Fletcher, Adam MorrisonMICRO 2021 · 33 次引用
