mlsanityData to 14 Oct 2026

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

arXiv 2603.11200 ↗First posted 11 Mar 2026cs.CR cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

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.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 9 of its 37 references that are in the map. First posted on arXiv 11 Mar 2026.

Builds on

9 of 37 references.

References · 9

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2016Semi-Supervised Classification with Graph Convolutional Networkscited by 11,361
  4. 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,548
  5. 2022SecureBERT: A Domain-Specific Language Model for Cybersecuritycited by 60
  6. 2020Defending Water Treatment Networks: Exploiting Spatio-temporal Effects for Cyber Attack Detectioncited by 11
  7. 2018A Survey on Malicious Domains Detection through DNS Data Analysiscited by 9
  8. 2021Supervised Feature Selection Techniques in Network Intrusion Detection: a Critical Reviewcited by 7
  9. 2017Learning Domain-Specific Word Embeddings from Sparse Cybersecurity Textscited by 3

Built on by

Not cited yet.