返回资讯中心
外部精选
软件工程
#社区热议

It's time to talk about TEEs

This post surveys some concerning attacks on TEEs.

Hacker Newsjoshcsimmons2026/10/18 · 9 天前12 分钟阅读

以下正文同步自 Hacker News,版权归原站所有,已转换为易读排版。

This post surveys some concerning attacks on TEEs. The goal is to persuade you to re-consider how you deploy TEE-based applications, if you should deploy them at all.

Trusted hardware companies (Intel, AMD, etc.) mainly compete on performance, functionality and (one hopes) developer-friendliness. They may try to compete on security, but this is hard, in my opinion: there’s always someone else who can (mis)claim more security and such claims are hard to adjudicate by the market. Furthermore, the complexity of modern CPU architectures and the pervasiveness of side-channels makes TEE security claims tenuous.

In any case, (some of) the TEE attacks follow below.

Enclaves are meant to protect secrets and integrity of computation from the environment (e.g., host OS, or even the physical environment). But even if the enclave platform is secure, bugs in the code running in the enclave can lead to disaster.

Many of these attacks impacted not only Intel SGX but other TEE platforms as well, like AMD SEV.

You may say: “I don’t care; my threat model precludes physical attacks.” No it doesn’t, silly: your remote attestation verifier accepts a quote from any Intel CPU in good standing. And the attacker’s CPU is one of them. A break of one is a break of all, unless…

Unless: you pin your verifier to only accept your own PCK certificates6, which implicitly excludes the attacker’s CPU. This works for so-called scalable SGX (the only flavor left) and requires you to carefully manage a PKI. So, effectively requires you to wield a footgun. Good luck!

DoS is explicitly outside the threat model of SGX, TDX, SEV-SNP and Nitro (b.c. the host can simply refuse to schedule the enclave). So, here, we focus on liveness issues due to issues with the TEE platform itself.

In theory, there are ways to reduce the attack surface of trusted hardware. For example, see Sanctum11 from my group at MIT back in the day (shameless plug). Unfortunately, in practice, these more principled designs tend to come with lower performance and/or less functionality.

Don’t put valuable secrets in your TEEs, or they’re likely to become public, especially if physical attacks are in your threat model12.

Signal’s SGX-based contact discovery gets broken ↩

BadRAM}: Practical Memory Aliasing Attacks on Trusted Execution Environments, by De Meulemeester, Jesse and Wilke, Luca and Oswald, David and Eisenbarth, Thomas and Verbauwhede, Ingrid and Van Bulck, Jo, in 46th {IEEE} Symposium on Security and Privacy ({S&P}), 2025 ↩

WireTap: Breaking Server SGX via DRAM Bus Interposition, by Alex Seto and Oytun Kuday Duran and Samy Amer and Jalen Chuang and Stephan van Schaik and Daniel Genkin and Christina Garman, in 2025 SIGSAC Conference on Computer and Communications Security (CCS ‘25), 2025, [URL] ↩

TEE.fail: Breaking Trusted Execution Environments via DDR5 Memory Bus Interposition, by Jalen Chuang and Alex Seto and Nicolas Berrios and Stephan van Schaik and Christina Garman and Daniel Genkin, in 47th IEEE Symposium on Security and Privacy (IEEE S&P ‘26), 2026, [URL] ↩

DDRop}: Active Memory Interposer Attacks on Confidential {VMs} by Dropping {DDR5} Writes, by De Meulemeester, Jesse and Gloor, Stefan and Jattke, Patrick and Moghimi, Daniel and Oswald, David and Thompson, Martin and Razavi, Kaveh and Verbauwhede, Ingrid and Van Bulck, Jo, in Proceedings of the 2026 {ACM} {SIGSAC} Conference on Computer and Communications Security ({CCS} ‘26), 2026 ↩

It is my understanding that the “old” 2015 SGX architecture based on EPID is now retired. ↩

SoK}: {SGX.Fail}: How Stuff Get e{X}posed, by van Schaik, Stephan and Seto, Alex and Yurek, Thomas and Batori, Adam and AlBassam, Bader and Garman, Christina and Genkin, Daniel and Miller, Andrew and Ronen, Eyal and Yarom, Yuval, 2022, [URL] ↩ ↩2

CacheWarp}: Software-based Fault Injection using Selective State Reset, by Zhang, Ruiyi and Gerlach, Lukas and Weber, Daniel and Hetterich, Lorenz and Lü, Youheng and Kogler, Andreas and Schwarz, Michael, in 33rd USENIX Security Symposium (USENIX Security 24), 2024 ↩

SEVered: Subverting AMD’s Virtual Machine Encryption, by Mathias Morbitzer and Manuel Huber and Julian Horsch and Sascha Wessel, 2018, [URL] ↩

CLKSCREW}: Exposing the Perils of {Security-Oblivious} Energy Management, by Adrian Tang and Simha Sethumadhavan and Salvatore Stolfo, in 26th USENIX Security Symposium (USENIX Security 17), 2017, [URL] ↩

Sanctum: Minimal Hardware Extensions for Strong Software Isolation, by Victor Costan and Ilia Lebedev and Srinivas Devadas, in Cryptology {ePrint} Archive, Paper 2015/564, 2015, [URL] ↩

For a more nuanced take, see Andrew Miller’s post. ↩

This work is licensed under a Attribution-NonCommercial 4.0 International license.

正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。

打开原文
去社区讨论 →