Detecting DNS Tunneling Attacks via a Realistic Dataset in a Multi-Dimensional Feature-Driven Machine Learning Framework


Buber E., KUĞU E., Sahingoz O. K.

IEEE Access, 2026 (SCI-Expanded, Scopus)

  • Yayın Türü: Makale / Tam Makale
  • Basım Tarihi: 2026
  • Doi Numarası: 10.1109/access.2026.3755333
  • Dergi Adı: IEEE Access
  • Derginin Tarandığı İndeksler: Science Citation Index Expanded (SCI-EXPANDED), Scopus, Compendex, INSPEC, Directory of Open Access Journals
  • Anahtar Kelimeler: Anomaly detection, DNS tunnel dataset, DNS tunneling, network security
  • TED Üniversitesi Adresli: Evet

Özet

Domain Name System (DNS) tunneling attack has emerged as a significant cybersecurity threat by enabling attackers to covertly steal sensitive data and establish command-and-control channels through appearing legitimate DNS communications. Due to the extensive use of DNS traffic in network communications and its widespread acceptance by enterprise firewalls, DNS tunneling attacks that mimic benign DNS behavior remain a highly challenging problem for security administrators. This study proposes a multi-dimensional feature-driven machine learning framework for DNS tunneling attack detection based on a new realistic and comprehensive dataset named DNSTunnel2026. The proposed framework combines behavioral, structural, cross-organizational and AI-based lexical features to improve detection capability while minimizing false positives rate and the new dataset integrates real enterprise DNS logs with synthetically generated attack traffic generated under multiple realistic adversarial scenarios, including varying query frequencies, query lengths, DNS query types, file sizes, safe-looking domains, infrastructure-like domains, and repeated query behaviors. The complete raw record set of DNSTunnel2026 (77.7 million records of 26 and 27 February 2025, pseudonymised) and the keyed feature vectors are publicly released, enabling other feature designs and detectors to be evaluated on the same traffic. The extracted features were processed using five machine learning algorithms, evaluated under random, chronological and group-blocked (organization–domain and domain) splits with documented hyperparameter tuning. Under the leakage-controlled protocols, XGBoost and a deep neural network (DNN) perform best: XGBoost reaches a PR-AUC of 0.992 under the chronological split (tunnel precision 0.965, recall 0.947) and 0.974 under the organization–domain split, the DNN 0.988 and 0.977; the random split overestimates performance, and domains never seen in training remain the hardest case (PR-AUC 0.944 for XGBoost and 0.948 for the DNN). The classifiers were evaluated on their ability to distinguish between benign and malicious DNS traffic with high accuracy, achieving a low false positive rate. This approach demonstrated significant potential for real-world deployment by enhancing threat detection in enterprise networks while maintaining operational efficiency.