TL;DR
This paper introduces CharBot, a novel and surprisingly simple Domain Generation Algorithm (DGA) that effectively evades state-of-the-art machine learning classifiers designed to detect malware command and control (C&C) infrastructure. CharBot's simplicity and effectiveness highlight a critical vulnerability in current DGA detection methods that rely solely on domain name strings, suggesting the need for richer contextual information.
What Problem Does This Paper Address?
Malware often uses DGAs to generate a dynamic list of domain names for C&C communication, making it difficult for security systems to track and block them. While machine learning classifiers have been developed to detect these DGA-generated domains in real-time, these systems are often trained on specific datasets and may be vulnerable to adversarial attacks. The core problem this paper addresses is the inherent weakness of DGA classifiers that rely solely on the domain name string for detection, and how easily they can be fooled by carefully crafted, yet simple, adversarial examples. The authors aim to demonstrate this vulnerability and propose that future DGA detection systems need to incorporate more than just the domain name itself.
Methods
The paper introduces CharBot, a character-based DGA. Its core mechanism is remarkably straightforward: it takes a list of legitimate domain names (specifically, from the Alexa top domains) and randomly modifies two characters within the second-level domain (SLD). This process is designed to produce domain names that are statistically very similar to benign domains, making them hard for classifiers to distinguish. CharBot is a "black-box" attack, meaning it doesn't require any knowledge of the target classifier's architecture or training data. The authors also explore the impact of retraining classifiers with CharBot samples, finding it to be an insufficient defense.
Datasets
The experiments utilize the following datasets:
- Alexa: The top 1 million unique domain names, used as a source of benign domains.
- Bambenek: A collection of 1 million unique DGA domain names from specific malware families observed in real traffic.
- Qname: 1 million unique domain names originating from a real-time stream of passive DNS data, weakly labeled as benign using heuristic filtering rules.
The paper also uses adversarial datasets generated by CharBot, DeepDGA (a state-of-the-art generative DGA), and DeceptionDGA for testing the robustness of the classifiers.
Key Insights and Ideas
- Simplicity is Key: The most striking insight is that a very simple DGA like CharBot, which only makes minor character substitutions, can be highly effective against sophisticated ML models. This challenges the notion that advanced generative models are necessary for effective DGA evasion.
- Vulnerability of String-Based Detection: The paper strongly suggests that any DGA classifier relying solely on the domain name string is inherently vulnerable. CharBot's success stems from its generated domains having statistical properties too close to benign domains.
- Transferability of Attacks: CharBot attacks are shown to be transferable across different models and datasets, indicating that the vulnerability is not specific to a particular classifier or training data.
- Retraining is Not Enough: Simply retraining existing DGA classifiers with CharBot samples does not provide a robust defense, as CharBot can be easily adapted.
- Need for Side Information: The findings strongly advocate for the necessity of incorporating additional information beyond the domain name string (e.g., IP addresses, query patterns) for effective DGA detection.
Key Results
- CharBot generated domains were almost always unregistered, making them suitable for C&C.
- CharBot largely went undetected by state-of-the-art DGA classifiers (FANCI, LSTM.MI, and B-RF), even when these classifiers were retrained with CharBot samples.
- The paper demonstrates that CharBot can fool classifiers trained on different datasets (Alexa vs. Qname), highlighting the transferability of the attack.
- While LSTM.MI showed some ability to detect CharBot at higher false positive rates (FPR), at low FPRs (0.1% and 1%), detection rates were insufficient for practical use.
- CharBot's implementation is very small (17,983 bytes of Python code), making it easily embeddable in malware, unlike larger deep learning-based DGAs.
Limitations and Future Work
- Limitations:
- The paper acknowledges that while CharBot is effective, the Alexa dataset used for generating benign domains might contain some malicious entries.
- The detection rates for CharBot, even with some models, remain low at practical low FPRs.
- The size of the Alexa dataset (1 million domains) could be a practical consideration for embedding in malware, though it can be downloaded on the fly.
- Future Work:
- Exploring more complex classification models to find better separations between benign and adversarial domains.
- Investigating white-box adversarial training, where the attack adapts to the specific model parameters.
- The authors strongly recommend focusing research on DGA classifiers that utilize side information (e.g., IP addresses, temporal access patterns) rather than relying solely on domain name strings.
Summary updated