Lune

USENIX Security2023顶会

Ultimate SLH: Taking Speculative Load Hardening to the Next Level

Zhiyuan Zhang, Gilles Barthe, Chitchanok Chuengsatiansup, Peter Schwabe, Yuval Yarom

摘要

In this paper we revisit the Spectre v1 vulnerability and software-only countermeasures. Specifically, we systematically investigate the performance penalty and security properties of multiple variants of speculative load hardening (SLH). As part of this investigation we implement the "strong SLH" variant by Patrignani and Guarnieri (CCS 2021) as a compiler extension to LLVM. We show that none of the existing variants, including strong SLH, is able to protect against all Spectre v1 attacks in practice. We do this by demonstrating, for the first time, that variable-time arithmetic instructions leak secret information even if they are executed only speculatively. We extend strong SLH to include protections also against this kind of leakage, implement the resulting full protection in LLVM, and use the SPEC2017 benchmarks to compare its performance to the existing variants of SLH and to code that uses fencing instructions to completely prevent speculative execution. We show that our proposed countermeasure offers full protection against Spectre v1 attacks at much better performance than code using fences. In fact, for several benchmarks our approach is more than twice as fast.

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • SNIP: Speculative Execution and Non-Interference Preservation for Compiler Transformations 引用了 Spectre Attacks: Exploiting Speculative Execution
  • SNIP: Speculative Execution and Non-Interference Preservation for Compiler Transformations 引用了 Meltdown: Reading Kernel Memory from User Space
  • SNIP: Speculative Execution and Non-Interference Preservation for Compiler Transformations 引用了 Preservation of Speculative Constant-Time by Compilation
  • Preservation of Speculative Constant-Time by Compilation 引用了 SNIP: Speculative Execution and Non-Interference Preservation for Compiler Transformations
  • ZombieLoad: Cross-Privilege-Boundary Data Sampling 引用了 Spectre Attacks: Exploiting Speculative Execution
  • RIDL: Rogue In-Flight Data Load 引用了 Spectre Attacks: Exploiting Speculative Execution
  • RIDL: Rogue In-Flight Data Load 引用了 Meltdown: Reading Kernel Memory from User Space
  • RIDL: Rogue In-Flight Data Load 引用了 Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order Execution
  • Leaky Address Masking: Exploiting Unmasked Spectre Gadgets with Noncanonical Address Translation 引用了 Spectre Attacks: Exploiting Speculative Execution
  • Leaky Address Masking: Exploiting Unmasked Spectre Gadgets with Noncanonical Address Translation 引用了 ZombieLoad: Cross-Privilege-Boundary Data Sampling
  • Leaky Address Masking: Exploiting Unmasked Spectre Gadgets with Noncanonical Address Translation 引用了 RIDL: Rogue In-Flight Data Load
  • Leaky Address Masking: Exploiting Unmasked Spectre Gadgets with Noncanonical Address Translation 引用了 Meltdown: Reading Kernel Memory from User Space
  • Leaky Address Masking: Exploiting Unmasked Spectre Gadgets with Noncanonical Address Translation 引用了 Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order Execution
  • Meltdown: Reading Kernel Memory from User Space 引用了 Spectre Attacks: Exploiting Speculative Execution
  • RTL2MμPATH: Multi-μPATH Synthesis with Applications to Hardware Security Verification 引用了 Spectre Attacks: Exploiting Speculative Execution
  • RTL2MμPATH: Multi-μPATH Synthesis with Applications to Hardware Security Verification 引用了 Serberus: Protecting Cryptographic Code from Spectres at Compile-Time
  • 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 引用了 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 引用了 RIDL: Rogue In-Flight Data Load
  • Serberus: Protecting Cryptographic Code from Spectres at Compile-Time 引用了 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
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper18

  1. Serberus: Protecting Cryptographic Code from Spectres at Compile-TimeNicholas Mosier, Hamed Nemati, John C. Mitchell, Caroline TrippelS&P 2024 · 16 次引用
  2. Leaky Address Masking: Exploiting Unmasked Spectre Gadgets with Noncanonical Address TranslationMathé Hertogh, Sander Wiebing, Cristiano GiuffridaS&P 2024 · 15 次引用
  3. RTL2MμPATH: Multi-μPATH Synthesis with Applications to Hardware Security VerificationYao Hsiao, Nikos Nikoleris, Artem Khyzha, Dominic P. Mulligan 等MICRO 2024 · 12 次引用
  4. Preservation of Speculative Constant-Time by CompilationSantiago Arranz-Olmos, Gilles Barthe, Lionel Blatter, Benjamin Grégoire 等POPL 2025 · 8 次引用
  5. SNIP: Speculative Execution and Non-Interference Preservation for Compiler TransformationsSören van der Wall, Roland MeyerPOPL 2025 · 7 次引用

它引用的 Paper50

  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. 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 次引用
  4. ZombieLoad: Cross-Privilege-Boundary Data SamplingMichael Schwarz, Moritz Lipp, Daniel Moghimi, Jo Van Bulck 等CCS 2019 · 464 次引用
  5. RIDL: Rogue In-Flight Data LoadStephan van Schaik, Alyssa Milburn, Sebastian Österlund, Pietro Frigo 等S&P 2019 · 408 次引用

相关 Paper

  1. dfence: Fine-Grained Speculation Barriers for Efficient and Effective Hardware-Software Protection in the Spectre EraDavide Davoli, Marton Bognar, Lesly-Ann Daniel, Benjamin Gregoire 等CCS 2026 · 1 次引用
  2. Exorcising Spectres with Secure CompilersMarco Patrignani, Marco GuarnieriCCS 2021 · 5 次引用
  3. An Analysis of Speculative Type Confusion Vulnerabilities in the WildOfek Kirzner, Adam MorrisonUSENIX Security 2021 · 40 次引用
  4. Place Protections at the Right Place: Targeted Hardening for Cryptographic Code against Spectre v1Yiming Zhu, Wenchao Huang, Yan XiongUSENIX Security 2025
  5. Spectre Declassified: Reading from the Right Place at the Wrong TimeBasavesh Ammanaghatta Shivakumar, Jack Barnes, Gilles Barthe, Sunjay Cauligi 等S&P 2023
黄昏的海面,两侧是细线勾勒的悬崖