TEE .fail - Breaking Trusted Execution Environments via DDR5 Memory Bus Interposition
Where
Main Stage
DEF CON 34
Duration
21 min
Shows how a cheap DDR5 bus interposer can expose deterministic memory encryption on server CPUs and leak an attestation signing key from a trusted enclave.
Summary
The talk starts from the premise that trusted execution environments protect code and data even against a malicious hypervisor or physical access to RAM. The speakers argue that server TEEs, including Intel SGX for data center parts, TDX, and AMD SEV-SNP, moved to a memory encryption engine that gives up integrity and replay protection, and that the remaining confidentiality is deterministic. They describe building a DDR5 bus interposer from e-commerce parts, with a refurbished logic analyzer standing in for a commercial tool priced around $300,000. Early attempts damaged boards and failed to boot, and the team reports that a working interposer took a lot of manual rewiring.
Captures showed that writing the same plaintext to memory produces the same ciphertext, which the speakers used as a dictionary-style oracle. They paused an enclave between iterations of an ECDSA signing loop, observed the 5-bit lookup table reads for each nonce chunk, and recovered the nonce and then the platform attestation key during the live demo. They say the key lets an attacker forge attestation for SGX and TDX, with examples including blockchain confidential computing and NVIDIA confidential compute. The vendors treat the issue as out of scope, and a real fix needs new hardware, while software-only randomized encryption is very costly.
The practical takeaway is that attestation-based trust on server TEEs should not be assumed to hold against an attacker with physical access to the memory bus. Operators who depend on these guarantees should reassess their threat model, and researchers should expect cheap bus-level tooling to be part of the attack surface.
Materials
Related talks
Main Stage·21 min
Christopher Tomas
Shows how stretching a single x86 instruction past one second can break System Management Mode's core rendezvous and expose dormant firmware CVEs.
Quantum Village·36 min
Evan Anderson
Shows how co-tenants on a shared superconducting quantum processor can sense each other's jobs through crosstalk, and how to keep a computation covert.
Main Stage·41 min
Ron Ben Yizhak
Shows how a symlink flaw in the file upload path of Microsoft's Python in Excel containers led to root, and how Excel's trust prompts were bypassed.


