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

How Advanced Browsing Protection Works in Messenger

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

Assumes: private information retrievaloblivious pseudorandom functionstrusted execution environmentscryptographic hashing

Related posts

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

  • Private Browsing 2.0

    WebKit mediumAdept

    Safari 17.0–17.5 extends Private Browsing well beyond ephemeral storage, adding link tracking protection that strips known click-level tracking query parameters before navigation and hides URL query strings, fragments and cross-site referrers from third-party scripts. Other additions include blocking network loads to trackers flagged by both DuckDuckGo and EasyPrivacy (including CNAME- and IP-cloaked ones), Oblivious DNS over HTTPS, proxying of unencrypted HTTP, per-tab iCloud Private Relay sessions, and extensions with site access off by default. For fingerprinting, the approach is to make fingerprints unique per website and regenerate them on every fresh start, using multi-hop proxies, fewer fingerprintable APIs and small noise injection. Partitioned SessionStorage and blob URLs ship in all modes, Web AdAttributionKit keeps tab-scoped attribution working, and users can reload a site with reduced protections if it breaks.

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

  • Technology Deep Dive: Building a Faster ORAM Layer for Enclaves

    Signal mediumAdept

    Signal replaced linear-scan oblivious memory access in its SGX enclaves with a Path ORAM layer, so contact discovery can run efficient algorithms like binary search without leaking which phone numbers are looked up through RAM access patterns. Encrypted enclave memory alone isn't enough, because the order and location of memory accesses still reveal data. Path ORAM stores fixed-size blocks in a binary tree. Each read pulls an entire root-to-leaf path into a small stash, linearly scans the stash, remaps the block to a uniformly random leaf, and writes the path back. As a result, repeated lookups never produce the same access pattern. The change cuts CPU cost compared with scanning a billion entries and lays groundwork for usernames and phone number privacy.

  • PrivacyLib: Privacy Controls at the Data Access Boundary

    Meta Engineering mediumAdept

    PrivacyLib is a common library embedded in the clients of hundreds of Meta data and processing systems that enforces and observes privacy requirements at the point of data access. Each system integrates once by mapping its native APIs to five common operations (read, write, RPC, request entry, inline execution). New requirements then ship as enforcing modules such as Policy Zones or observing modules such as Privacy Probes and Agent Observability, taking days per system instead of months. To sustain billions of checks per second, requirements are compiled at build time, checks are answered from per-request and per-host caches, telemetry is deduplicated with Bloom filters, and signed tokens let ServiceRouter verify raw RPCs that passed client-side checks. A walkthrough shows Logger blocking writes of messaging metadata to tables that lack the right annotation.

The quest for software engineering knowledge.

Look:
Layout: