Abstract
The Web PKI relies on "root stores" to decide which Certificate Authorities (CAs) to trust. However, most platforms, such as Android and Debian, lag months behind major browsers in updating these lists. This paper introduces General Certificate Constraints (GCCs)—portable Datalog programs for precise, partial CA distrust—and Root-Store Feeds (RSFs) to distribute security updates instantly across all devices, ensuring no root store is left vulnerable.
Introduction
The security of the modern web hinges on root certificate stores. When a CA misbehaves (e.g., the Symantec or WoSign incidents), primary operators like Mozilla and Google respond rapidly. Yet, the current ecosystem suffers from two critical failures:
- Update Lag: Most operating systems (derivative stores) manually track Mozilla’s decisions. Research indicates these platforms are often months behind, leaving a significant window where compromised CAs remain trusted by the OS even after browsers have blocked them.
- Imprecise Trust Logic: Browsers often implement "partial distrust"—trusting a CA only for specific domains or dates—via hard-coded logic in the browser source code. Derivative stores typically manage simple certificate folders and can only make binary (all-or-nothing) trust decisions. This lack of nuance forces a choice between user risk and breaking web compatibility.
Proposed Architecture
The authors propose a two-part architectural shift to modernize root store management and eliminate the update gap.
General Certificate Constraints (GCCs)
Instead of hard-coding trust logic into browser engines, the authors propose attaching a small, declarative program to each root certificate. They utilize Datalog for these programs due to its ease of reasoning, guaranteed termination, and lack of dangerous I/O capabilities. These GCCs can inspect certificate fields (names, dates, hashes) during the validation process, enabling portable and precise security policies across different operating systems and libraries.
Root-Store Feeds (RSFs)
To solve the distribution problem, the paper proposes a standardized mechanism called Root-Store Feeds. Primary stores (like Mozilla) would publish signed snapshots containing certificate updates and their associated GCCs. Derivative stores would run a background daemon to poll these feeds, updating the system's trust state in near real-time.
Methodology and Evaluation
The authors evaluated their proposal using several datasets, including Mozilla’s NSS Root Store (as of July 2022) and Certificate Transparency (CT) logs covering 140 root and 776 intermediate certificates. They also reviewed a decade of CA mis-issuance events to model how GCCs would have handled them.
Key Findings
- Performance: Converting a certificate into Datalog statements takes approximately 2.4ms. While this adds overhead to the TLS handshake, it is considered acceptable for the resulting security improvements.
- Policy Gap: A scan of CT logs revealed that zero out of 140 root certificates currently use name constraints, and only five use path-length constraints. This underscores the lack of built-in protection and the necessity of external constraints like GCCs.
- Feasibility: Complex historical distrust policies, such as the 2018 Symantec phase-out, were successfully expressed as concise Datalog programs.
Discussion and Future Work
Transitioning to this model requires overcoming ecosystem inertia, specifically changes to major TLS libraries (OpenSSL, BoringSSL) and OS architectures. Furthermore, the security of the RSF itself is paramount; the authors suggest signing feeds with keys from coordinating bodies like ICANN to prevent attackers from manipulating the trust state.
By moving from hard-coded C++ to declarative Datalog, security policies become portable and proactive. This shift ensures that no root store is left vulnerable to known CA compromises, regardless of the platform's update cycle.
Summary updated