Technology Deep Dive: Building a Faster ORAM Layer for Enclaves
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.
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.
- Private analytics via zero-trust aggregation
Google Research hardMasterGoogle's private analytics service now layers a new lattice-based, one-shot secure aggregation protocol on top of TEE execution, so individual device data is never decrypted in server memory even if the enclave is compromised by side-channel attacks. Clients send a single message whose ciphertexts aggregate both the values and the encryption keys; small rotating client committees hold hints that unlock only the aggregate, which is masked with differential privacy noise. TEE attestation gives verifiable proof that the published aggregation code is what actually runs. The system is being used to measure real-world effectiveness of Android SafetyCore's on-device safety classifiers without exposing user content.
- Introducing Automatic Key Verification
Signal mediumAdept
Signal's automatic key verification uses key transparency to confirm that the binding between a phone number or username and its public key is globally consistent, giving the same protection against a compromised directory as comparing safety numbers, without meeting in person. The design is an append-only log of key changes. Each entry has a sorted index snapshot, which lets clients binary-search for a contact's key in about 30 lookups over a billion entries. Key owners monitor the same entries to confirm their own key is listed correctly. Third-party auditors (Cloudflare and Trail of Bits) sign each log entry once, which keeps the directory operator from showing different views to different users.
- Building end-to-end security for Messenger
Meta Engineering easyNoviceMessenger 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.
- PrivacyLib: Privacy Controls at the Data Access Boundary
Meta Engineering mediumAdeptPrivacyLib 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.