Lightweight Hybrid Detection of Data Exfiltration using DNS based on Machine Learning

S. Mahdavifar, Amgad Hanafy Salem, Princy Victor, A. H. Razavi, Miguel Garzon, Natasha Hellberg, Arash Habibi Lashkari
{"title":"Lightweight Hybrid Detection of Data Exfiltration using DNS based on Machine Learning","authors":"S. Mahdavifar, Amgad Hanafy Salem, Princy Victor, A. H. Razavi, Miguel Garzon, Natasha Hellberg, Arash Habibi Lashkari","doi":"10.1145/3507509.3507520","DOIUrl":null,"url":null,"abstract":"Domain Name System (DNS) is a popular way to steal sensitive information from enterprise networks and maintain a covert tunnel for command and control communications with a malicious server. Due to the significant role of DNS services, enterprises often set the firewalls to let DNS traffic in, which encourages the adversaries to exfiltrate encoded data to a compromised server controlled by them. To detect low and slow data exfiltration and tunneling over DNS, in this paper, we develop a two-layered hybrid approach that uses a set of well-defined features. Because of the lightweight nature of the model in incorporating both stateless and stateful features, the proposed approach can be applied to resource-limited devices. Furthermore, our proposed model could be embedded into existing stateless-based detection systems to extend their capabilities in identifying advanced attacks. We release CIC-Bell-DNS-EXF-2021, a large dataset of 270.8 MB DNS traffic generated by exfiltrating various file types ranging from small to large sizes. We leverage our developed feature extractor to extract 30 features from the DNS packets, resulting in a final structured dataset of 323,698 heavy attack samples, 53,978 light attack samples, and 641,642 distinct benign samples. The experimental analysis of utilizing several Machine Learning (ML) algorithms on our dataset shows the effectiveness of our hybrid detection system even in the existence of light DNS traffic.","PeriodicalId":280794,"journal":{"name":"Proceedings of the 2021 11th International Conference on Communication and Network Security","volume":"75 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2021-12-03","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"6","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the 2021 11th International Conference on Communication and Network Security","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3507509.3507520","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 6

Abstract

Domain Name System (DNS) is a popular way to steal sensitive information from enterprise networks and maintain a covert tunnel for command and control communications with a malicious server. Due to the significant role of DNS services, enterprises often set the firewalls to let DNS traffic in, which encourages the adversaries to exfiltrate encoded data to a compromised server controlled by them. To detect low and slow data exfiltration and tunneling over DNS, in this paper, we develop a two-layered hybrid approach that uses a set of well-defined features. Because of the lightweight nature of the model in incorporating both stateless and stateful features, the proposed approach can be applied to resource-limited devices. Furthermore, our proposed model could be embedded into existing stateless-based detection systems to extend their capabilities in identifying advanced attacks. We release CIC-Bell-DNS-EXF-2021, a large dataset of 270.8 MB DNS traffic generated by exfiltrating various file types ranging from small to large sizes. We leverage our developed feature extractor to extract 30 features from the DNS packets, resulting in a final structured dataset of 323,698 heavy attack samples, 53,978 light attack samples, and 641,642 distinct benign samples. The experimental analysis of utilizing several Machine Learning (ML) algorithms on our dataset shows the effectiveness of our hybrid detection system even in the existence of light DNS traffic.
基于机器学习的DNS数据泄露轻量级混合检测
域名系统(DNS)是从企业网络中窃取敏感信息并维护隐蔽隧道以与恶意服务器进行命令和控制通信的常用方法。由于DNS服务的重要作用,企业经常设置防火墙以允许DNS流量进入,这鼓励攻击者将编码数据泄露到由他们控制的受损服务器上。为了检测低和慢的DNS数据泄露和隧道,在本文中,我们开发了一种使用一组定义良好的特征的两层混合方法。由于模型在合并无状态和有状态特性方面具有轻量级的特性,因此所建议的方法可以应用于资源有限的设备。此外,我们提出的模型可以嵌入到现有的基于无状态的检测系统中,以扩展其识别高级攻击的能力。我们发布了CIC-Bell-DNS-EXF-2021,这是一个270.8 MB的大型DNS流量数据集,通过过滤大小不等的各种文件类型生成。我们利用我们开发的特征提取器从DNS数据包中提取30个特征,从而得到一个最终的结构化数据集,其中包含323,698个重攻击样本,53,978个轻攻击样本和641,642个不同的良性样本。在我们的数据集上使用几种机器学习(ML)算法的实验分析表明,即使在存在少量DNS流量的情况下,我们的混合检测系统也是有效的。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信