Building end-to-end security for Messenger
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.
Related posts
- How Advanced Browsing Protection Works in Messenger
Meta Engineering hardMasterAdvanced Browsing Protection checks links clicked in end-to-end encrypted Messenger chats against a large, frequently updated blocklist while revealing as little as possible about the URL to Meta. It builds on bucketed private information retrieval with an OPRF. A server-generated ruleset decides how many path segments to hash per domain, which keeps buckets balanced and preserves prefix matching, and requests and buckets are padded so their sizes leak nothing. The bucket identifier is protected further by an AMD SEV-SNP confidential VM with attestation and transparency-log signatures, Path ORAM or full scans to hide memory access patterns, and Oblivious HTTP through a third-party proxy to strip client identifiers.
- Key Transparency Comes to Messenger
Meta Engineering easyNoviceMessenger 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.
- A Synchronized Start for Linked Devices
Signal mediumAdept
Signal now lets users transfer message history and the last 45 days of media when linking a new Desktop or iPad, without exposing data to the server. Linking starts with a QR code containing a temporary provisioning address and a Curve25519 public key. The primary device replies with an encrypted provisioning message carrying shared keys, a one-time linking token, and a new one-time 256-bit AES key that encrypts a compressed history archive uploaded as an attachment. Media isn't re-uploaded: the archive holds pointers to existing encrypted attachments, which the server already deletes 45 days after upload, so the archive is mostly text and compresses to a few megabytes.
- Making messaging interoperability with third parties safe for users in Europe
Meta Engineering mediumAdeptTo 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.
- How WhatsApp enables multi-device capability
Meta Engineering mediumAdeptWhatsApp'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.