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

DNS-GT: 基于图的Transformer方法用于从DNS查询中学习域名嵌入

DNS-GT: A Graph-based Transformer Approach to Learn Embeddings of Domain Names from DNS Queries

Massimiliano Altieri, Ronan Hamon, Roberto Corizzo, Michelangelo Ceci, Ignacio Sanchez

AI总结:

本文提出DNS-GT模型,通过基于Transformer的方法从DNS查询序列中学习域名嵌入,提升网络入侵检测系统的性能。

摘要:

网络入侵检测系统在网络安全策略中发挥着关键作用,用于检测和防止网络攻击。此类系统通常结合模式检测签名与由机器学习方法驱动的异常检测技术。然而,常用提出的机器学习方法存在过度依赖标注数据和泛化能力有限的缺点。为了解决这些问题,嵌入式方法被引入以从网络数据中学习表示,如DNS流量,主要因其大量可用性,能够有效泛化到许多下游任务。然而,当前方法并未充分考虑DNS查询之间的上下文信息。在本文中,我们通过提出DNS-GT,一种新的基于Transformer的模型,从DNS查询序列中学习域名嵌入来解决这一问题。该模型首先以自监督的方式进行预训练,以学习DNS活动的一般行为。然后,它可以针对特定的下游任务进行微调,利用给定序列中与其他相关查询的交互。我们的实验使用真实世界的DNS数据展示了我们方法学习有效域名表示的能力。对域名分类和僵尸网络检测任务的定量评估表明,我们的方法在相关基线方法上表现更好,为进一步探索大规模语言模型在入侵检测系统中的应用创造了机会。我们的代码可在:https://github.com/m-altieri/DNS-GT获取。

英文摘要:

Network intrusion detection systems play a crucial role in the security strategy employed by organisations to detect and prevent cyberattacks. Such systems usually combine pattern detection signatures with anomaly detection techniques powered by machine learning methods. However, the commonly proposed machine learning methods present drawbacks such as over-reliance on labeled data and limited generalization capabilities. To address these issues, embedding-based methods have been introduced to learn representations from network data, such as DNS traffic, mainly due to its large availability, that generalise effectively to many downstream tasks. However, current approaches do not properly consider contextual information among DNS queries. In this paper, we tackle this issue by proposing DNS-GT, a novel Transformer-based model that learns embeddings for domain names from sequences of DNS queries. The model is first pre-trained in a self-supervised fashion in order to learn the general behavior of DNS activity. Then, it can be finetuned on specific downstream tasks, exploiting interactions with other relevant queries in a given sequence. Our experiments with real-world DNS data showcase the ability of our method to learn effective domain name representations. A quantitative evaluation on domain name classification and botnet detection tasks shows that our approach achieves better results compared to relevant baselines, creating opportunities for further exploration of large-scale language models for intrusion detection systems. Our code is available at: https://github.com/m-altieri/DNS-GT.

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

↑