Lune

S&P2021Top-tier venue

CacheOut: Leaking Data on Intel CPUs via Cache Evictions

Stephan van Schaik, Marina Minkin, Andrew Kwong, Daniel Genkin, Yuval Yarom

Abstract

Recent transient-execution attacks, such as RIDL, Fallout, and ZombieLoad, demonstrated that attackers can leak information while it transits through microarchitectural buffers. Named Microarchitectural Data Sampling (MDS) by Intel, these attacks are likened to "drinking from the firehose", as the attacker has little control over what data is observed and from what origin. Unable to prevent the buffers from leaking, Intel issued countermeasures via microcode updates that overwrite the buffers when the CPU changes security domains.In this work we present CacheOut, a new microarchitectural attack that is capable of bypassing Intel’s buffer overwrite countermeasures. We observe that as data is being evicted from the CPU’s L1 cache, it is often transferred back to the leaky CPU buffers where it can be recovered by the attacker. CacheOut improves over previous MDS attacks by allowing the attacker to choose which data to leak from the CPU’s L1 cache, as well as which part of a cache line to leak. We demonstrate that CacheOut can leak information across multiple security boundaries, including those between processes, virtual machines, user and kernel space, and from SGX enclaves.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

58 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Rage Against the Machine Clear: A Systematic Analysis of Machine Clears and Their Implications for Transient Execution Attacks cites Spectre Attacks: Exploiting Speculative Execution
  • Rage Against the Machine Clear: A Systematic Analysis of Machine Clears and Their Implications for Transient Execution Attacks cites ZombieLoad: Cross-Privilege-Boundary Data Sampling
  • Rage Against the Machine Clear: A Systematic Analysis of Machine Clears and Their Implications for Transient Execution Attacks cites Meltdown: Reading Kernel Memory from User Space
  • Rage Against the Machine Clear: A Systematic Analysis of Machine Clears and Their Implications for Transient Execution Attacks cites Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order Execution
  • Rage Against the Machine Clear: A Systematic Analysis of Machine Clears and Their Implications for Transient Execution Attacks cites CrossTalk: Speculative Data Leaks Across Cores Are Real
  • ZombieLoad: Cross-Privilege-Boundary Data Sampling cites Spectre Attacks: Exploiting Speculative Execution
  • ZombieLoad: Cross-Privilege-Boundary Data Sampling cites A Systematic Evaluation of Transient Execution Attacks and Defenses
  • SoK: SGX.Fail: How Stuff Gets eXposed cites Spectre Attacks: Exploiting Speculative Execution
  • SoK: SGX.Fail: How Stuff Gets eXposed cites Rage Against the Machine Clear: A Systematic Analysis of Machine Clears and Their Implications for Transient Execution Attacks
  • SoK: SGX.Fail: How Stuff Gets eXposed cites ZombieLoad: Cross-Privilege-Boundary Data Sampling
  • SoK: SGX.Fail: How Stuff Gets eXposed cites Meltdown: Reading Kernel Memory from User Space
  • SoK: SGX.Fail: How Stuff Gets eXposed cites Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order Execution
  • SoK: SGX.Fail: How Stuff Gets eXposed cites CrossTalk: Speculative Data Leaks Across Cores Are Real
  • Meltdown: Reading Kernel Memory from User Space cites Spectre Attacks: Exploiting Speculative Execution
  • A Systematic Evaluation of Transient Execution Attacks and Defenses cites Spectre Attacks: Exploiting Speculative Execution
  • Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order Execution cites Spectre Attacks: Exploiting Speculative Execution
  • CrossTalk: Speculative Data Leaks Across Cores Are Real cites Spectre Attacks: Exploiting Speculative Execution
  • CrossTalk: Speculative Data Leaks Across Cores Are Real cites ZombieLoad: Cross-Privilege-Boundary Data Sampling
  • CrossTalk: Speculative Data Leaks Across Cores Are Real cites Meltdown: Reading Kernel Memory from User Space
  • CrossTalk: Speculative Data Leaks Across Cores Are Real cites A Systematic Evaluation of Transient Execution Attacks and Defenses
  • CrossTalk: Speculative Data Leaks Across Cores Are Real cites Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order Execution
  • DOLMA: Securing Speculation with the Principle of Transient Non-Observability cites Spectre Attacks: Exploiting Speculative Execution
  • DOLMA: Securing Speculation with the Principle of Transient Non-Observability cites ZombieLoad: Cross-Privilege-Boundary Data Sampling
  • DOLMA: Securing Speculation with the Principle of Transient Non-Observability cites Meltdown: Reading Kernel Memory from User Space
  • DOLMA: Securing Speculation with the Principle of Transient Non-Observability cites A Systematic Evaluation of Transient Execution Attacks and Defenses
  • DOLMA: Securing Speculation with the Principle of Transient Non-Observability cites Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order Execution
  • DOLMA: Securing Speculation with the Principle of Transient Non-Observability cites CrossTalk: Speculative Data Leaks Across Cores Are Real
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers58

  1. CrossTalk: Speculative Data Leaks Across Cores Are RealHany Ragab, Alyssa Milburn, Kaveh Razavi, Herbert Bos et al.S&P 2021 · 162 citations
  2. DOLMA: Securing Speculation with the Principle of Transient Non-ObservabilityKevin Loughlin, Ian Neal, Jiacheng Ma, Elisa Tsai et al.USENIX Security 2021 · 94 citations
  3. Rage Against the Machine Clear: A Systematic Analysis of Machine Clears and Their Implications for Transient Execution AttacksHany Ragab, Enrico Barberis, Herbert Bos, Cristiano GiuffridaUSENIX Security 2021 · 76 citations
  4. Building Enclave-Native Storage Engines for Practical Encrypted DatabasesYuanyuan Sun, Sheng Wang, Huorong Li, Feifei LiVLDB 2021 · 56 citations
  5. SoK: SGX.Fail: How Stuff Gets eXposedStephan van Schaik, Alexander Seto, Thomas Yurek, Adam Batori et al.S&P 2024 · 52 citations

