Lune

POPL2025顶会

SNIP: Speculative Execution and Non-Interference Preservation for Compiler Transformations

Sören van der Wall, Roland Meyer

摘要

We address the problem of preserving non-interference across compiler transformations under speculative semantics . We develop a proof method that ensures the preservation uniformly across all source programs. The basis of our proof method is a new form of simulation relation. It operates over directives that model the attacker’s control over the micro-architectural state, and it accounts for the fact that the compiler transformation may change the influence of the micro-architectural state on the execution (and hence the directives). Using our proof method, we show the correctness of dead code elimination. When we tried to prove register allocation correct, we identified a previously unknown weakness that introduces violations to non-interference. We have confirmed the weakness for a mainstream compiler on code from the libsodium cryptographic library. To reclaim security once more, we develop a novel static analysis that operates on a product of source program and register-allocated program. Using the analysis, we present an automated fix to existing register allocation implementations. We prove the correctness of the fixed register allocations with our proof method.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 7 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Non-interference Preserving Optimising Compilation 引用了 Preservation of Speculative Constant-Time by Compilation
  • Spectector: Principled Detection of Speculative Information Flows 引用了 Spectre Attacks: Exploiting Speculative Execution
  • Smooth, Integrated Proofs of Cryptographic Constant Time for Nondeterministic Programs and Compilers 引用了 Spectre Attacks: Exploiting Speculative Execution
  • Smooth, Integrated Proofs of Cryptographic Constant Time for Nondeterministic Programs and Compilers 引用了 Preservation of Speculative Constant-Time by Compilation
  • Decompiling for Constant-Time Analysis 引用了 Spectre Attacks: Exploiting Speculative Execution
  • Decompiling for Constant-Time Analysis 引用了 Spectector: Principled Detection of Speculative Information Flows
  • Decompiling for Constant-Time Analysis 引用了 SoK: Computer-Aided Cryptography
  • Decompiling for Constant-Time Analysis 引用了 Hardware-Software Contracts for Secure Speculation
  • Decompiling for Constant-Time Analysis 引用了 Preservation of Speculative Constant-Time by Compilation
  • SoK: Computer-Aided Cryptography 引用了 Spectre Attacks: Exploiting Speculative Execution
  • SoK: Computer-Aided Cryptography 引用了 Meltdown: Reading Kernel Memory from User Space
  • KEM-IND-CCA-Preserving Compilation of Jasmin's ML-KEM 引用了 Smooth, Integrated Proofs of Cryptographic Constant Time for Nondeterministic Programs and Compilers
  • KEM-IND-CCA-Preserving Compilation of Jasmin's ML-KEM 引用了 SoK: Computer-Aided Cryptography
  • KEM-IND-CCA-Preserving Compilation of Jasmin's ML-KEM 引用了 Hardware-Software Contracts for Secure Speculation
  • KEM-IND-CCA-Preserving Compilation of Jasmin's ML-KEM 引用了 Preservation of Speculative Constant-Time by Compilation
  • 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 引用了 Meltdown: Reading Kernel Memory from User Space
  • Meltdown: Reading Kernel Memory from User Space 引用了 Spectre Attacks: Exploiting Speculative Execution
  • Preservation of Speculative Constant-Time by Compilation 引用了 Spectre Attacks: Exploiting Speculative Execution
  • Preservation of Speculative Constant-Time by Compilation 引用了 Spectector: Principled Detection of Speculative Information Flows
  • Preservation of Speculative Constant-Time by Compilation 引用了 SoK: Computer-Aided Cryptography
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper7

  1. Preservation of Speculative Constant-Time by CompilationSantiago Arranz-Olmos, Gilles Barthe, Lionel Blatter, Benjamin Grégoire 等POPL 2025 · 8 次引用
  2. Non-interference Preserving Optimising CompilationJulian Rosemann, Sebastian Hack, Deepak GargOOPSLA 2025 · 1 次引用
  3. Smooth, Integrated Proofs of Cryptographic Constant Time for Nondeterministic Programs and CompilersOwen Conoly, Andres Erbsen, Adam ChlipalaPLDI 2025 · 1 次引用
  4. Decompiling for Constant-Time AnalysisSantiago Arranz-Olmos, Gilles Barthe, Lionel Blatter, Youcef Bouzid 等OOPSLA 2026 · 1 次引用
  5. KEM-IND-CCA-Preserving Compilation of Jasmin's ML-KEMSantiago Arranz-Olmos, Gilles Barthe, Lionel Blatter, Benjamin Gregoire 等CCS 2026 · 1 次引用

它引用的 Paper19

  1. Spectre Attacks: Exploiting Speculative ExecutionPaul Kocher, Jann Horn, Anders Fogh, Daniel Genkin 等S&P 2019 · 2,435 次引用
  2. Meltdown: Reading Kernel Memory from User SpaceMoritz Lipp, Michael Schwarz, Daniel Gruss, Thomas Prescher 等USENIX Security 2018 · 1,456 次引用
  3. Spectector: Principled Detection of Speculative Information FlowsMarco Guarnieri, Boris Köpf, José F. Morales, Jan Reineke 等S&P 2020 · 177 次引用
  4. SoK: Computer-Aided CryptographyManuel Barbosa, Gilles Barthe, Karthik Bhargavan, Bruno Blanchet 等S&P 2021 · 169 次引用
  5. Hardware-Software Contracts for Secure SpeculationMarco Guarnieri, Boris Köpf, Jan Reineke, Pepe VilaS&P 2021 · 111 次引用

相关 Paper

  1. Compiling with Abstract InterpretationDorian Lesbre, Matthieu LemerrePLDI 2024 · 6 次引用
  2. SpecSafe: detecting cache side channels in a speculative worldRobert Brotzman, Danfeng Zhang, Mahmut Taylan Kandemir, Gang TanOOPSLA 2021 · 3 次引用
  3. Automatically eliminating speculative leaks from cryptographic code with bladeMarco Vassena, Craig Disselkoen, Klaus von Gleissenthall, Sunjay Cauligi 等POPL 2021 · 53 次引用
  4. ProSpeCT: Provably Secure Speculation for the Constant-Time PolicyLesly-Ann Daniel, Marton Bognar, Job Noorman, Sébastien Bardin 等USENIX Security 2023
  5. Hunting the Haunter - Efficient Relational Symbolic Execution for Spectre with Haunted RelSELesly-Ann Daniel, Sébastien Bardin, Tamara RezkNDSS 2021
黄昏的海面,两侧是细线勾勒的悬崖