Abstract
This paper introduces a host-centric approach to detecting botnet Command and Control (C2) servers by analyzing the distributional "shape" of network traffic. By utilizing quantiles of NetFlow data as features in a stacked ensemble of machine learning models, the researchers achieved a high-accuracy detection rate (0.95 AUC). This method shifts the focus from individual compromised devices to the central malicious host, effectively identifying traffic signatures that are often obscured in traditional device-centric monitoring.
Introduction: The Shift to Host-Centric Detection
Botnets—networks of compromised devices controlled by a central Command and Control (C2) server—remain a persistent threat in cybersecurity. Traditional detection methods are typically device-centric, focusing on whether an individual device (a "bot") is behaving strangely. However, modern malware often employs "low and slow" tactics, where a single bot generates minimal traffic, making it difficult to distinguish from legitimate background activity.
The authors propose a shift to host-centric analysis. By focusing on the external IP addresses that internal devices connect to, the researchers can observe the aggregate traffic signature of a C2 server communicating with thousands of bots. This collective pattern is much more distinct and harder for attackers to hide than the sporadic activity seen on a single infected device.
Methodology: Distributional Features and Ensemble Modelling
The core innovation of this research lies in the use of Distributional Features derived from NetFlow data. While NetFlow is the industry standard for network monitoring, it is often low in detail, providing only basic attributes like byte counts and timestamps. The researchers developed a statistical pipeline to transform this raw data into high-dimensional feature vectors.
Feature Engineering
Instead of relying on simple averages (e.g., mean bytes per flow), the team calculated 20 quantiles (from 5% to 100%) for variables such as packets, bytes, and packet-to-byte ratios. This approach captures the entire distribution of traffic behavior rather than just a single summary point. Additionally, they engineered features to detect "beaconing"—the routine, periodic communications from infected devices checking in with the C2 server.
The Detection Pipeline
The researchers employed a "Super Learner" stacked ensemble strategy. Six base models—including Random Forest, Gradient Boosting (GBM), XGBoost, and LASSO—were trained on real-world data from a major telecommunications provider. Their predictions were then combined using a Generalized Linear Model (GLM) to produce a final classification.
Key Results and Insights
The inclusion of distributional features led to a significant performance boost across almost all model types. The stacked ensemble achieved an average AUC of 0.95 and a sensitivity of 0.83.
- The Power of the Tails: A critical finding was that the "tails" of the distribution—the very low and very high quantiles—were the most informative. 14 of the top 20 most important features were outside the inter-quartile range (below the 25th or above the 75th percentile).
- Robustness: Quantile-based features proved more stable than standard deviation for IPs with a smaller number of observations, allowing for the detection of "low-profile" botnets.
- Efficiency: These variables are computationally cheaper to calculate than bidirectional volume tracking, making the approach scalable for massive carrier-grade networks.
Conclusion and Future Work
This research demonstrates that host-centric modelling using distributional data provides a powerful and scalable defense against botnets. While the results are promising, the authors acknowledge the need for further exploration into deep learning architectures and the robustness of these models against adversarial "traffic morphing" techniques. Future work will also focus on training family-specific models to reveal granular signatures for specific malware families like TrickBot or Mirai.
Summary updated