Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Meta Engineering 12 min read Deep dive hardMaster

Building Private Processing for AI tools on WhatsApp

Private Processing lets WhatsApp users send messages to server-side AI features such as summarization and writing suggestions without Meta or WhatsApp being able to read them. Requests run inside confidential VMs, a type of Trusted Execution Environment, with Confidential Compute mode GPUs behind them. Clients authenticate with anonymous credentials and reach the service through an Oblivious HTTP third-party relay that hides their IP and prevents targeting a specific user to a specific machine. They then open an RA-TLS session whose attestation is checked against a third-party log of approved binaries. The service is stateless and forward secure, bans remote shell access, filters logs leaving the CVM, and uses multi-party-reviewed builds, all guided by a threat model covering insiders, supply-chain vendors and malicious users.

Assumes: Trusted Execution EnvironmentsTLS and public-key encryptionthreat modeling basics

Related posts

  • Bringing Private Processing to Meta AI Glasses

    Meta Engineering mediumAdept

    Meta's Private Processing extends the AI glasses trust boundary into the cloud by running models inside confidential VMs on TEE-capable CPUs and GPUs, so host OS, hypervisor and Meta operators see only ciphertext. Requests are made non-targetable through blind-signed anonymous credentials and third-party OHTTP relays. Devices verify servers via RA-TLS attestation against an append-only, publicly witnessed transparency ledger and fail closed on mismatch. For stateful features, the storage and query engine run inside the TEE, which avoids access-pattern leakage and the cost of shipping ciphertext to remote databases. Observability relies only on aggregate health signals because debuggers and memory dumps are impossible, and the design is opened to external audit via NCC Group reviews and an expanded bug bounty.

  • How We’re Building Scam Alert on WhatsApp With End-to-End Encryption and Verifiability Guarantees

    Meta Engineering hardMaster

    WhatsApp's Scam Alert is an optional feature that runs an on-device ML classifier over messages from non-contacts and shows a private in-chat warning. No message content leaves the device unless the user chooses to report it. Model versions are published to a public transparency ledger and the weights are released, so Meta cannot send a targeted model to one user. Telemetry is limited to aggregate warning and user-action counts, which pass through a confidential federated analytics pipeline built on attested CVM-based TEEs, OHTTP relays, anonymous credentials, secure aggregation, k-anonymity thresholds and differential privacy. Clients refuse to transmit if the attestation or the privacy parameters fail locally enforced guardrails.

  • How Meta enables de-identified authentication at scale

    Meta Engineering mediumAdept

    Meta's Anonymous Credential Service (ACS) authenticates clients without user IDs by splitting authentication into token issuance over an authenticated channel and unlinkable token redemption over an anonymous channel, built on VOPRFs and blind signatures with an HMAC over business data keyed by a shared secret. ACS is a multitenant C++ Thrift service on Twine that isolates use cases with per-use-case keys and rotates them routinely. It serves hundreds of thousands of requests per second for WhatsApp's de-identified telemetry. Scaling lessons include configurable credential reuse limits backed by a ZippyDB counter to cut capacity costs, dithering plus a global rate limiter to absorb synchronized nightly client spikes, and self-service onboarding with Android/iOS SDKs so teams need no cryptography expertise.

  • DIT — enabling de-identified data collection on WhatsApp

    Meta Engineering hardMaster

    WhatsApp's De-identified Telemetry (DIT) collects usage, reliability and performance data without linking it to a user. The client first fetches anonymous tokens over an authenticated connection, then uploads logs over an unauthenticated one, binding each log with an HMAC keyed from a token. Tokens come from a Verifiable Oblivious Pseudorandom Function (VOPRF) evaluated by an Anonymous Credential System, modeled on Privacy Pass, so issuance and redemption cannot be linked. At scale the design uses Curve25519 instead of Ristretto to save app size, rotates keys more often to blunt static DH attacks, rate-limits through key rotation, allows each token 64 uses per day, strips IPs at the edge, and monitors the collected data for re-identification risk.

  • Privacy-Aware Infrastructure in the AI-Native Era: An Asset Classification Case Study

    Meta Engineering mediumAdept

    Meta classifies data assets for privacy enforcement with a hybrid pipeline: it builds structured evidence briefs from code resolution, lineage, ownership and annotations, uses LLMs only for novel or ambiguous assets, and distills stable patterns into versioned, human-reviewed deterministic rules. About 85% of requests resolve on the deterministic path in single-digit milliseconds. The ~15% LLM fallback takes seconds and costs roughly 400x the compute. Key lessons are that context matters more than prompt tuning, that circular label fields must be masked from both the LLM and rule distillation, and that evaluation must stay independent of optimization, using frozen human-reviewed reference sets and calibrated confidence scores.

The quest for software engineering knowledge.

Look:
Layout: