Lune

USENIX Security2018Top-tier venue

The Guard's Dilemma: Efficient Code-Reuse Attacks Against Intel SGX

Andrea Biondo, Mauro Conti, Lucas Davi, Tommaso Frassetto, Ahmad-Reza Sadeghi

Abstract

Intel Software Guard Extensions (SGX) isolate securitycritical code inside a protected memory area called enclave. Previous research on SGX has demonstrated that memory corruption vulnerabilities within enclave code can be exploited to extract secret keys and bypass remote attestation. However, these attacks require kernel privileges, and rely on frequently probing enclave code which results in many enclave crashes. Further, they assume a constant, not randomized memory layout. In this paper, we present novel exploitation techniques against SGX that do not require any enclave crashes and work in the presence of existing SGX randomization approaches such as SGX-Shield. A key contribution of our attacks is that they work under weak adversarial assumptions, e.g., not requiring kernel privileges. In fact, they can be applied to any enclave that is developed with the standard Intel SGX SDK on either Linux or Windows.

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.

29 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

  • A Tale of Two Worlds: Assessing the Vulnerability of Enclave Shielding Runtimes cites Hacking in Darkness: Return-oriented Programming against Secure Enclaves
  • A Tale of Two Worlds: Assessing the Vulnerability of Enclave Shielding Runtimes cites Inferring Fine-grained Control Flow Inside SGX Enclaves with Branch Shadowing
  • A Tale of Two Worlds: Assessing the Vulnerability of Enclave Shielding Runtimes cites SGX-Shield: Enabling Address Space Layout Randomization for SGX Programs
  • A Tale of Two Worlds: Assessing the Vulnerability of Enclave Shielding Runtimes cites Telling Your Secrets without Page Faults: Stealthy Page Table-Based Attacks on Enclaved Execution
  • Towards Memory Safe Enclave Programming with Rust-SGX cites Hacking in Darkness: Return-oriented Programming against Secure Enclaves
  • Towards Memory Safe Enclave Programming with Rust-SGX cites SGX-Shield: Enabling Address Space Layout Randomization for SGX Programs
  • Plundervolt: Software-based Fault Injection Attacks against Intel SGX cites A Tale of Two Worlds: Assessing the Vulnerability of Enclave Shielding Runtimes
  • Plundervolt: Software-based Fault Injection Attacks against Intel SGX cites Hacking in Darkness: Return-oriented Programming against Secure Enclaves
  • 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 SGX-Shield: Enabling Address Space Layout Randomization for SGX Programs
  • Plundervolt: Software-based Fault Injection Attacks against Intel SGX 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
  • 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
  • Exploiting Unprotected I/O Operations in AMD's Secure Encrypted Virtualization cites Hacking in Darkness: Return-oriented Programming against Secure Enclaves
  • Exploiting Unprotected I/O Operations in AMD's Secure Encrypted Virtualization cites SGX-Shield: Enabling Address Space Layout Randomization for SGX Programs
  • Exploiting Unprotected I/O Operations in AMD's Secure Encrypted Virtualization cites Telling Your Secrets without Page Faults: Stealthy Page Table-Based Attacks on Enclaved Execution
  • FastKitten: Practical Smart Contracts on Bitcoin cites SGX-Shield: Enabling Address Space Layout Randomization for SGX Programs
  • FastKitten: Practical Smart Contracts on Bitcoin cites Strong and Efficient Cache Side-Channel Protection using Hardware Transactional Memory
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers29

  1. 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
  2. A Tale of Two Worlds: Assessing the Vulnerability of Enclave Shielding RuntimesJo Van Bulck, David F. Oswald, Eduard Marin, Abdulla Aldoseri et al.CCS 2019 · 159 citations
  3. FastKitten: Practical Smart Contracts on BitcoinPoulami Das, Lisa Eckey, Tommaso Frassetto, David Gens et al.USENIX Security 2019 · 118 citations
  4. Exploiting Unprotected I/O Operations in AMD's Secure Encrypted VirtualizationMengyuan Li, Yinqian Zhang, Zhiqiang Lin, Yan SolihinUSENIX Security 2019 · 104 citations
  5. Towards Memory Safe Enclave Programming with Rust-SGXHuibo Wang, Pei Wang, Yu Ding, Mingshen Sun et al.CCS 2019 · 86 citations

Builds on5

  1. 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
  2. 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
  3. 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
  4. 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
  5. 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

Related papers

  1. TeeRex: Discovery and Exploitation of Memory Corruption Vulnerabilities in SGX EnclavesTobias Cloosters, Michael Rodler, Lucas DaviUSENIX Security 2020
  2. 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
  3. SGXFuzz: Efficiently Synthesizing Nested Structures for SGX Enclave FuzzingTobias Cloosters, Johannes Willbold, Thorsten Holz, Lucas DaviUSENIX Security 2022
  4. EnclaveFuzz: Finding Vulnerabilities in SGX ApplicationsLiheng Chen, Zheming Li, Zheyu Ma, Yuan Li et al.NDSS 2024
  5. WireTap: Breaking Server SGX via DRAM Bus InterpositionAlexander Seto, Oytun Kuday Duran, Samy Amer, Jalen Chuang et al.CCS 2025
Dusk over the sea between two cliffs drawn in fine vertical lines