What we learned about TEE security from auditing WhatsApp's Private Inference
Summary
WhatsApp's new "Private Inference" feature, launched by Meta, integrates end-to-end encryption with AI capabilities like message summarization using Trusted Execution Environments (TEEs) based on AMD's SEV-SNP and Nvidia's confidential GPU platforms. A pre-launch audit, conducted by Trail of Bits and published on April 07, 2026, identified 28 security issues, including eight high-severity vulnerabilities that could have bypassed WhatsApp's privacy model. Meta has since patched all critical findings. The audit revealed that TEEs are not a complete solution, emphasizing that unmeasured inputs and missing validations can become critical vulnerabilities. Key lessons include never trusting data outside attestation measurements, correctly verifying security patch levels, and ensuring attestation reports have freshness guarantees to prevent replay attacks.
Key takeaway
For AI Security Engineers deploying TEE-based systems, you must recognize that strong isolation primitives alone are insufficient. Your system's security hinges on meticulous implementation details, especially validating all unmeasured inputs and ensuring attestation freshness. Engage security reviewers early and invest in comprehensive negative testing to uncover subtle flaws. Failing to address these implementation gaps risks compromising your privacy guarantees, turning a single TEE compromise into a persistent backdoor.
Key insights
TEEs offer strong isolation, but secure deployment demands rigorous attention to implementation details, especially input validation and attestation integrity.
Principles
- Never trust data outside your TEE's attestation measurement.
- Validate security patch levels using cryptographic certificates.
- Attestation reports require freshness guarantees to prevent replay.
Method
Meta addressed issues by strictly validating environment variables, implementing a custom bootloader for ACPI tables, validating patch levels against VCEK certificates, and including TLS `client_random` in attestation reports.
In practice
- Engage security reviewers early in TEE projects.
- Invest in comprehensive negative testing for TEE systems.
- Implement automated build pipelines with provenance verification.
Topics
- Trusted Execution Environments
- WhatsApp Private Inference
- AMD SEV-SNP
- Attestation Security
- Confidential Computing
- Security Audits
Code references
Best for: CTO, VP of Engineering/Data, Director of AI/ML, AI Security Engineer, AI Engineer, AI Architect
Related on AIssential
Editorial summary, takeaway, and curation by AIssential. Original article published by The Trail of Bits Blog.