Lune

CCS2024Top-tier venue

TDXdown: Single-Stepping and Instruction Counting Attacks against Intel TDX

Luca Wilke, Florian Sieck, Thomas Eisenbarth

Abstract

Trusted Execution Environments are a promising solution for solving the data privacy and trust issues introduced by cloud computing. As a result, all major CPU vendors integrated Trusted Execution Environments (TEEs) into their CPUs. The biggest threat to TEE security are side-channel attacks, of which single-stepping attacks turned out to be the most powerful ones. Enabled by the TEE attacker model, single-stepping attacks allow the attacker to execute the TEE one instruction at a time, enabling numerous controlledand side-channel based security issues. Intel recently launched Intel TDX, its second generation TEE, which protects whole virtual machines (VMs). To minimize the attack surface to side-channels, TDX comes with a dedicated single-stepping attack countermeasure. In this paper, we systematically analyze the single-stepping countermeasure of Intel TDX and show, for the first time, that both, the built-in detection heuristic as well as the prevention mechanism, can be circumvented. We reliably single-step TDX-protected VMs by deluding the TDX security monitor about the elapsed processing time used as part of the detection heuristic. Moreover, our study reveals a design flaw in the single-stepping countermeasure that turns the prevention mechanism against itself: An inherent sidechannel within the prevention mechanism leaks the number of instructions executed by the TDX-protected VM, enabling a novel attack we refer to as StumbleStepping. Both attacks, single-stepping and StumbleStepping, work on the most recent Intel TDX enabled Xeon Scalable CPUs. Using StumbleStepping, we demonstrate a novel end-to-end attack against wolfSSL's ECDSA implementation, exploiting a control flow side-channel in its truncation-based nonce generation algorithm. We provide a systematic study of nonce-truncation implementations, revealing similar leakages in OpenSSL, which we exploit with our single-stepping primitive. Finally, we propose design changes to TDX to mitigate our attacks.

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.

18 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

  • SNPeek: Side-Channel Analysis for Privacy Applications on Confidential VMs cites Inferring Fine-grained Control Flow Inside SGX Enclaves with Branch Shadowing
  • SNPeek: Side-Channel Analysis for Privacy Applications on Confidential VMs cites ZombieLoad: Cross-Privilege-Boundary Data Sampling
  • SNPeek: Side-Channel Analysis for Privacy Applications on Confidential VMs cites Plundervolt: Software-based Fault Injection Attacks against Intel SGX
  • SNPeek: Side-Channel Analysis for Privacy Applications on Confidential VMs cites PLATYPUS: Software-based Power Side-Channel Attacks on x86
  • SNPeek: Side-Channel Analysis for Privacy Applications on Confidential VMs cites Leaky Cauldron on the Dark Land: Understanding Memory Side-Channel Hazards in SGX
  • MDPeek: Breaking Balanced Branches in SGX with Memory Disambiguation Unit Side Channels cites Inferring Fine-grained Control Flow Inside SGX Enclaves with Branch Shadowing
  • MDPeek: Breaking Balanced Branches in SGX with Memory Disambiguation Unit Side Channels cites ZombieLoad: Cross-Privilege-Boundary Data Sampling
  • MDPeek: Breaking Balanced Branches in SGX with Memory Disambiguation Unit Side Channels cites Leaky Cauldron on the Dark Land: Understanding Memory Side-Channel Hazards in SGX
  • 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 ZombieLoad: Cross-Privilege-Boundary Data Sampling
  • TEE.Fail: Breaking Trusted Execution Environments via DDR5 Memory Bus Interposition cites ZombieLoad: Cross-Privilege-Boundary Data Sampling
  • Attestable Builds: Compiling Verifiable Binaries on Untrusted Systems using Trusted Execution Environments cites Inferring Fine-grained Control Flow Inside SGX Enclaves with Branch Shadowing
  • Attestable Builds: Compiling Verifiable Binaries on Untrusted Systems using Trusted Execution Environments cites Plundervolt: Software-based Fault Injection Attacks against Intel SGX
  • TDXRay: Microarchitectural Side-Channel Analysis of Intel TDX for Real-World Workloads cites SNPeek: Side-Channel Analysis for Privacy Applications on Confidential VMs
  • TDXRay: Microarchitectural Side-Channel Analysis of Intel TDX for Real-World Workloads cites PLATYPUS: Software-based Power Side-Channel Attacks on x86
  • TDXRay: Microarchitectural Side-Channel Analysis of Intel TDX for Real-World Workloads cites Leaky Cauldron on the Dark Land: Understanding Memory Side-Channel Hazards in SGX
  • 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
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers18

  1. TEE.Fail: Breaking Trusted Execution Environments via DDR5 Memory Bus InterpositionJalen Chuang, Alexander Seto, Nicolás Berrios, Stephan van Schaik et al.S&P 2026 · 29 citations
  2. SNPeek: Side-Channel Analysis for Privacy Applications on Confidential VMsRuiyi Zhang, Albert Cheu, Adrià Gascón, Daniel Moghimi et al.NDSS 2026 · 7 citations
  3. MDPeek: Breaking Balanced Branches in SGX with Memory Disambiguation Unit Side ChannelsChang Liu, Shuaihu Feng, Yuan Li, Dongsheng Wang et al.ASPLOS 2025 · 7 citations
  4. TDXRay: Microarchitectural Side-Channel Analysis of Intel TDX for Real-World WorkloadsTristan Hornetz, Hosein Yavarzadeh, Albert Cheu, Adrià Gascón et al.S&P 2026 · 5 citations
  5. Attestable Builds: Compiling Verifiable Binaries on Untrusted Systems using Trusted Execution EnvironmentsDaniel Hugenroth, Mario Lins, René Mayrhofer, Alastair R. BeresfordCCS 2025 · 1 citation

Builds on23

  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. ZombieLoad: Cross-Privilege-Boundary Data SamplingMichael Schwarz, Moritz Lipp, Daniel Moghimi, Jo Van Bulck et al.CCS 2019 · 464 citations
  3. 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
  4. 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
  5. PLATYPUS: Software-based Power Side-Channel Attacks on x86Moritz Lipp, Andreas Kogler, David F. Oswald, Michael Schwarz et al.S&P 2021 · 242 citations

Related papers

  1. TDXploit: Novel Techniques for Single-Stepping and Cache Attacks on Intel TDXFabian Rauscher, Luca Wilke, Hannes Weissteiner, Thomas Eisenbarth et al.USENIX Security 2025
  2. M-Step: A Single-Stepping Framework for Side-Channel Analysis on TrustZone-MCristiano Rodrigues, Marton Bognar, Sandro Pinto, Jo Van BulckUSENIX Security 2026
  3. HECKLER: Breaking Confidential VMs with Malicious InterruptsBenedict Schlüter, Supraja Sridhara, Mark Kuhne, Andrin Bertschi et al.USENIX Security 2024 · 48 citations
  4. AEX-NStep: Probabilistic Interrupt Counting Attacks on Intel SGXNicolas Dutly, Friederike Groschupp, Ivan Puddu, Kari Kostiainen et al.S&P 2026 · 1 citation
  5. T-SGX: Eradicating Controlled-Channel Attacks Against Enclave ProgramsMing-Wei Shih, Sangho Lee, Taesoo Kim, Marcus PeinadoNDSS 2017 · 431 citations
Dusk over the sea between two cliffs drawn in fine vertical lines