Builds on15

  1. Spectre Attacks: Exploiting Speculative ExecutionPaul Kocher, Jann Horn, Anders Fogh, Daniel Genkin et al.S&P 2019 · 2,435 citations
  2. Meltdown: Reading Kernel Memory from User SpaceMoritz Lipp, Michael Schwarz, Daniel Gruss, Thomas Prescher et al.USENIX Security 2018 · 1,456 citations
  3. Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order ExecutionJo Van Bulck, Marina Minkin, Ofir Weisse, Daniel Genkin et al.USENIX Security 2018 · 1,175 citations
  4. ZombieLoad: Cross-Privilege-Boundary Data SamplingMichael Schwarz, Moritz Lipp, Daniel Moghimi, Jo Van Bulck et al.CCS 2019 · 464 citations
  5. A Systematic Evaluation of Transient Execution Attacks and DefensesClaudio Canella, Jo Van Bulck, Michael Schwarz, Moritz Lipp et al.USENIX Security 2019 · 442 citations

Related papers

  1. I See Dead µops: Leaking Secrets via Intel/AMD Micro-Op CachesXida Ren, Logan Moody, Mohammadkazem Taram, Matthew Jordan et al.ISCA 2021 · 59 citations
  2. RIDL: Rogue In-Flight Data LoadStephan van Schaik, Alyssa Milburn, Sebastian Österlund, Pietro Frigo et al.S&P 2019 · 408 citations
  3. Medusa: Microarchitectural Data Leakage via Automated Attack SynthesisDaniel Moghimi, Moritz Lipp, Berk Sunar, Michael SchwarzUSENIX Security 2020
  4. GADGETSPINNER: A New Transient Execution Primitive Using the Loop Stream DetectorYun Chen, Ali Hajiabadi, Trevor E. CarlsonHPCA 2024 · 6 citations
  5. LVI: Hijacking Transient Execution through Microarchitectural Load Value InjectionJo Van Bulck, Daniel Moghimi, Michael Schwarz, Moritz Lipp et al.S&P 2020 · 275 citations
Dusk over the sea between two cliffs drawn in fine vertical lines