Lune

USENIX Security2021Top-tier venue

Frontal Attack: Leaking Control-Flow in SGX via the CPU Frontend

Ivan Puddu, Moritz Schneider, Miro Haller, Srdjan Capkun

Abstract

We introduce a new timing side-channel attack on Intel CPU processors. Our Frontal attack exploits the way that CPU frontend fetches and processes instructions while being interrupted. In particular, we observe that in modern Intel CPUs, some instruction's execution times will depend on which operations precede and succeed them, and on their virtual addresses. Unlike previous attacks that could only profile branches if they contained different code or were based on conditional jumps, the attack allows the adversary to distinguish between instruction-wise identical branches. As the attack requires OS capabilities to set the interrupts, we use it to exploit SGX enclaves. Our attack demonstrates that a realistic SGX attacker can always observe the full enclave instruction trace, and secret-depending branching should not be used even alongside defenses to current controlled-channel attacks. We show that the adversary can use the Frontal attack to extract a secret from an SGX enclave if that secret was used as a branching condition for two instruction-wise identical branches. The attack can be exploited against several crypto libraries and affects all Intel CPUs.

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.

31 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 Systematic Evaluation of Automated Tools for Side-Channel Vulnerabilities Detection in Cryptographic Libraries cites Inferring Fine-grained Control Flow Inside SGX Enclaves with Branch Shadowing
  • Inferring Fine-grained Control Flow Inside SGX Enclaves with Branch Shadowing cites Sanctum: Minimal Hardware Extensions for Strong Software Isolation
  • Spectre Attacks: Exploiting Speculative Execution cites Inferring Fine-grained Control Flow Inside SGX Enclaves with Branch Shadowing
  • All Your PC Are Belong to Us: Exploiting Non-control-Transfer Instruction BTB Updates for Dynamic PC Extraction cites Inferring Fine-grained Control Flow Inside SGX Enclaves with Branch Shadowing
  • All Your PC Are Belong to Us: Exploiting Non-control-Transfer Instruction BTB Updates for Dynamic PC Extraction cites Spectre Attacks: Exploiting Speculative Execution
  • All Your PC Are Belong to Us: Exploiting Non-control-Transfer Instruction BTB Updates for Dynamic PC Extraction cites On (the Lack of) Code Confidentiality in Trusted Execution Environments
  • All Your PC Are Belong to Us: Exploiting Non-control-Transfer Instruction BTB Updates for Dynamic PC Extraction cites Leaky Cauldron on the Dark Land: Understanding Memory Side-Channel Hazards in SGX
  • On (the Lack of) Code Confidentiality in Trusted Execution Environments cites Inferring Fine-grained Control Flow Inside SGX Enclaves with Branch Shadowing
  • On (the Lack of) Code Confidentiality in Trusted Execution Environments cites Leaky Cauldron on the Dark Land: Understanding Memory Side-Channel Hazards in SGX
  • Obelix: Mitigating Side-Channels Through Dynamic Obfuscation cites A Systematic Evaluation of Automated Tools for Side-Channel Vulnerabilities Detection in Cryptographic Libraries
  • Obelix: Mitigating Side-Channels Through Dynamic Obfuscation cites Spectre Attacks: Exploiting Speculative Execution
  • Obelix: Mitigating Side-Channels Through Dynamic Obfuscation cites T-SGX: Eradicating Controlled-Channel Attacks Against Enclave Programs
  • Obelix: Mitigating Side-Channels Through Dynamic Obfuscation cites Leaky Cauldron on the Dark Land: Understanding Memory Side-Channel Hazards in SGX
  • T-SGX: Eradicating Controlled-Channel Attacks Against Enclave Programs cites Sanctum: Minimal Hardware Extensions for Strong Software Isolation
  • Leaky Cauldron on the Dark Land: Understanding Memory Side-Channel Hazards in SGX cites Inferring Fine-grained Control Flow Inside SGX Enclaves with Branch Shadowing
  • Leaky Cauldron on the Dark Land: Understanding Memory Side-Channel Hazards in SGX cites T-SGX: Eradicating Controlled-Channel Attacks Against Enclave Programs
  • Leaky Cauldron on the Dark Land: Understanding Memory Side-Channel Hazards in SGX cites Sanctum: Minimal Hardware Extensions for Strong Software Isolation
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers31

  1. CacheWarp: Software-based Fault Injection using Selective State ResetRuiyi Zhang, Lukas Gerlach, Daniel Weber, Lorenz Hetterich et al.USENIX Security 2024 · 36 citations
  2. Obelix: Mitigating Side-Channels Through Dynamic ObfuscationJan Wichelmann, Anja Rabich, Anna Pätschke, Thomas EisenbarthS&P 2024 · 15 citations
  3. On (the Lack of) Code Confidentiality in Trusted Execution EnvironmentsIvan Puddu, Moritz Schneider, Daniele Lain, Stefano Boschetto et al.S&P 2024 · 14 citations
  4. A Systematic Evaluation of Automated Tools for Side-Channel Vulnerabilities Detection in Cryptographic LibrariesAntoine Geimer, Mathéo Vergnolle, Frédéric Recoules, Lesly-Ann Daniel et al.CCS 2023 · 12 citations
  5. All Your PC Are Belong to Us: Exploiting Non-control-Transfer Instruction BTB Updates for Dynamic PC ExtractionJiyong Yu, Trent Jaeger, Christopher Wardlaw FletcherISCA 2023 · 12 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. Sanctum: Minimal Hardware Extensions for Strong Software IsolationVictor Costan, Ilia A. Lebedev, Srinivas DevadasUSENIX Security 2016 · 649 citations
  3. 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
  4. T-SGX: Eradicating Controlled-Channel Attacks Against Enclave ProgramsMing-Wei Shih, Sangho Lee, Taesoo Kim, Marcus PeinadoNDSS 2017 · 431 citations
  5. Leaky Cauldron on the Dark Land: Understanding Memory Side-Channel Hazards in SGXWenhao Wang, Guoxing Chen, Xiaorui Pan, Yinqian Zhang et al.CCS 2017 · 403 citations

Related papers

  1. 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
  2. Nemesis: Studying Microarchitectural Timing Leaks in Rudimentary CPU Interrupt LogicJo Van Bulck, Frank Piessens, Raoul StrackxCCS 2018 · 141 citations
  3. CopyCat: Controlled Instruction-Level Attacks on EnclavesDaniel Moghimi, Jo Van Bulck, Nadia Heninger, Frank Piessens et al.USENIX Security 2020
  4. Leaky Frontends: Security Vulnerabilities in Processor FrontendsShuwen Deng, Bowen Huang, Jakub SzeferHPCA 2022 · 27 citations
  5. AEX-Notify: Thwarting Precise Single-Stepping Attacks through Interrupt Awareness for Intel SGX EnclavesScott Constable, Jo Van Bulck, Xiang Cheng, Yuan Xiao et al.USENIX Security 2023
Dusk over the sea between two cliffs drawn in fine vertical lines