Skip to content

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

Meta Engineering 6 min read Deep dive mediumAdept

How WhatsApp enables multi-device capability

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.

Assumes: end-to-end encryption basicsSignal Protocol

Related posts

  • How Device Verification protects your WhatsApp account

    Meta Engineering easyNovice

    WhatsApp's Device Verification defends against account takeover when on-device malware, often bundled in unofficial clients, steals the authentication key that lets a client reconnect without credentials. It adds a security-token on the device that is refreshed whenever offline messages are retrieved, a nonce identifying message-retrieval connections, and an authentication-challenge sent as an invisible ping on suspicious connections. A challenge answered from a different device, or left unanswered after retries, gets the connection blocked while the legitimate user keeps working uninterrupted. It is fully rolled out on Android and rolling out to iOS.

  • Making messaging interoperability with third parties safe for users in Europe

    Meta Engineering mediumAdept

    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.

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

The quest for software engineering knowledge.

Look:
Layout: