Skip to content

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

Mozilla Hacks 5 min read Deep dive mediumAdept

CRLite: Fast, private, and comprehensive certificate revocation checking in Firefox

Firefox 137 enabled CRLite for all desktop users, giving comprehensive, private certificate revocation checking. Firefox downloads a compact encoding of every revoked certificate found in Certificate Transparency logs, refreshes it every 12 hours, and queries it locally, so no revocation lookup leaves the browser. The encoding averages 300 kB per day (a 4 MB snapshot every 45 days plus delta updates), about 1000x less than daily CRL downloads and half the bandwidth of Chrome's CRLSets, which cover only about 1% of revocations. The new "Clubcard" data structure, a partitioned two-level cascade of Ribbon filters, made this feasible. Dropping OCSP, which leaks browsing activity and blocks handshakes for about 100 ms at the median, cut median TLS handshake time from 56.4 ms to 39.9 ms, and OCSP for domain-validated certificates will be disabled in Firefox 142.

Assumes: TLS certificates and PKICertificate revocation (OCSP/CRL)Bloom filters

Related posts

  • Cultivating a robust and efficient quantum-safe HTTPS

    Google Online Security Blog easyNovice

    Chrome will not add post-quantum X.509 certificates to its root store and is instead pursuing Merkle Tree Certificates (MTCs), being standardized in the IETF PLANTS working group. With MTCs a CA signs a single tree head covering millions of certificates, and the browser receives only a compact inclusion proof. This keeps TLS handshakes small despite large post-quantum signatures and builds Certificate Transparency into issuance. The rollout runs in three phases: a Cloudflare feasibility study now, with X.509 fallback; CT log operators bootstrapping public MTCs in Q1 2027; and a new MTC-only Chrome Quantum-resistant Root Store in Q3 2027. The plan also proposes ACME-only issuance, modernized revocation and reproducible domain validation.

  • Using short-lived certificates to protect TLS secrets

    Meta Engineering mediumAdept

    Meta now limits TLS private key exposure on its edge to 10 days by rotating short-lived certificates daily, after rejecting CRL/OCSP revocation (latency, failure modes), remote signing from datacenters (vulnerable to backbone and datacenter outages) and delegated credentials (insufficient browser support). Certificates are issued months ahead from third-party CAs and moved from a locked-down secret store to an edge-only store just 10 days before expiry, which keeps CA issuance off the critical path and provides ready backup certs for emergency rotation. A ConfigBuilder groups certs into expiry-dated bundles, validates them, and rolls them out in stages: canary, then about 100 machines, then the full fleet after a day of baking. The OffloadService signs with both old and new keys during rotation, and caching plus staggered fetches keep daily rotation from overloading the secret store.

  • How Advanced Browsing Protection Works in Messenger

    Meta Engineering hardMaster

    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.

  • Enforcing encryption at scale

    Meta Engineering hardMaster

    Meta enforces TLS on internal service traffic with SSLWall, a host-level daemon plus eBPF programs that detect and cut off plaintext connections, chosen over L7 firewalls to keep the blast radius small and allow fine-grained rollout. It combines a tc-bpf filter, kprobes on tcp_connect and tcp_v6_destroy_sock, and BPF maps. It supports a passive monitoring mode, bypasses for BGP/SSH, and plaintext-then-TLS flows like STARTTLS and HTTP CONNECT. Lessons included handling TCP Fast Open ordering via kprobe prehandlers, BPF program size limits, and keeping CPU overhead trivial with early exits and arrays instead of LRU maps. For noncompliant long-tail apps, Transparent TLS uses a cgroup/connect6 BPF hook to redirect connect() calls to a local encrypting proxy, skipping connections that already use TLS.

  • How Meta built large-scale cryptographic monitoring

    Meta Engineering mediumAdept

    Meta logs every operation in FBCrypto, its managed cryptographic library, without sampling by aggregating identical events into per-event counts in an in-process buffer and flushing them periodically to Scribe, with data landing in Scuba and Hive. The buffer is a folly::ConcurrentHashMap shared across threads. Randomized first-flush delays smooth write spikes, and derived-key operations are rolled up under the parent key name to cut volume while still giving a pessimistic count for detecting key overuse. The resulting dataset drives key rotation, inventories of weak and quantum-vulnerable algorithms for migration, migration-safety alarms based on success rates, and fleet-wide library version tracking. Remaining challenges include Scribe and Scuba capacity and flushing safely at shutdown.

The quest for software engineering knowledge.

Look:
Layout: