Abstract
Modern botnets utilize Domain Generation Algorithms (DGAs) to maintain resilient command-and-control (C&C) infrastructures. This paper proposes a detection methodology that shifts focus from the lexical properties of domain names to the behavioral patterns of DNS queries. By analyzing "NXDomain" (non-existent domain) traffic and identifying temporal synchronization among infected hosts, the system can accurately cluster and flag malicious activity.
Introduction
To evade static blacklists, botnets employ DGAs to generate thousands of potential C&C domains, only a few of which are registered. While traditional detection methods analyze the alphanumeric randomness of these strings, attackers have evolved to produce more "human-like" names. This research addresses the challenge by monitoring recursive DNS (RDNS) traffic for the distinct behavioral footprints left by these "domain-fluxing" botnets.
Methodology
The proposed detection system follows a structured pipeline designed to handle high-volume network traffic efficiently.
- Data Collection & Filtering: DNS traffic is captured from RDNS servers. A whitelist (e.g., Alexa Top 10,000) is applied to filter out approximately 80% of legitimate traffic, reducing computational load.
- NXDomain Analysis: The system specifically targets NXDomain responses. Because bots attempt to connect to many unregistered domains before finding an active one, they generate a significant volume of failed queries.
- Clustering: Domains are grouped based on their second-level domain (2LD) and resolution history.
- Similarity Scoring: The "Distribute(D)" metric measures the temporal concentration of domain queries. A threshold of 0.9 is used to distinguish algorithmic triggers from human browsing patterns.
Temporal Synchronization and Behavioral Insights
The core insight of this work is that bots within the same network exhibit highly synchronized behavior. Because they often share the same DGA "seed" (such as the current date), they generate and query the same sets of domains simultaneously.
As shown in the figure above, legitimate domains (*) are queried sporadically by various IPs over time. In contrast, DGA domains (#) show a distinct vertical alignment, indicating that multiple IPs are querying the domain within the exact same short time window. This temporal fingerprint is statistically improbable for human-initiated traffic.
Experimental Results
The system was tested on live DNS traffic from an internet operator in China, processing roughly 150,000 packets per second. Over a 15-day period, the "protosystem" successfully identified several active DGA clusters, including domains like zscdw.com and xcder.com. Cross-referencing with established blacklists from McAfee confirmed the high accuracy of the detection threshold.
Conclusion and Future Work
This behavioral approach provides a robust defense against evolving DGAs that mimic human naming conventions. However, limitations remain, such as the observation time required for high-confidence confirmation and the potential for "slow" botnets to evade detection by staggering their queries. Future research will focus on reducing confirmation delays and adapting clustering algorithms for more sophisticated, low-frequency bot behaviors.
Summary updated