Skip to content

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

Meta Engineering 8 min read Case study mediumAdept

How Meta enables de-identified authentication at scale

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.

Assumes: public-key cryptography basicsHMACblind signatures

Related posts

  • Open-sourcing Anonymous Credential Service

    Meta Engineering hardMaster

    Anonymous Credential Service (ACS) lets clients authenticate without revealing identity by splitting authentication into token issuance over an authenticated channel and token redemption over a de-identified channel, using verifiable oblivious pseudorandom functions (VOPRFs) and blind signatures. Running it at scale requires capped redemption counts, frequent key rotation, and key transparency. Attribute-based key derivation, for example deriving keys per use case and time epoch from a single primary public key, plus discrete-log proofs stop a malicious server from assigning user-specific keys. The open-sourced C library depends only on libsodium, supports Ed25519 and Ristretto, recommends SDHI or Naor-Reingold KDFs, and ships with a Thrift-based demo service.

  • 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.

  • PACT: Anonymous Credentials for the Web

    Mozilla Hacks hardMaster

    PACT (Private Access Control Tokens) is a proposed design for privacy-preserving rate limiting on the open web, letting sites block volumetric bot abuse without demanding identity or hardware attestation. Anchors that hold a scarce signal, such as a subscription, verified phone or account in good standing, issue Privacy Pass-style Endorsements. Moderators exchange these for stateful Anonymous Credit Token Credentials whose hidden counters can be raised or lowered per client. Issuer blinding keeps Moderators from learning which Anchor backed a user, and MPC-based aggregate scoring (like Prio) lets sites evaluate issuers. The design contrasts with Google's Web Environment Integrity and Apple's Private Access Tokens, which tie web access to manufacturer-controlled devices.

  • Building Private Processing for AI tools on WhatsApp

    Meta Engineering hardMaster

    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.

  • How Meta built large-scale cryptographic monitoring

    Meta Engineering mediumAdept

    Meta logs every operation in FBCrypto, its managed cryptographic library, without sampling by aggregating identical events into per-event counts in an in-process buffer and flushing them periodically to Scribe, with data landing in Scuba and Hive. The buffer is a folly::ConcurrentHashMap shared across threads. Randomized first-flush delays smooth write spikes, and derived-key operations are rolled up under the parent key name to cut volume while still giving a pessimistic count for detecting key overuse. The resulting dataset drives key rotation, inventories of weak and quantum-vulnerable algorithms for migration, migration-safety alarms based on success rates, and fleet-wide library version tracking. Remaining challenges include Scribe and Scuba capacity and flushing safely at shutdown.

The quest for software engineering knowledge.

Look:
Layout: