Speculative interference attacks: breaking invisible speculation schemes
Mohammad Behnia, Prateek Sahu, Riccardo Paccagnella, Jiyong Yu, Zirui Neil Zhao, Xiang Zou, Thomas Unterluggauer, Josep Torrellas, Carlos V. Rozas, Adam Morrison, Frank McKeen, Fangfei Liu
摘要
Recent security vulnerabilities that target speculative execution (e.g., Spectre) present a significant challenge for processor design. These highly publicized vulnerabilities use speculative execution to learn victim secrets by changing the cache state. As a result, recent computer architecture research has focused on invisible speculation mechanisms that attempt to block changes in cache state due to speculative execution. Prior work has shown significant success in preventing Spectre and other attacks at modest performance costs. In this paper, we introduce speculative interference attacks, which show that prior invisible speculation mechanisms do not fully block speculation-based attacks that use cache state. We make two key observations. First, mis-speculated younger instructions can change the timing of older, bound-to-retire instructions, including memory operations. Second, changing the timing of a memory operation can change the order of that memory operation relative to other memory operations, resulting in persistent changes to the cache state. Using both of these observations, we demonstrate (among other attack variants) that secret information accessed by mis-speculated instructions can change the order of bound-to-retire loads. Load timing changes can therefore leave secret-dependent changes in the cache, even in the presence of invisible speculation mechanisms. We show that this problem is not easy to fix. Speculative interference converts timing changes to persistent cache-state changes, and timing is typically ignored by many cache-based defenses. We develop a framework to understand the attack and demonstrate concrete proof-of-concept attacks against invisible speculation mechanisms. We conclude with a discussion of security definitions that are sufficient to block the attacks, along with preliminary defense ideas based on those definitions.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 30 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- PACMAN: attacking ARM pointer authentication with speculative execution 引用了 Spectre Attacks: Exploiting Speculative Execution
- PACMAN: attacking ARM pointer authentication with speculative execution 引用了 Meltdown: Reading Kernel Memory from User Space
- PACMAN: attacking ARM pointer authentication with speculative execution 引用了 Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order Execution
- Adversarial Prefetch: New Cross-Core Cache Side Channel Attacks 引用了 Spectre Attacks: Exploiting Speculative Execution
- Adversarial Prefetch: New Cross-Core Cache Side Channel Attacks 引用了 ZombieLoad: Cross-Privilege-Boundary Data Sampling
- Adversarial Prefetch: New Cross-Core Cache Side Channel Attacks 引用了 RIDL: Rogue In-Flight Data Load
- Adversarial Prefetch: New Cross-Core Cache Side Channel Attacks 引用了 Meltdown: Reading Kernel Memory from User Space
- Adversarial Prefetch: New Cross-Core Cache Side Channel Attacks 引用了 Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order Execution
- GhostMinion: A Strictness-Ordered Cache System for Spectre Mitigation 引用了 Spectre Attacks: Exploiting Speculative Execution
- GhostMinion: A Strictness-Ordered Cache System for Spectre Mitigation 引用了 Meltdown: Reading Kernel Memory from User Space
- GhostMinion: A Strictness-Ordered Cache System for Spectre Mitigation 引用了 Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order Execution
- ZombieLoad: Cross-Privilege-Boundary Data Sampling 引用了 Spectre Attacks: Exploiting Speculative Execution
- Hardware-Software Contracts for Secure Speculation 引用了 Spectre Attacks: Exploiting Speculative Execution
- Hardware-Software Contracts for Secure Speculation 引用了 ZombieLoad: Cross-Privilege-Boundary Data Sampling
- Hardware-Software Contracts for Secure Speculation 引用了 RIDL: Rogue In-Flight Data Load
- Hardware-Software Contracts for Secure Speculation 引用了 Meltdown: Reading Kernel Memory from User Space
- 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
- Meltdown: Reading Kernel Memory from User Space 引用了 Spectre Attacks: Exploiting Speculative Execution
- I See Dead µops: Leaking Secrets via Intel/AMD Micro-Op Caches 引用了 Spectre Attacks: Exploiting Speculative Execution
- I See Dead µops: Leaking Secrets via Intel/AMD Micro-Op Caches 引用了 ZombieLoad: Cross-Privilege-Boundary Data Sampling
- I See Dead µops: Leaking Secrets via Intel/AMD Micro-Op Caches 引用了 RIDL: Rogue In-Flight Data Load
- I See Dead µops: Leaking Secrets via Intel/AMD Micro-Op Caches 引用了 Meltdown: Reading Kernel Memory from User Space
- I See Dead µops: Leaking Secrets via Intel/AMD Micro-Op Caches 引用了 Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order Execution
- Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order Execution 引用了 Spectre Attacks: Exploiting Speculative Execution
引用它的顶会 Paper30
- Hardware-Software Contracts for Secure SpeculationMarco Guarnieri, Boris Köpf, Jan Reineke, Pepe VilaS&P 2021 · 111 次引用
- PACMAN: attacking ARM pointer authentication with speculative executionJoseph Ravichandran, Weon Taek Na, Jay Lang, Mengjia YanISCA 2022 · 68 次引用
- I See Dead µops: Leaking Secrets via Intel/AMD Micro-Op CachesXida Ren, Logan Moody, Mohammadkazem Taram, Matthew Jordan 等ISCA 2021 · 59 次引用
- Adversarial Prefetch: New Cross-Core Cache Side Channel AttacksYanan Guo, Andrew Zigerelli, Youtao Zhang, Jun YangS&P 2022 · 43 次引用
- GhostMinion: A Strictness-Ordered Cache System for Spectre MitigationSam AinsworthMICRO 2021 · 36 次引用
它引用的 Paper17
- 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 次引用
- RIDL: Rogue In-Flight Data LoadStephan van Schaik, Alyssa Milburn, Sebastian Österlund, Pietro Frigo 等S&P 2019 · 408 次引用
相关 Paper
- Conditional address propagation: an efficient defense mechanism against transient execution attacksPeinan Li, Rui Hou, Lutan Zhao, Yifan Zhu 等DAC 2022 · 1 次引用
- Phantom: Exploiting Decoder-detectable MispredictionsJohannes Wikner, Daniël Trujillo, Kaveh RazaviMICRO 2023 · 19 次引用
- ConTExT: A Generic Approach for Mitigating SpectreMichael Schwarz, Moritz Lipp, Claudio Canella, Robert Schilling 等NDSS 2020
- ProSpeCT: Provably Secure Speculation for the Constant-Time PolicyLesly-Ann Daniel, Marton Bognar, Job Noorman, Sébastien Bardin 等USENIX Security 2023
- unXpec: Breaking Undo-based Safe SpeculationMengming Li, Chenlu Miao, Yilong Yang, Kai BuHPCA 2022 · 9 次引用
