A DNS Tunneling Detection Method Based on Deep Learning Models to Prevent Data Exfiltration

Jiacheng Zhang, Li Yang, Shui Yu, Jianfeng MaNSS 2019

Abstract

DNS tunneling is a typical DNS attack that has been used for stealing information for many years. The stolen data is encoded and encapsulated into the DNS request to evade intrusion detection. The popular detection methods of machine learning use features, such as network traffic and DNS behavior. However, most features can only be extracted when data exfiltration occurs, like time-frequency related features. The key to prevent data exfiltration based on DNS tunneling is to detect the malicious query from single DNS request. Since we don’t use the network traffic features and DNS behavior features, our method can detect DNS tunneling before data exfiltration. In this paper, we propose a detection method based on deep learning models, which uses the DNS query payloads as predictive variables in the models. As the DNS tunneling data is a kind of text, our approach use word embedding as a part of fitting the neural networks, which is a feature extraction method in natural language processing (NLP). In order to achieve high performance, the detection decision is made by these common deep learning models, including dense neural network (DNN), one-dimensional convolutional neural network (1D-CNN) and recurrent neural network (RNN). We implement the DNS tunneling detection system in the real network environment. The results show that our approach achieves 99.90% accuracy and is more secure than existing methods.
BibTeX
@inproceedings{zhang2019dns,
  author = {Jiacheng Zhang and Li Yang and Shui Yu and Jianfeng Ma},
  title = {{A DNS Tunneling Detection Method Based on Deep Learning Models to Prevent Data Exfiltration}},
  booktitle = {NSS},
  year = {2019},
  url = {https://openreview.net/forum?id=Eu0uYSQTIWm},
}

Loading related content...

Figure