Skip to main content
QUICK REVIEW

[Paper Review] DomainGAN: Generating Adversarial Examples to Attack Domain Generation Algorithm Classifiers

Isaac Corley, Jonathan Lwowski|arXiv (Cornell University)|Nov 14, 2019
Advanced Malware Detection TechniquesComputer Science8 citations
TL;DR

This paper proposes DomainGAN, a GAN-based approach to generate adversarial domains that evade state-of-the-art DGA classifiers by mimicking benign domain characteristics. Using three GAN variants—Wasserstein GAN with Gradient Penalty (WGANGP) outperforming GAN and LSGAN—the method generates domains with lower collision rates and higher evasion rates, making WGANGP the most effective for offensive use due to superior usability and evasion capability.

ABSTRACT

Domain Generation Algorithms (DGAs) are frequently used to generate numerous domains for use by botnets. These domains are often utilized as rendezvous points for servers that malware has command and control over. There are many algorithms that are used to generate domains, however many of these algorithms are simplistic and easily detected by traditional machine learning techniques. In this paper, three variants of Generative Adversarial Networks (GANs) are optimized to generate domains which have similar characteristics of benign domains, resulting in domains which greatly evade several state-of-the-art deep learning based DGA classifiers. We additionally provide a detailed analysis into offensive usability for each variant with respect to repeated and existing domain collisions. Finally, we fine-tune the state-of-the-art DGA classifiers by adding GAN generated samples to their original training datasets and analyze the changes in performance. Our results conclude that GAN based DGAs are superior in evading DGA classifiers in comparison to traditional DGAs, and of the variants, the Wasserstein GAN with Gradient Penalty (WGANGP) is the highest performing DGA for uses both offensively and defensively.

Motivation & Objective

  • To develop a GAN-based Domain Generation Algorithm (DGA) that evades state-of-the-art deep learning DGA classifiers by generating domains indistinguishable from benign ones.
  • To evaluate the offensive usability of GAN-generated domains by analyzing domain length, n-gram distribution, and collision rates (repeated and existing domain collisions).
  • To compare the performance of three GAN variants—GAN, LSGAN, and WGANGP—on evasion accuracy and practical usability for botnet C2 operations.
  • To assess the defensive implications by fine-tuning existing DGA classifiers with GAN-generated adversarial samples and measuring performance degradation.
  • To explore architectural and loss function improvements to enhance the quality and usability of GAN-generated domains.

Proposed method

  • Trained three GAN variants—Standard GAN, LSGAN, and WGANGP—on the Alexa Top 1 Million dataset to learn the distribution of real benign domains.
  • Used a conditional generator with noise vectors to produce domain strings, ensuring deterministic output for C2 coordination.
  • Employed a discriminator network to distinguish between real benign domains and GAN-generated ones, optimizing the generator via adversarial training.
  • Applied gradient penalty in WGANGP to stabilize training and improve mode coverage, reducing mode collapse.
  • Evaluated generated domains against five state-of-the-art DGA classifiers (e.g., Invincea, CMU, MIT, NYU, Baseline) to measure evasion performance.
  • Conducted usability analysis by measuring repeated domain collisions, existing domain collisions, and classifier detection rates across 1 million generated domains.

Experimental results

Research questions

  • RQ1Can GAN-based DGAs generate domains that evade modern deep learning DGA classifiers more effectively than traditional algorithmic DGAs?
  • RQ2Which GAN variant—Standard GAN, LSGAN, or WGANGP—produces the most usable domains for offensive botnet operations, considering collision and length constraints?
  • RQ3How does fine-tuning existing DGA classifiers on GAN-generated adversarial samples affect their detection performance?
  • RQ4To what extent do GAN-generated domains match the n-gram distribution of real benign domains, enhancing their evasion potential?
  • RQ5What architectural or loss function modifications could further improve the usability and evasion capability of GAN-based DGAs?

Key findings

  • The WGANGP variant achieved the highest evasion rate, with 56.43% of generated domains evading detection by the Invincea DGA classifier, outperforming GAN (3.24%) and LSGAN (36.01%).
  • WGANGP generated domains had the lowest rate of repeated domain collisions (11.39%) and existing domain collisions (11.39%), making them the most usable for offensive deployment.
  • The Baseline DGA classifier detected 89.50% of GAN-generated domains, 64.07% of LSGAN, and 89.50% of WGANGP domains, indicating that WGANGP-generated domains are significantly more effective at evasion.
  • Fine-tuning DGA classifiers with GAN-generated samples reduced their detection accuracy, demonstrating the need for adversarial robustness in production systems.
  • WGANGP produced domains with better n-gram similarity to real benign domains and avoided the short domain problem common in prior GAN-based DGAs, enhancing practical usability.
  • The study confirms that GAN-based DGAs are more effective at evading modern DGA classifiers than traditional algorithmic DGAs, with WGANGP being the optimal choice for both offensive and defensive applications.

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.