Skip to content

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

Meta Engineering 7 min read Case study mediumAdept

Making messaging interoperability with third parties safe for users in Europe

To comply with the EU Digital Markets Act, WhatsApp and Messenger now let eligible third-party messaging services interoperate for 1:1 text and media, with group chats and calling to follow. Third parties should use the Signal Protocol, or a compatible one with equivalent guarantees. Their clients connect directly to Meta servers over WhatsApp's XMPP-based chat protocol, authenticate users with OpenID plus JWTs signed by the third-party server inside a Noise handshake, and host their own encrypted media, which Meta clients fetch through a proxy. Meta prefers direct client connections over a third-party proxy because a proxy would lose connection-level anti-spam signals such as TCP fingerprints and expose chat metadata, though E2EE guarantees cannot fully extend to clients Meta doesn't control.

Related posts

  • Key Transparency Comes to Messenger

    Meta Engineering easyNovice

    Messenger now supports key transparency verification for end-to-end encrypted one-on-one chats, letting users automatically confirm that contacts' public keys haven't been swapped by a compromised server instead of comparing per-device keys manually. The system reuses WhatsApp's Auditable Key Directory (AKD) library, with Cloudflare acting as an independent auditor. Messenger's per-device keys drive a publish epoch roughly every 2 minutes, each adding hundreds of thousands of keys, into a directory of billions of entries. To cope, Meta reduced AKD proof sizes as per-key version counts grow and hardened sequencing against outages and long delays.

  • Enhancing the security of WhatsApp calls

    Meta Engineering easyNovice

    WhatsApp's "Silence Unknown Callers" goes beyond muting the ringer: a stripped-down, server-enforced notification protocol keeps the recipient's device from processing attacker-controlled call-setup data, which cuts off zero-click exploit paths seen in calling stacks like WebRTC and PJSIP. To decide whether a call may ring without logging social graphs, clients hand out "privacy tokens" to contacts they trust. Callers present the token, and the server validates it without learning the caller-recipient relationship. A separate "Protect IP Address in Calls" setting routes calls through WhatsApp relays instead of peer-to-peer connections, hiding participants' IP addresses at some cost to call quality, while calls stay end-to-end encrypted.

  • How WhatsApp enables multi-device capability

    Meta Engineering mediumAdept

    WhatsApp's new multi-device architecture drops the phone as source of truth: each device gets its own identity key, the server maps accounts to device lists, and senders use client-side fanout to encrypt each message separately over pairwise Signal sessions to every sender and recipient device. Security codes now cover all device identities, and Automatic Device Verification limits re-verification to full account re-registration. Calls send per-device SRTP master secrets via fanout, with group calls rekeyed when participants change. Message history moves to a new device as an encrypted bundle, while ongoing app state is stored server-side end-to-end encrypted, including metadata, under rotating keys.

  • Building end-to-end security for Messenger

    Meta Engineering easyNovice

    Messenger is rolling out end-to-end encryption by default for personal one-to-one chats, built on the Signal protocol and accompanied by two whitepapers covering the messaging protocol and Labyrinth, a new encrypted storage protocol. The design goals break down into eight concepts, including confidentiality in transit and in storage, user control over endpoint devices, telemetry limits and third-party scrutiny. Key challenges included keeping Messenger's password-based multi-device model, rebuilding server-dependent features (using OHAI and Anonymous Credentials for private sticker search), storing ciphertext history on servers with key rotation via Labyrinth, and supporting web clients. Group chats and Instagram DMs remain in testing.

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

The quest for software engineering knowledge.

Look:
Layout: