CERTainty: Detecting DNS Manipulation at Scale using TLS Certificates

Elisa Tsai, Deepak Kumar, Ram Sundara Raman, Gavin Li, Yael Eiger, Roya Ensafi

Introduction

DNS manipulation remains a cornerstone of internet censorship and network interference. By intercepting DNS queries and returning incorrect IP addresses, adversaries—ranging from nation-states to malicious actors—can redirect users to blockpages, "sinkholes," or surveillance servers. Historically, the research community has relied on "test vs. control" methodologies to detect these anomalies. This approach compares DNS responses from a suspected censored network against those from a known "clean" network.

However, the evolution of the modern web has rendered these traditional heuristics increasingly unreliable. The rise of Content Delivery Networks (CDNs), Anycast routing, and localized load balancing means that a single domain name may legitimately resolve to hundreds of different IP addresses depending on the user's location. Consequently, traditional detection tools often suffer from high "noise," incorrectly flagging legitimate network optimizations as evidence of censorship.

The CERTainty Methodology

To address the limitations of IP-based consistency checks, the authors propose CERTainty, a system that utilizes TLS certificates as a verifiable source of ground truth. The fundamental premise is rooted in the security model of the web: only the legitimate owner of a domain can obtain a valid TLS certificate from a trusted Certificate Authority (CA).

The CERTainty pipeline operates through five distinct stages:

  1. DNS Resolution: The system collects large-scale DNS data (leveraging platforms like Censored Planet) from open resolvers worldwide.
  2. TLS Handshake: For every resolved IP address, the system attempts a TLS connection using the requested domain name via Server Name Indication (SNI).
  3. Certificate Validation: The system checks the returned certificate against a standard root store (e.g., Mozilla’s). If the certificate is valid and matches the hostname, the DNS response is considered legitimate, regardless of whether the IP address differs from the control group.
  4. Blockpage Fingerprinting: If validation fails, the system fetches the HTML content. Using semi-automatic clustering, it identifies "blockpages"—the explicit notices served by ISPs or governments.
  5. Noise Removal: The pipeline filters out transient network errors, captive portals (such as hotel Wi-Fi logins), and misconfigured resolvers to isolate intentional interference.

Data and Scale

The study represents one of the most comprehensive longitudinal analyses of DNS manipulation to date. The researchers analyzed 2.93 billion DNS resolutions collected over a six-month period in 2022. The target list included sensitive domains from the Citizen Lab Global Test List and the top 500 domains from the Tranco 1M list.

A significant contribution of this work is the expansion of the censorship signature library. The authors introduced 226 new blockpage fingerprints, providing a more granular view of how different regimes communicate (or hide) their filtering activities.

Key Findings: The Failure of Traditional Heuristics

The most significant revelation of the CERTainty study is the staggering inaccuracy of previous state-of-the-art methods. The authors found that 72.45% of cases flagged as DNS manipulation by traditional "consistency" heuristics were, in fact, false positives. These were almost entirely caused by the complex, dynamic nature of CDN-hosted content.

Beyond reducing noise, CERTainty also improved detection depth. It successfully identified 9.70% of true manipulation cases that traditional methods missed—often instances of "covert" censorship where the connection is redirected to a non-responsive IP or a server that does not present a standard blockpage.

Global Insights and Attribution

Because TLS certificates often contain metadata about the entity serving them, CERTainty acts as an attribution tool. The researchers identified 17 different commercial DNS filtering products (such as those from Fortinet and Sophos) being used for national-level censorship in 52 countries. This highlights a "censorship export" trend, where technology developed in one region is utilized for information control in another.

The system also uncovered ISP-level DNS blocking in countries that have historically received less attention in censorship studies, including Latvia, Poland, and Nepal. This suggests that DNS-based interference is more geographically widespread than previously documented.

Limitations and Future Outlook

While CERTainty provides a significant leap in accuracy, it is not without limitations. The study primarily focused on standard web ports (80/443); censorship occurring on alternative ports may remain undetected. Furthermore, while the TLS ecosystem is robust, a sophisticated nation-state could theoretically compel a domestic CA to issue fraudulent certificates, though such an action would carry significant risk of public discovery and CA distrust.

Distinguishing between "censorship" (interference by a third party) and "geoblocking" (a site owner's decision to restrict access) also remains a challenge. However, by verifying the certificate's validity, CERTainty can at least confirm whether the response originated from the intended service provider.

The authors are currently working to integrate CERTainty’s logic into active measurement platforms like the Open Observatory of Network Interference (OONI), ensuring that the global research community can benefit from more accurate, cryptographic-based censorship detection in real-time.

Summary updated

BibTeX
@article{tsai2023certainty,
  author = {Elisa Tsai and Deepak Kumar and Ram Sundara Raman and Gavin Li and Yael Eiger and Roya Ensafi},
  title = {{CERTainty: Detecting DNS Manipulation at Scale using TLS Certificates}},
  journal = {Proc. Priv. Enhancing Technol.},
  year = {2023},
  doi = {10.56553/popets-2023-0073},
}
Figure