Skip to main content
QUICK REVIEW

[Paper Review] DNS Tunneling: A Deep Learning based Lexicographical Detection Approach

Franco Palau, Carlos Catania|arXiv (Cornell University)|Jun 11, 2020
Natural Language Processing TechniquesComputer Science3 references11 citations
TL;DR

This paper proposes a lightweight 1D Convolutional Neural Network (CNN) for lexicographical detection of DNS tunneling domains by analyzing character-level patterns in domain names. Trained on a novel, manually curated dataset of 8,000 DNS requests from five tunneling tools, the model achieves 92.37% recall for tunneling domains and a false positive rate of just 0.005%, demonstrating high accuracy and low false alarms in real-world detection scenarios.

ABSTRACT

Domain Name Service is a trusted protocol made for name resolution, but during past years some approaches have been developed to use it for data transfer. DNS Tunneling is a method where data is encoded inside DNS queries, allowing information exchange through the DNS. This characteristic is attractive to hackers who exploit DNS Tunneling method to establish bidirectional communication with machines infected with malware with the objective of exfiltrating data or sending instructions in an obfuscated way. To detect these threats fast and accurately, the present work proposes a detection approach based on a Convolutional Neural Network (CNN) with a minimal architecture complexity. Due to the lack of quality datasets for evaluating DNS Tunneling connections, we also present a detailed construction and description of a novel dataset that contains DNS Tunneling domains generated with five well-known DNS tools. Despite its simple architecture, the resulting CNN model correctly detected more than 92% of total Tunneling domains with a false positive rate close to 0.8%.

Motivation & Objective

  • To address the lack of high-quality, labeled datasets for evaluating DNS tunneling detection systems.
  • To develop a lightweight deep learning model capable of detecting malicious DNS tunneling domains based on lexicographical features.
  • To evaluate the performance of a 1D-CNN on a newly constructed dataset of DNS tunneling traffic generated with five well-known tunneling tools.
  • To demonstrate that lexicographical analysis via deep learning can effectively detect DNS tunneling with low false positive rates.

Proposed method

  • A 1D-CNN architecture with an embedding layer, a 1D convolutional layer, and a dense fully connected layer is used to learn character-level representations from domain names.
  • The model processes domain names as sequences of characters, learning discriminative patterns without manual feature engineering.
  • Hyperparameter tuning is performed via grid search using 5-fold cross-validation to optimize F1-score, with the Adam optimizer and 10 training epochs.
  • A decision boundary threshold of 0.90 is applied to classify domains as normal or tunneling based on predicted probability.
  • The dataset is constructed using a time-injection methodology on virtual machines, logging DNS requests from five DNS tunneling tools: dnscat2, DNSExfiltrator, iodine, tuns, and dns2tcp.
  • Tunneling domains are labeled based on the tool used to generate them, with a focus on distinguishing between successful and failed tunneling attempts.

Experimental results

Research questions

  • RQ1Can a minimal 1D-CNN architecture effectively detect DNS tunneling domains using only lexicographical features of domain names?
  • RQ2How does the detection performance vary across different DNS tunneling tools when using a single deep learning model?
  • RQ3What is the impact of dataset quality and construction methodology on the reliability of DNS tunneling detection models?
  • RQ4To what extent can lexicographical analysis via deep learning reduce false positive rates in DNS tunneling detection compared to traditional methods?
  • RQ5How does the model perform on domains generated by tools that failed to establish tunnel connections?

Key findings

  • The 1D-CNN model achieved a recall of 99.48% for normal domains and 92.37% for DNS tunneling domains, indicating strong detection capability.
  • The false positive rate was only 0.0762% for normal domains and 0.0052% for tunneling domains, demonstrating high specificity.
  • All domains generated with dnscat2 were correctly detected, while 85% of DNSExfiltrator and 87% of iodine-generated domains were identified.
  • The model achieved an F1-score of 96.35% for normal domains and 95.75% for tunneling domains on the test set.
  • The model showed consistent performance across different tunneling tools, with 96% detection accuracy for domains from failed tunneling attempts.
  • The results confirm that lexicographical analysis using a simple 1D-CNN can achieve high detection accuracy with minimal architectural complexity.

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.