arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1906.11246cs.CRcs.LG
收藏

使用预测模型识别DNS隧道流量

Identifying DNS-tunneled traffic with predictive models

Stockholm University(斯德哥尔摩大学)

Andreas Berg, Daniel Forsberg

摘要:

DNS是一个分布式的容错系统,可以避免单点故障。因此,它是我们今天使用的互联网的一个组成部分,因此被认为是一个安全的协议,可以通过防火墙和代理,没有或很少检查。这可能被恶意代理利用。网络取证是有效的,但由于数据的大小和手工劳动而挣扎。本文探讨了预测模型在多大程度上可以用来预测网络流量,什么协议是隧道的DNS协议,更具体地说,是否预测性能增强时,分析DNS查询和响应在一起,哪些功能集,可用于DNS隧道网络预测。测试的协议是SSH、SFTP和SSH,使用的机器学习模型是多层感知器和随机森林。为了训练模型,我们提取了DNS流量中查询和响应的IP包长度、名称长度和名称熵。通过实验研究策略,经验表明,当在查询和响应对上训练模型时,而不是仅使用查询或响应时,模型的性能会提高。模型的准确性>83%,提取特征时数据大小的减少约为95%。我们的研究结果提供的证据表明,机器学习是一个有价值的工具,在检测网络协议的DNS隧道,只需要一个小的网络流量的子集来检测这种异常。

英文摘要:

DNS is a distributed, fault tolerant system that avoids a single point of failure. As such it is an integral part of the internet as we use it today and hence deemed a safe protocol which is let through firewalls and proxies with no or little checks. This can be exploited by malicious agents. Network forensics is effective but struggles due to size of data and manual labour. This paper explores to what extent predictive models can be used to predict network traffic, what protocols are tunneled in the DNS protocol and more specifically whether the predictive performance is enhanced when analyzing DNS-queries and responses together and which feature set that can be used for DNS-tunneled network prediction. The tested protocols are SSH, SFTP and Telnet and the machine learning models used are Multi Layered Perceptron and Random Forests. To train the models we extract the IP Packet length, Name length and Name entropy of both the queries and responses in the DNS traffic. With an experimental research strategy it is empirically shown that the performance of the models increases when training the models on the query and respose pairs rather than using only queries or responses. The accuracy of the models is >83% and reduction in data size when features are extracted is roughly 95%. Our results provides evidence that machine learning is a valuable tool in detecting network protocols in a DNS tunnel and that only an small subset of network traffic is needed to detect this anomaly.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