Lune

CCS2024顶会

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

Luca Wilke, Florian Sieck, Thomas Eisenbarth

摘要

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.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 18 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • SNPeek: Side-Channel Analysis for Privacy Applications on Confidential VMs 引用了 Inferring Fine-grained Control Flow Inside SGX Enclaves with Branch Shadowing
  • SNPeek: Side-Channel Analysis for Privacy Applications on Confidential VMs 引用了 ZombieLoad: Cross-Privilege-Boundary Data Sampling
  • SNPeek: Side-Channel Analysis for Privacy Applications on Confidential VMs 引用了 Plundervolt: Software-based Fault Injection Attacks against Intel SGX
  • SNPeek: Side-Channel Analysis for Privacy Applications on Confidential VMs 引用了 PLATYPUS: Software-based Power Side-Channel Attacks on x86
  • SNPeek: Side-Channel Analysis for Privacy Applications on Confidential VMs 引用了 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 引用了 Inferring Fine-grained Control Flow Inside SGX Enclaves with Branch Shadowing
  • MDPeek: Breaking Balanced Branches in SGX with Memory Disambiguation Unit Side Channels 引用了 ZombieLoad: Cross-Privilege-Boundary Data Sampling
  • MDPeek: Breaking Balanced Branches in SGX with Memory Disambiguation Unit Side Channels 引用了 Leaky Cauldron on the Dark Land: Understanding Memory Side-Channel Hazards in SGX
  • Plundervolt: Software-based Fault Injection Attacks against Intel SGX 引用了 Inferring Fine-grained Control Flow Inside SGX Enclaves with Branch Shadowing
  • Plundervolt: Software-based Fault Injection Attacks against Intel SGX 引用了 ZombieLoad: Cross-Privilege-Boundary Data Sampling
  • TEE.Fail: Breaking Trusted Execution Environments via DDR5 Memory Bus Interposition 引用了 ZombieLoad: Cross-Privilege-Boundary Data Sampling
  • Attestable Builds: Compiling Verifiable Binaries on Untrusted Systems using Trusted Execution Environments 引用了 Inferring Fine-grained Control Flow Inside SGX Enclaves with Branch Shadowing
  • Attestable Builds: Compiling Verifiable Binaries on Untrusted Systems using Trusted Execution Environments 引用了 Plundervolt: Software-based Fault Injection Attacks against Intel SGX
  • TDXRay: Microarchitectural Side-Channel Analysis of Intel TDX for Real-World Workloads 引用了 SNPeek: Side-Channel Analysis for Privacy Applications on Confidential VMs
  • TDXRay: Microarchitectural Side-Channel Analysis of Intel TDX for Real-World Workloads 引用了 PLATYPUS: Software-based Power Side-Channel Attacks on x86
  • TDXRay: Microarchitectural Side-Channel Analysis of Intel TDX for Real-World Workloads 引用了 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 引用了 Inferring Fine-grained Control Flow Inside SGX Enclaves with Branch Shadowing
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper18

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

它引用的 Paper23

  1. Inferring Fine-grained Control Flow Inside SGX Enclaves with Branch ShadowingSangho Lee, Ming-Wei Shih, Prasun Gera, Taesoo Kim 等USENIX Security 2017 · 536 次引用
  2. ZombieLoad: Cross-Privilege-Boundary Data SamplingMichael Schwarz, Moritz Lipp, Daniel Moghimi, Jo Van Bulck 等CCS 2019 · 464 次引用
  3. Leaky Cauldron on the Dark Land: Understanding Memory Side-Channel Hazards in SGXWenhao Wang, Guoxing Chen, Xiaorui Pan, Yinqian Zhang 等CCS 2017 · 403 次引用
  4. Plundervolt: Software-based Fault Injection Attacks against Intel SGXKit Murdock, David F. Oswald, Flavio D. Garcia, Jo Van Bulck 等S&P 2020 · 369 次引用
  5. PLATYPUS: Software-based Power Side-Channel Attacks on x86Moritz Lipp, Andreas Kogler, David F. Oswald, Michael Schwarz 等S&P 2021 · 242 次引用

相关 Paper

  1. TDXploit: Novel Techniques for Single-Stepping and Cache Attacks on Intel TDXFabian Rauscher, Luca Wilke, Hannes Weissteiner, Thomas Eisenbarth 等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 等USENIX Security 2024 · 48 次引用
  4. AEX-NStep: Probabilistic Interrupt Counting Attacks on Intel SGXNicolas Dutly, Friederike Groschupp, Ivan Puddu, Kari Kostiainen 等S&P 2026 · 1 次引用
  5. T-SGX: Eradicating Controlled-Channel Attacks Against Enclave ProgramsMing-Wei Shih, Sangho Lee, Taesoo Kim, Marcus PeinadoNDSS 2017 · 431 次引用
黄昏的海面,两侧是细线勾勒的悬崖