← Lab /Security & privacy

WhatsApp Private Inference TEE audit uncovered privacy-breaking bugs

The identified vulnerabilities could let attackers bypass WhatsApp’s privacy guarantees.

Security & privacy Trail of Bits 7 Apr 2026 Disclosure Real-world evidence

Published as “What we learned about TEE security from auditing WhatsApp's Private Inference”

Why it matters

The audit shows that TEE deployments must measure and validate every input to preserve privacy, otherwise subtle bugs can defeat the isolation guarantees.

Summary

The researchers audited Meta's pre-launch WhatsApp Private Inference system, which runs encrypted messages inside AMD SEV-SNP and Nvidia confidential GPU TEEs. They identified 28 issues, including eight high-severity bugs that could let an attacker inject malicious code, tamper with ACPI tables, lie about firmware patch levels, or replay attestation reports to bypass privacy guarantees. Meta patched the high-severity findings and added mitigations such as environment-variable validation, ACPI table signature checks, firmware certificate verification, and freshness-bound attestation. The evidence is based on a direct code and configuration review of the production-grade system, but some low-severity issues remain unaddressed.

What they found 4

  1. Loading unmeasured environment variables after attestation allows code injection.

    “We discovered that WhatsApp’s system loaded configuration files containing environment variables after this fingerprint was taken (issue TOB-WAPI-13 in the report).”

  2. ACPI tables were not part of the attestation measurement, creating a backdoor.

    “We found these tables weren’t included in the attestation measurement (TOB-WAPI-17), creating a backdoor for attackers.”

  3. Attestation reports lacked freshness, enabling replay attacks.

    “the server would generate an attestation report proving its identity, but this report didn’t include any timestamp or random value from the client (TOB-WAPI-7).”

  4. Patch level verification relied on untrusted firmware claims.

    “it trusted the patch level that the firmware claimed to be running (in the attestation report), rather than verifying it against AMD’s cryptographic certificate (TOB-WAPI-8).”

Caveats 5

  • Meta patched all eight high-severity findings before launch, reducing the immediate attack surface.
  • The remaining eight issues are low-severity and were deliberately left unaddressed.
  • Meta chose not to fix eight low-severity and informational issues (appendix F).
  • Reproducibility of the confidential VM images remains challenging (TOB-WAPI-18).
  • Physical attacks on AMD SEV-SNP are not fully mitigated; additional CPU-trust controls were needed (TOB-WAPI-10).

What’s new here 4

  • Discovered 28 distinct TEE-related vulnerabilities in WhatsApp Private Inference, eight of which are high severity.
  • Showed that loading unmeasured configuration (e.g., environment variables) can subvert attestation without detection.
  • Demonstrated that missing ACPI table measurement enables a malicious hypervisor to gain arbitrary memory access.
  • Introduced a freshness fix by embedding the TLS client_random nonce into attestation reports.