Skip to main content
QUICK REVIEW

[Paper Review] Padding Ain't Enough: Assessing the Privacy Guarantees of Encrypted DNS

Jonas Bushart, Christian Rossow|arXiv (Cornell University)|Jul 2, 2019
Internet Traffic Analysis and Secure E-votingComputer Science36 references24 citations
TL;DR

This paper demonstrates that DNS over TLS (DoT) and DNS over HTTPS (DoH) with standard message padding are still vulnerable to traffic analysis attacks. By analyzing sequences of encrypted and padded DNS queries—including both size and timing patterns—the authors show that an adversary can deanonymize users and identify visited websites with high accuracy, undermining the privacy guarantees of current padding practices.

ABSTRACT

DNS over TLS (DoT) and DNS over HTTPS (DoH) encrypt DNS to guard user privacy by hiding DNS resolutions from passive adversaries. Yet, past attacks have shown that encrypted DNS is still sensitive to traffic analysis. As a consequence, RFC 8467 proposes to pad messages prior to encryption, which heavily reduces the characteristics of encrypted traffic. In this paper, we show that padding alone is insufficient to counter DNS traffic analysis. We propose a novel traffic analysis method that combines size and timing information to infer the websites a user visits purely based on encrypted and padded DNS traces. To this end, we model DNS sequences that capture the complexity of websites that usually trigger dozens of DNS resolutions instead of just a single DNS transaction. A closed world evaluation based on the Alexa top-10k websites reveals that attackers can deanonymize at least half of the test traces in 80.2% of all websites, and even correctly label all traces for 32.0% of the websites. Our findings undermine the privacy goals of state-of-the-art message padding strategies in DoT/DoH. We conclude by showing that successful mitigations to such attacks have to remove the entropy of inter-arrival timings between query responses.

Motivation & Objective

  • To investigate whether message padding in DoT/DoH is sufficient to prevent traffic analysis attacks.
  • To evaluate the privacy guarantees of current padding strategies in encrypted DNS protocols.
  • To assess whether sequence-level analysis of DNS traffic (including timing and size) can deanonymize users.
  • To develop and evaluate a k-NN classifier that uses DNS transaction sequences to infer visited websites.
  • To demonstrate that existing countermeasures are insufficient against advanced traffic analysis in encrypted DNS.

Proposed method

  • The authors model DNS resolution sequences triggered by websites, capturing both message sizes and inter-arrival times between queries.
  • They propose a k-Nearest Neighbors (k-NN) classifier to match observed DNS sequences to known website profiles.
  • The classifier uses statistical features derived from DNS message size distributions and timing patterns.
  • A closed-world evaluation is conducted using DNS traces from the Alexa top-10k websites to train and test the classifier.
  • The method evaluates both full sequences and partially cached sequences to assess robustness.
  • An open-world evaluation measures false positive rates, showing that the attack remains effective even under realistic threat models.

Experimental results

Research questions

  • RQ1Can an adversary deanonymize users by analyzing only the size and timing of encrypted and padded DNS queries?
  • RQ2To what extent does sequence-level analysis of DNS transactions improve website fingerprinting compared to single-transaction analysis?
  • RQ3How effective is a k-NN classifier in identifying websites based on encrypted and padded DNS sequences?
  • RQ4What is the impact of DNS caching on the success rate of such traffic analysis attacks?
  • RQ5Can the attack maintain high accuracy while limiting false positives in an open-world setting?

Key findings

  • An adversary can deanonymize at least 80.2% of test traces for 5 out of 10 websites in the Alexa top-10k list using only encrypted and padded DNS sequences.
  • The classifier correctly labels all traces for 32.0% of the websites, indicating high accuracy in a subset of cases.
  • Even when excluding cached DNS records, the classifier maintains high accuracy if partially cached sequences are included in the training data.
  • The false positive rate can be limited to 10% while retaining a true positive rate of 40%, showing the attack is scalable and practical.
  • Timing information between DNS queries provides higher entropy than message size alone and is critical for successful classification.
  • The results demonstrate that current padding strategies in DoT/DoH are insufficient to prevent traffic analysis, undermining their privacy guarantees.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.