Detecting DNS tunneling-based data exfiltration using machine learning
Loading...
Date
Journal Title
Journal ISSN
Volume Title
Publisher
Thapathali Campus, Institute of Engineering, Tribhuvan University
DOI
10.3126/jiee.v9i1.90356
Abstract
The misuse of DNS tunneling for covert data exfiltration is a significant threat to network security because DNS traffic is typically trusted and allowed through firewalls without deep inspection. Attackers exploit this protocol by embedding encoded payloads within DNS queries and responses, enabling them to bypass traditional security mechanisms that struggle to identify such stealthy, low-and-slow exfiltration patterns. This paper presents a hybrid detection framework that combines a one dimensional Convolutional Neural Network (1D CNN) for automated feature extraction with a Support Vector Machine (SVM) classifier for robust decision-making. The model is trained and evaluated on the BCCC-CIC-Bell-DNS-EXFdataset, which contains diverse benign, light, and heavy exfiltration samples generated using real tunneling tools such as Iodine. Experimental results demonstrate high effectiveness, with the CNN+SVM approach achieving up to 99.91% accuracy, minimal false positives, and consistent performance under 5-fold cross-validation. Furthermore, an NFQUEUE-based real-time prototype demonstrates live DNS packet interception and online feature computation, and enables low latency (millisecond-level) decision-making using a baseline SVM classifier trained on entropy feature(s) in our test environment (approximately 1.4–2.4 ms per query). Overall, this paper provides an effective approach for DNS tunneling detection and establishes a foundation for future work, including integration of the proposed model into real-time operation and extensions to encrypted DNS protocols and explainable detection.
Description
Journal: Journal of Innovations in Engineering Education (JIEE), ISSN 2594-343X (print), 2773-823X (online)
Volume/Issue: Vol. 9, Issue 1 (2026), pages 105-119
Article type: Research Article
Published: 2026-06-01
DOI: https://doi.org/10.3126/jiee.v9i1.90356
Authors and affiliations:
- Saroj Gautam (Department of Electronics and Computer Engineering, Thapathali Campus, Tribhuvan University, Kathmandu, Nepal)
- Binod Sapkota (Department of Electronics and Computer Engineering, Thapathali Campus, Tribhuvan University, Kathmandu, Nepal)
- Babu R. Dawadi (Department of Electronics and Computer Engineering, Pulchowk Campus, Tribhuvan University, Kathmandu, Nepal)
- Utkarsha Shukla (Department of Electronics and Computer Engineering, Thapathali Campus, Tribhuvan University, Kathmandu, Nepal)
TCIOE department(s): Department of Electronics and Computer Engineering
Publisher: Thapathali Campus, Institute of Engineering, Tribhuvan University
License: Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0), https://creativecommons.org/licenses/by-nc-nd/4.0/
Journal website: https://journal.tcioe.edu.np/articles/090d1627-760c-4811-898d-36dbaab6962c
NepJOL: https://www.nepjol.info/index.php/jiee/article/view/90356
Keywords
Convolutional Neural Network , Data exfiltration , DNS tunneling , Support Vector Machine , JIEE , Journal of Innovations in Engineering Education , JIEE 2026 , JIEE Volume 9 , Research Article , Thapathali Campus , TCIOE , Institute of Engineering , IOE , Tribhuvan University , Nepal , engineering research Nepal , peer-reviewed journal article , open access , Department of Electronics and Computer Engineering
Citation
Gautam, S., Sapkota, B., Dawadi, B. R., & Shukla, U. (2026). Detecting DNS tunneling-based data exfiltration using machine learning. Journal of Innovations in Engineering Education, 9(1), 105-119. https://doi.org/10.3126/jiee.v9i1.90356
Endorsement
Review
Supplemented By
Referenced By
Creative Commons license
Except where otherwise noted, this item's license is described as Copyright (c) 2026 JIEE and the authors. Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0).


