English

DRIFT: Drift-Resilient Invariant-Feature Transformer for DGA Detection

Cryptography and Security 2026-05-12 v1 Machine Learning Networking and Internet Architecture

Abstract

Domain Generation Algorithms (DGAs) evolve continuously to evade botnet detection, posing a persistent challenge for dependable network defense. While deep learning-based detectors achieve strong performance under static conditions, they suffer severe degradation when facing temporal drift. Through a 9-year longitudinal study (2017-2025), we empirically show that state-of-the-art character- and word-based DGA classifiers rapidly lose effectiveness as new DGA variants emerge. To address this problem, we propose a drift-resilient Transformer-based framework that learns invariant representations through a hybrid tokenization strategy and multi-task self-supervised pre-training. The model integrates (i) character-level encoding to capture stochastic morphological patterns and (ii) subword-level encoding for word-based DGAs. Three pre-training tasks enable the model to learn robust structural and contextual features prior to supervised fine-tuning. Comprehensive evaluations demonstrate that our method significantly mitigates temporal degradation and consistently outperforms state-of-the-art baselines in forward-chaining experiments. The proposed approach offers a dependable foundation for long-term DGA defense in evolving threat landscapes. Our code is available at: https://github.com/snsec-net/2026-DSN-DRIFT.

Keywords

Cite

@article{arxiv.2605.10436,
  title  = {DRIFT: Drift-Resilient Invariant-Feature Transformer for DGA Detection},
  author = {Chaeyoung Lee and Chaeri Jung and Seonghoon Jeong},
  journal= {arXiv preprint arXiv:2605.10436},
  year   = {2026}
}

Comments

14 pages, 7 figures, 8 tables. Accepted to appear in Proc. of the 56th Annual IEEE/IFIP International Conference on Dependable Systems and Networks (DSN 2026)

R2 v1 2026-07-22T07:04:14.312Z