Skip to main content
QUICK REVIEW

[Paper Review] MaskDGA: A Black-box Evasion Technique Against DGA Classifiers and Adversarial Defenses

Lior Sidi, Asaf Nadler|arXiv (Cornell University)|Feb 24, 2019
Adversarial Robustness in Machine LearningComputer Science42 references25 citations
TL;DR

MaskDGA is a black-box adversarial evasion technique that perturbs character-level representations of algorithmically generated domain (AGD) names to evade state-of-the-art DGA classifiers without requiring knowledge of the classifier’s architecture. It achieves a drop in F1-score from 0.977 to 0.495 on four DGA classifiers using the DMD-2018 dataset, demonstrating high effectiveness and transferability against both standard and adversarially defended models.

ABSTRACT

Domain generation algorithms (DGAs) are commonly used by botnets to generate domain names through which bots can establish a resilient communication channel with their command and control servers. Recent publications presented deep learning, character-level classifiers that are able to detect algorithmically generated domain (AGD) names with high accuracy, and correspondingly, significantly reduce the effectiveness of DGAs for botnet communication. In this paper we present MaskDGA, a practical adversarial learning technique that adds perturbation to the character-level representation of algorithmically generated domain names in order to evade DGA classifiers, without the attacker having any knowledge about the DGA classifier's architecture and parameters. MaskDGA was evaluated using the DMD-2018 dataset of AGD names and four recently published DGA classifiers, in which the average F1-score of the classifiers degrades from 0.977 to 0.495 when applying the evasion technique. An additional evaluation was conducted using the same classifiers but with adversarial defenses implemented: adversarial re-training and distillation. The results of this evaluation show that MaskDGA can be used for improving the robustness of the character-level DGA classifiers against adversarial attacks, but that ideally DGA classifiers should incorporate additional features alongside character-level features that are demonstrated in this study to be vulnerable to adversarial attacks.

Motivation & Objective

  • To develop a practical black-box evasion technique that bypasses character-level DGA classifiers without requiring knowledge of their internal architecture or parameters.
  • To evaluate the robustness of state-of-the-art DGA classifiers against adversarial attacks, particularly in real-world deployment scenarios.
  • To assess the effectiveness of adversarial defenses such as adversarial retraining and knowledge distillation against the proposed evasion technique.
  • To investigate whether combining character-level features with contextual features (e.g., DNS traffic, WHOIS) can improve classifier robustness against adversarial attacks.
  • To explore the generalizability of the technique beyond DGA detection to other character-level classification tasks in cybersecurity, such as phishing URL and malware string evasion.

Proposed method

  • Train a substitute model on publicly available AGD datasets to emulate the behavior of the target DGA classifier.
  • Use the substitute model to generate adversarial examples by computing gradients via back-propagation on the input character-level representation.
  • Construct a Jacobian salience map (JSM) to identify the characters in the AGD with the highest influence on misclassification.
  • Replace exactly half of the characters in each AGD with the highest gradient values in the JSM, ensuring unique domain generation and avoiding duplication.
  • Apply the perturbation in a single feed-forward and back-propagation step to generate adversarial domain names that are misclassified as benign.
  • Evaluate the technique on four state-of-the-art DGA classifiers and two adversarial defense mechanisms: adversarial retraining and knowledge distillation.

Experimental results

Research questions

  • RQ1Can a black-box adversarial evasion technique effectively bypass character-level DGA classifiers without access to their internal parameters or architecture?
  • RQ2How effective is MaskDGA in degrading the performance of state-of-the-art DGA classifiers on the DMD-2018 dataset?
  • RQ3To what extent do adversarial defenses such as adversarial retraining and knowledge distillation mitigate the effectiveness of MaskDGA?
  • RQ4What are the limitations of current DGA classifiers when exposed to gradient-based adversarial attacks on character-level representations?
  • RQ5Can MaskDGA be generalized to other character-level classification tasks in cybersecurity, such as phishing detection or malware signature evasion?

Key findings

  • MaskDGA reduced the average F1-score of four state-of-the-art DGA classifiers from 0.977 to 0.495 on the DMD-2018 dataset, indicating a dramatic drop in detection performance.
  • Adversarial retraining improved robustness against the DeepDGA attack but degraded performance on non-adversarial AGD samples, suggesting a trade-off in model robustness.
  • Knowledge distillation was ineffective against targeted misclassifications, showing limited resilience to the specific perturbation strategy used in MaskDGA.
  • Re-training classifiers on MaskDGA-generated adversarial samples improved average robustness but did not fully defend against other attacks like DeepDGA.
  • The study confirms that character-level DGA classifiers are vulnerable to gradient-based adversarial attacks, highlighting the need for multi-modal feature integration.
  • The technique preserves domain uniqueness by replacing only half the characters and ensuring no duplication, enabling large-scale botnet communication without detection.

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.