[Paper Review] Encrypted DNS --> Privacy? A Traffic Analysis Perspective.
This paper demonstrates that encrypted DNS (DoH/DoT) does not fully protect user privacy from traffic analysis attacks. By introducing a novel set of local traffic features tailored to DNS's bursty, chatty nature, the authors achieve high-accuracy website fingerprinting with 124× less data than required for HTTPS attacks, showing that censorship and surveillance remain feasible even on encrypted DNS traffic.
Virtually every connection to an Internet service is preceded by a DNS lookup which is performed without any traffic-level protection, thus enabling manipulation, redirection, surveillance, and censorship. To address these issues, large organizations such as Google and Cloudflare are deploying recently standardized protocols that encrypt DNS traffic between end users and recursive resolvers such as DNS-over-TLS (DoT) and DNS-over-HTTPS (DoH). In this paper, we examine whether encrypting DNS traffic can protect users from traffic analysis-based monitoring and censoring. We propose a novel feature set to perform the attacks, as those used to attack HTTPS or Tor traffic are not suitable for DNS' characteristics. We show that traffic analysis enables the identification of domains with high accuracy in closed and open world settings, using 124 times less data than attacks on HTTPS flows. We find that factors such as location, resolver, platform, or client do mitigate the attacks performance but they are far from completely stopping them. Our results indicate that DNS-based censorship is still possible on encrypted DNS traffic. In fact, we demonstrate that the standardized padding schemes are not effective. Yet, Tor -- which does not effectively mitigate traffic analysis attacks on web traffic -- is a good defense against DoH traffic analysis.
Motivation & Objective
- To investigate whether encrypted DNS protocols like DoH and DoT truly protect user privacy from traffic analysis.
- To identify the limitations of existing traffic analysis defenses—such as EDNS0 padding and Tor—against encrypted DNS.
- To evaluate the feasibility of DNS-based censorship on encrypted traffic, particularly through blocking the first DoH query.
- To develop a new feature set effective for fingerprinting websites from encrypted DNS traffic, given the unique characteristics of DNS compared to web traffic.
- To assess the impact of environmental factors (e.g., client, platform, resolver, location) on attack performance and to explore mitigation strategies.
Proposed method
- Design a novel set of traffic features focused on local, per-flow characteristics such as packet inter-arrival times, sizes, and sequence patterns, specifically tailored to the bursty and chatty nature of DNS traffic.
- Train machine learning models (e.g., random forests) on encrypted DNS traces collected from diverse clients, platforms, resolvers, and geographic locations to identify requested domains.
- Evaluate attack performance in both closed-world (known environment) and open-world (unknown environment) settings, including cross-environment inference.
- Measure the effectiveness of standard defenses: EDNS0 padding (as implemented by Cloudflare and Google) and Tor as a transport layer.
- Quantify collateral damage in DNS-based censorship by analyzing the impact of blocking the first DoH query on non-blacklisted domains.
- Use real-world DoH traces from public resolvers (e.g., Cloudflare, Google) and synthetic workloads to simulate and validate attacks across different configurations.
Experimental results
Research questions
- RQ1Can traffic analysis attacks accurately identify websites from encrypted DoH traffic despite encryption?
- RQ2How does the performance of traffic analysis attacks on encrypted DNS compare to those on HTTPS, and what is the data efficiency gain?
- RQ3To what extent do environmental factors such as client type, platform, resolver, or geographic location affect attack success rates?
- RQ4Are standardized padding mechanisms like EDNS0 effective in mitigating traffic analysis attacks on encrypted DNS?
- RQ5Can Tor or other constant-size packetization techniques effectively defend against DoH traffic analysis, and how do they compare to traditional defenses?
Key findings
- The proposed feature set enables website fingerprinting on encrypted DoH traffic with 124 times less data than required for state-of-the-art HTTPS traffic analysis attacks.
- Traffic analysis attacks achieve high accuracy (over 90% in some settings) in identifying requested websites, even when the adversary does not know the client environment a priori.
- Environmental mismatches (e.g., training on one client, attacking on another) reduce attack performance, but the proposed features allow the adversary to infer and adapt to these differences, maintaining high accuracy.
- Standardized EDNS0 padding is ineffective at preventing traffic analysis attacks unless the padding overhead is very large, which is impractical in real-world deployments.
- Tor provides strong protection against DoH traffic analysis, outperforming both EDNS0 padding and other defenses, despite offering limited protection against web traffic fingerprinting.
- Blocking the first DoH query for a domain can cause collateral damage affecting up to 8.6% of the top 1 million websites, with the median rank of blocked sites varying significantly by country, indicating that such censorship strategies can be both effective and costly.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.