Augmenting Rule-based DNS Censorship Detection at Scale with Machine Learning

Jacob Brown, Xi Jiang, Van Tran, Arjun Nitin Bhagoji, Nguyen Phong Hoang +3 more
2/3/2023
cs.LGcs.AIcs.CY

No official code found. Best implementation: noise-lab/automated-dns-censorship (4 stars, MIT, last commit 2023-05-28).

Abstract

The proliferation of global censorship has led to the development of a plethora of measurement platforms to monitor and expose it. Censorship of the domain name system (DNS) is a key mechanism used across different countries. It is currently detected by applying heuristics to samples of DNS queries and responses (probes) for specific destinations. These heuristics, however, are both platform-specific and have been found to be brittle when censors change their blocking behavior, necessitating a more reliable automated process for detecting censorship. In this paper, we explore how machine learning (ML) models can (1) help streamline the detection process, (2) improve the potential of using large-scale datasets for censorship detection, and (3) discover new censorship instances and blocking signatures missed by existing heuristic methods. Our study shows that supervised models, trained using expert-derived labels on instances of known anomalies and possible censorship, can learn the detection heuristics employed by different measurement platforms. More crucially, we find that unsupervised models, trained solely on uncensored instances, can identify new instances and variations of censorship missed by existing heuristics. Moreover, both methods demonstrate the capability to uncover a substantial number of new DNS blocking signatures, i.e., injected fake IP addresses overlooked by existing heuristics. These results are underpinned by an important methodological finding: comparing the outputs of models trained using the same probes but with labels arising from independent processes allows us to more reliably detect cases of censorship in the absence of ground-truth labels of censorship.

View on arXivView PDF

Code Implementations(1)

MIT
40Jul 11, 20223 years agoMIT

Similar Papers

Cite this paper

@article{brown2023augmenting,
  title  = {Augmenting Rule-based DNS Censorship Detection at Scale with Machine Learning},
  author = {Jacob Brown and Xi Jiang and Van Tran and Arjun Nitin Bhagoji and Nguyen Phong Hoang and Nick Feamster and Prateek Mittal and Vinod Yegneswaran},
  year   = {2023},
  eprint = {2302.02031},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2302.02031v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2302.02031.svg)](https://codeofpaper.com/paper/2302.02031)

Discussion