---
title: "Don't let TEEs break your MPC"
description: "Running threshold signature MPC protocols inside TEEs only helps when the TEE is treated as defense in depth rather than a substitute for a sound protocol."
url: "https://swe.quest/articles/don-t-let-tees-break-your-mpc-4fc1dadad1320949"
canonical: "https://blog.trailofbits.com/2026/09/25/dont-let-tees-break-your-mpc/"
source: "Trail of Bits"
published: "2026-09-25"
difficulty: "hard"
kind: "Deep dive"
reading_minutes: 12
tags: ["cryptography","sandboxing","vulnerability-research","security"]
---

# Don't let TEEs break your MPC

A post on [Trail of Bits](https://swe.quest/sources/trail-of-bits.md), published 2026-09-25, 12 min read, Deep dive. Original: [https://blog.trailofbits.com/2026/09/25/dont-let-tees-break-your-mpc/](https://blog.trailofbits.com/2026/09/25/dont-let-tees-break-your-mpc/)

## Summary

Running threshold signature MPC protocols inside TEEs only helps when the TEE is treated as defense in depth rather than a substitute for a sound protocol. The untrusted host still controls I/O, storage and scheduling. It can roll back the filesystem after a signer deletes a used pre-signature, forcing nonce reuse and leaking the private key share. Correct attestation can effectively lift semi-honest protocols toward malicious security by guaranteeing peers run the expected code. In practice that fails through recurring pitfalls: incomplete measurements (as in the WhatsApp Private Inference LD\_PRELOAD bug), skipped quote and certificate-chain checks, unhardened images, stale backups and malleable LUKS2 headers, physical attacks like TEE.fail and DDRop, vendor centralization, and lenient default TCB policies. The recommended practices are binding attestation to MPC party identities, reproducible builds with binary transparency, and enforcing freshness and stricter security version checks.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Cryptography](https://swe.quest/tags/cryptography.md) (Security)
- [Sandboxing & isolation](https://swe.quest/tags/sandboxing.md) (Security)
- [Vulnerability research](https://swe.quest/tags/vulnerability-research.md) (Security)
- [Security](https://swe.quest/tags/security.md) (Security)

## Prerequisites

- threshold signatures
- MPC security models ([easy posts on Security](https://swe.quest/tags/security.md?difficulty=easy))
- remote attestation
- Schnorr/ECDSA nonces

## Keywords

Intel TDX, AMD SEV-SNP, threshold signatures, LUKS2, AWS Nitro Enclaves, TEE.fail, DDRop, WhatsApp Private Inference

## Related posts

- [Private analytics via zero-trust aggregation](https://swe.quest/articles/private-analytics-via-zero-trust-aggregation-060bfb6ed5bdc13c.md): Google Research · 2026-05-27 · Hard · 6 min read · Cryptography, Privacy, Analytics & OLAP, Security
  Google's private analytics service now layers a new lattice-based, one-shot secure aggregation protocol on top of TEE execution, so individual device data is never decrypted in server memory even if the enclave is compromised by side-channel attacks.
- [After Binance, check what your signing systems can approve](https://swe.quest/articles/after-binance-check-what-your-signing-systems-can-approve-8695852207e4a776.md): Trail of Bits · 2026-11-06 · Hard · 4 min read · Security, Incidents & postmortems, Threat detection, Identity & auth
  Binance's October 2026 breach showed that attackers who compromise a service allowed to request signatures can misuse a protected key without ever extracting it.
- [Hardening eBPF for runtime security: Lessons from Datadog Workload Protection](https://swe.quest/articles/hardening-ebpf-for-runtime-security-lessons-from-datadog-workload-protection-d7f876ff0025b179.md): Datadog Engineering · 2026-01-07 · Hard · 34 min read · Linux, Threat detection, Security, Operating systems, Performance engineering
  Five years of running Datadog Workload Protection, an eBPF-based runtime security agent supporting kernels from 4.15 to 6.18, distilled into six production lessons.
- [How Bee implemented Zero Operator Access for personal AI on AWS](https://swe.quest/articles/how-bee-implemented-zero-operator-access-for-personal-ai-on-aws-8963bf3fef032b45.md): AWS Architecture Blog · 2026-11-20 · Hard · 8 min read · Security, Cryptography, Cloud platforms, Privacy, Sandboxing & isolation
  Bee, Amazon's wearable personal AI, enforces Zero Operator Access by having the user's device release short-lived decryption keys only to EC2 instances whose NitroTPM attestation matches software published in a public Sigstore Rekor transparency log.
- [Replit’s Architecture Behind Secure Agent Work](https://swe.quest/articles/replit-s-architecture-behind-secure-agent-work-cde69ab09bf64c7d.md): Replit · 2026-10-28 · Easy · 9 min read · AI agents, Sandboxing & isolation, Security, Identity & auth, Virtualization
  Replit's Agent Habitat secures agent work through four layers: least-privilege connectors with a credential broker that injects vault secrets only into authorized requests, microVM isolation with a hardened kernel, production changes gated behind engineering review and combined static, dependency and AI security scanning, and audit logs that stream to a SIEM.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
