Lune

USENIX Security2018Top-tier venue

Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order Execution

Jo Van Bulck, Marina Minkin, Ofir Weisse, Daniel Genkin, Baris Kasikci, Frank Piessens, Mark Silberstein, Thomas F. Wenisch, Yuval Yarom, Raoul Strackx

Abstract

Trusted execution environments, and particularly the Software Guard eXtensions (SGX) included in recent Intel x86 processors, gained significant traction in recent years. A long track of research papers, and increasingly also realworld industry applications, take advantage of the strong hardware-enforced confidentiality and integrity guarantees provided by Intel SGX. Ultimately, enclaved execution holds the compelling potential of securely offloading sensitive computations to untrusted remote platforms. We present Foreshadow, a practical software-only microarchitectural attack that decisively dismantles the security objectives of current SGX implementations. Crucially, unlike previous SGX attacks, we do not make any assumptions on the victim enclave's code and do not necessarily require kernel-level access. At its core, Foreshadow abuses a speculative execution bug in modern Intel processors, on top of which we develop a novel exploitation methodology to reliably leak plaintext enclave secrets from the CPU cache. We demonstrate our attacks by extracting full cryptographic keys from Intel's vetted architectural enclaves, and validate their correctness by launching rogue production enclaves and forging arbitrary local and remote attestation responses. The extracted remote attestation keys affect millions of devices.

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.

306 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

  • Inferring Fine-grained Control Flow Inside SGX Enclaves with Branch Shadowing cites Prefetch Side-Channel Attacks: Bypassing SMAP and Kernel ASLR
  • LVI: Hijacking Transient Execution through Microarchitectural Load Value Injection cites Inferring Fine-grained Control Flow Inside SGX Enclaves with Branch Shadowing
  • LVI: Hijacking Transient Execution through Microarchitectural Load Value Injection cites Spectre Attacks: Exploiting Speculative Execution
  • LVI: Hijacking Transient Execution through Microarchitectural Load Value Injection cites Plundervolt: Software-based Fault Injection Attacks against Intel SGX
  • LVI: Hijacking Transient Execution through Microarchitectural Load Value Injection cites RIDL: Rogue In-Flight Data Load
  • LVI: Hijacking Transient Execution through Microarchitectural Load Value Injection cites Telling Your Secrets without Page Faults: Stealthy Page Table-Based Attacks on Enclaved Execution
  • LVI: Hijacking Transient Execution through Microarchitectural Load Value Injection cites Fallout: Leaking Data on Meltdown-resistant CPUs
  • Spectre Attacks: Exploiting Speculative Execution cites Inferring Fine-grained Control Flow Inside SGX Enclaves with Branch Shadowing
  • Plundervolt: Software-based Fault Injection Attacks against Intel SGX cites Inferring Fine-grained Control Flow Inside SGX Enclaves with Branch Shadowing
  • Plundervolt: Software-based Fault Injection Attacks against Intel SGX cites Spectre Attacks: Exploiting Speculative Execution
  • Plundervolt: Software-based Fault Injection Attacks against Intel SGX cites RIDL: Rogue In-Flight Data Load
  • Plundervolt: Software-based Fault Injection Attacks against Intel SGX cites Telling Your Secrets without Page Faults: Stealthy Page Table-Based Attacks on Enclaved Execution
  • RIDL: Rogue In-Flight Data Load cites Spectre Attacks: Exploiting Speculative Execution
  • Keystone: an open framework for architecting trusted execution environments cites Spectre Attacks: Exploiting Speculative Execution
  • Keystone: an open framework for architecting trusted execution environments cites Telling Your Secrets without Page Faults: Stealthy Page Table-Based Attacks on Enclaved Execution
  • Strong and Efficient Cache Side-Channel Protection using Hardware Transactional Memory cites Inferring Fine-grained Control Flow Inside SGX Enclaves with Branch Shadowing
  • Strong and Efficient Cache Side-Channel Protection using Hardware Transactional Memory cites Prefetch Side-Channel Attacks: Bypassing SMAP and Kernel ASLR
  • Telling Your Secrets without Page Faults: Stealthy Page Table-Based Attacks on Enclaved Execution cites Inferring Fine-grained Control Flow Inside SGX Enclaves with Branch Shadowing
  • Telling Your Secrets without Page Faults: Stealthy Page Table-Based Attacks on Enclaved Execution cites Prefetch Side-Channel Attacks: Bypassing SMAP and Kernel ASLR
  • Fallout: Leaking Data on Meltdown-resistant CPUs cites Spectre Attacks: Exploiting Speculative Execution
  • Fallout: Leaking Data on Meltdown-resistant CPUs cites Prefetch Side-Channel Attacks: Bypassing SMAP and Kernel ASLR
  • Fallout: Leaking Data on Meltdown-resistant CPUs cites RIDL: Rogue In-Flight Data Load
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers306

  1. RIDL: Rogue In-Flight Data LoadStephan van Schaik, Alyssa Milburn, Sebastian Österlund, Pietro Frigo et al.S&P 2019 · 408 citations
  2. Keystone: an open framework for architecting trusted execution environmentsDayeol Lee, David Kohlbrenner, Shweta Shinde, Krste Asanovic et al.EuroSys 2020 · 381 citations
  3. Plundervolt: Software-based Fault Injection Attacks against Intel SGXKit Murdock, David F. Oswald, Flavio D. Garcia, Jo Van Bulck et al.S&P 2020 · 369 citations
  4. Fallout: Leaking Data on Meltdown-resistant CPUsClaudio Canella, Daniel Genkin, Lukas Giner, Daniel Gruss et al.CCS 2019 · 289 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

