[Paper Review] Efficient Distinct Heavy Hitters for DNS DDoS Attack Detection
This paper proposes novel, practical fixed-size algorithms—Distinct Weighted Sampling (dwsHH) and Combined Weighted Sampling (cwsHH)—for detecting distinct and combined heavy hitters in network traffic streams, enabling efficient detection of randomized DNS DDoS attacks. The methods use sampling-based approximate distinct counters to achieve optimal O(ε⁻¹) space complexity with high accuracy in cardinality estimation and detection, outperforming prior Bloom filter and linear-sketch approaches in both theory and practice.
Motivated by a recent new type of randomized Distributed Denial of Service (DDoS) attacks on the Domain Name Service (DNS), we develop novel and efficient distinct heavy hitters algorithms and build an attack identification system that uses our algorithms. Heavy hitter detection in streams is a fundamental problem with many applications, including detecting certain DDoS attacks and anomalies. A (classic) heavy hitter (HH) in a stream of elements is a key (e.g., the domain of a query) which appears in many elements (e.g., requests). When stream elements consist of a pairs, () a distinct heavy hitter (dhh) is a key that is paired with a large number of different subkeys. Our dHH algorithms are considerably more practical than previous algorithms. Specifically the new fixed-size algorithms are simple to code and with asymptotically optimal space accuracy tradeoffs. In addition we introduce a new measure, a combined heavy hitter (cHH), which is a key with a large combination of distinct and classic weights. Efficient algorithms are also presented for cHH detection. Finally, we perform extensive experimental evaluation on real DNS attack traces, demonstrating the effectiveness of both our algorithms and our DNS malicious queries identification system.
Motivation & Objective
- To address the challenge of detecting randomized DNS DDoS attacks that exploit non-existent subdomains to overwhelm DNS servers.
- To design practical, fixed-size streaming algorithms for distinct heavy hitter (dHH) and combined heavy hitter (cHH) detection with optimal space-accuracy tradeoffs.
- To improve upon existing methods—especially Bloom filters and linear-sketch based counters—by using sampling-based distinct counters for better accuracy and lower memory overhead.
- To enable real-time detection of malicious DNS query patterns by combining classic heavy hitter detection with distinct subkey counting.
- To build a deployable system for identifying RSDDoS attacks using the proposed dwsHH and cwsHH algorithms, validated on real attack traces.
Proposed method
- Proposes the Distinct Weighted Sampling (dwsHH) algorithm, a fixed-size, sampling-based method for dHH detection that maintains O(ε⁻¹) space complexity and provides accurate cardinality estimates for each key.
- Introduces the Combined Weighted Sampling (cwsHH) algorithm, the first constant-memory method to jointly detect keys with high frequency and high distinct subkey counts using a weighted combination of classic and distinct weights.
- Employs weighted sampling techniques to maintain a representative sample of (key, subkey) pairs, enabling estimation of both frequency and distinct subkey counts under strict memory constraints.
- Uses a probabilistic framework to ensure keys with weight ≥ ε of total weight are detected with high probability, leveraging known analysis from weighted sampling in streaming.
- Designs a system that applies dwsHH and cwsHH to real DNS traffic, identifying attack signatures such as high-volume queries to a single domain with many unique subdomains.
- Enhances detection accuracy using peacetime profiling to distinguish normal from anomalous behavior, reducing false positives in dynamic environments.
Experimental results
Research questions
- RQ1Can a fixed-size, practical algorithm detect distinct heavy hitters in network streams with optimal space complexity and high cardinality estimation accuracy?
- RQ2How can combined heavy hitter detection be efficiently modeled to capture both high-frequency and high-diversity subkey patterns in real-time?
- RQ3Can sampling-based distinct counters outperform Bloom filters and linear-sketch based counters in both theoretical bounds and practical performance for dHH detection?
- RQ4To what extent can the proposed dwsHH and cwsHH algorithms detect randomized DNS DDoS attacks on real traffic traces?
- RQ5How does the integration of peacetime profiling improve the detection accuracy of the system in identifying malicious DNS query patterns?
Key findings
- The dwsHH algorithm achieves O(ε⁻¹) space complexity with significantly higher cardinality estimation accuracy than Locher’s linear-sketch based method, which suffers from quadratic space dependence on the threshold.
- The cwsHH algorithm is the first constant-memory solution for combined heavy hitter detection, effectively capturing both high-frequency and high-diversity subkey patterns in a single structure.
- Experimental evaluation on real DNS attack traces confirms that the proposed algorithms detect attack patterns earlier and more accurately than prior approaches, especially in identifying randomized subdomain flooding.
- The sampling-based approach outperforms Bloom filter-based schemes (e.g., Superspreaders) in both memory efficiency and ability to distinguish between heavy and very heavy keys, as saturated Bloom filters lose this discrimination.
- The system built on dwsHH and cwsHH successfully identifies RSDDoS attacks by detecting domains with high query volume and a large number of unique subdomains, even under spoofed or distributed sources.
- The integration of peacetime profiling reduces false positives, demonstrating the system’s robustness in real-world operational environments.
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.