Skip to main content
QUICK REVIEW

[Paper Review] NXNSAttack: Recursive DNS Inefficiencies and Vulnerabilities

Yehuda Afek, Anat Bremler-Barr|arXiv (Cornell University)|May 18, 2020
Network Security and Intrusion DetectionComputer Science14 references5 citations
TL;DR

This paper introduces NXNSAttack, a novel DNS vulnerability that exploits recursive resolver inefficiencies by generating a storm of packets through unrestricted referral responses, achieving an amplification factor exceeding 1620x. The authors propose MaxFetch(k), a mitigation algorithm that prevents unnecessary proactive fetches, which they implement in BIND and validate with real-world datasets, showing no degradation in resolver performance.

ABSTRACT

This paper exposes a new vulnerability and introduces a corresponding attack, the NoneXistent Name Server Attack (NXNSAttack), that disrupts and may paralyze the DNS system, making it difficult or impossible for Internet users to access websites, web e-mail, online video chats, or any other online resource. The NXNSAttack generates a storm of packets between DNS resolvers and DNS authoritative name servers. The storm is produced by the response of resolvers to unrestricted referral response messages of authoritative name servers. The attack is significantly more destructive than NXDomain attacks (e.g., the Mirai attack): i) It reaches an amplification factor of more than 1620x on the number of packets exchanged by the recursive resolver. ii) In addition to the negative cache, the attack also saturates the 'NS' section of the resolver caches. To mitigate the attack impact, we propose an enhancement to the recursive resolver algorithm, MaxFetch(k), that prevents unnecessary proactive fetches. We implemented the MaxFetch(1) mitigation enhancement on a BIND resolver and tested it on real-world DNS query datasets. Our results show that MaxFetch(1) degrades neither the recursive resolver throughput nor its latency. Following the discovery of the attack, a responsible disclosure procedure was carried out, and several DNS vendors and public providers have issued a CVE and patched their systems.

Motivation & Objective

  • To identify and analyze a previously unknown vulnerability in the DNS system stemming from recursive resolver behavior.
  • To demonstrate how unrestricted referral responses from authoritative name servers can trigger a massive packet storm, disrupting DNS resolution.
  • To propose and evaluate MaxFetch(k), a practical algorithmic enhancement to recursive resolvers that prevents unnecessary proactive fetching of DNS records.
  • To validate the effectiveness of MaxFetch(1) in real-world conditions without degrading resolver throughput or latency.
  • To facilitate responsible disclosure and patching of the vulnerability across major DNS providers and vendors.

Proposed method

  • The attack exploits the DNS recursive resolver's tendency to proactively fetch records in response to referral responses, even when those responses are not authoritative for the queried domain.
  • NXNSAttack generates a flood of non-existent domain (NXDomain) responses that include NS records, tricking resolvers into initiating additional queries.
  • The amplification effect arises because each referral response triggers multiple downstream queries, multiplying packet volume beyond the initial attack traffic.
  • The MaxFetch(k) algorithm limits the number of proactive fetches to k records per query, with MaxFetch(1) being the proposed production-hardened variant.
  • The mitigation was implemented in a BIND resolver and evaluated using real-world DNS query datasets to measure performance impact.
  • The evaluation confirms that MaxFetch(1) prevents the packet storm while maintaining low latency and high throughput in production-like conditions.

Experimental results

Research questions

  • RQ1How can recursive DNS resolvers be exploited through seemingly legitimate referral responses to generate massive packet amplification?
  • RQ2What is the maximum amplification factor achievable through recursive resolver inefficiencies in the DNS resolution process?
  • RQ3To what extent do existing DNS caching mechanisms, including negative caching and NS section caching, contribute to or mitigate such attacks?
  • RQ4Can a lightweight algorithmic change to the recursive resolver logic prevent the attack without degrading performance?
  • RQ5How effective is MaxFetch(1) in real-world DNS traffic workloads, and does it preserve resolver throughput and latency?

Key findings

  • The NXNSAttack achieves an amplification factor exceeding 1620x in packet volume, significantly higher than traditional NXDomain attacks.
  • The attack saturates both the negative cache and the NS section of resolver caches, leading to resource exhaustion and service disruption.
  • The MaxFetch(1) mitigation algorithm prevents the packet storm without introducing measurable latency or reducing throughput in real-world DNS datasets.
  • The attack was responsibly disclosed, leading to CVE assignments and patches from multiple DNS vendors and public DNS providers.
  • The study demonstrates that recursive resolver design flaws can be exploited at scale, even without spoofing or forging packets.
  • The results validate that algorithmic hardening at the resolver level is an effective and efficient defense against protocol-level amplification attacks.

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.