Builds on7

  1. Spectre Attacks: Exploiting Speculative ExecutionPaul Kocher, Jann Horn, Anders Fogh, Daniel Genkin et al.S&P 2019 · 2,435 citations
  2. Inferring Fine-grained Control Flow Inside SGX Enclaves with Branch ShadowingSangho Lee, Ming-Wei Shih, Prasun Gera, Taesoo Kim et al.USENIX Security 2017 · 536 citations
  3. Telling Your Secrets without Page Faults: Stealthy Page Table-Based Attacks on Enclaved ExecutionJo Van Bulck, Nico Weichbrodt, Rüdiger Kapitza, Frank Piessens et al.USENIX Security 2017 · 316 citations
  4. Prefetch Side-Channel Attacks: Bypassing SMAP and Kernel ASLRDaniel Gruss, Clémentine Maurice, Anders Fogh, Moritz Lipp et al.CCS 2016 · 278 citations
  5. Strong and Efficient Cache Side-Channel Protection using Hardware Transactional MemoryDaniel Gruss, Julian Lettner, Felix Schuster, Olga Ohrimenko et al.USENIX Security 2017 · 254 citations

Related papers

  1. The Guard's Dilemma: Efficient Code-Reuse Attacks Against Intel SGXAndrea Biondo, Mauro Conti, Lucas Davi, Tommaso Frassetto et al.USENIX Security 2018 · 126 citations
  2. Hacking in Darkness: Return-oriented Programming against Secure EnclavesJae-Hyuk Lee, Jin Soo Jang, Yeongjin Jang, Nohyun Kwak et al.USENIX Security 2017 · 191 citations
  3. T-SGX: Eradicating Controlled-Channel Attacks Against Enclave ProgramsMing-Wei Shih, Sangho Lee, Taesoo Kim, Marcus PeinadoNDSS 2017 · 431 citations
  4. TeeRex: Discovery and Exploitation of Memory Corruption Vulnerabilities in SGX EnclavesTobias Cloosters, Michael Rodler, Lucas DaviUSENIX Security 2020
  5. SGX-Shield: Enabling Address Space Layout Randomization for SGX ProgramsJaebaek Seo, Byoungyoung Lee, Seong-Min Kim, Ming-Wei Shih et al.NDSS 2017 · 227 citations
Dusk over the sea between two cliffs drawn in fine vertical lines