journal article·2025-12-19Open access

Botnet Node Detection Using Graph Learning

Gizem Karyağdı, İlker Özçelik

Applied Sciences· Volume 16· Issue 1

Abstract

Botnets represent a persistent and significant threat to internet security. Many detection methods fail because they analyze isolated node data, neglecting the coordinated interactions of centrally managed bots. Graph-based methods, particularly Graph Neural Networks (GNNs), offer a promising solution. This study developed and compared four novel GNN models (HeteroGCN, HeteroGAT, HeteroSAGE, and HeteroGAE) for botnet detection. We constructed a heterogeneous graph from the TI-16 DNS-labeled dataset, capturing interactions between users and domains. Experimental results show our models achieve up to 95% accuracy. Specifically, HeteroSAGE and HeteroGAE significantly outperform other models, demonstrating superior F1-Scores and exceptionally high Recall. This high recall, indicating a low false-negative rate, is critical for effective anomaly detection. Conversely, the computationally expensive HeteroGAT model yielded poorer results and slower inference times, demonstrating that increased model complexity does not guarantee better performance. To our knowledge, this is the first study to successfully apply and compare heterogeneous GNNs for bot detection using DNS query data.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Network Security and Intrusion Detection · Spam and Phishing Detection · Advanced Graph Neural Networks

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Department of Mathematics and Computer Science, Faculty of Science, Eskisehir Osmangazi University, Eskisehir 26040, Türkiye

Department of Software Engineering, Faculty of Engineering and Architecture, Eskisehir Osmangazi University, Eskisehir 26040, Türkiye

Funding

Doruk İletişim ve Otomasyon Sanayi ve Ticaret A.Ş.

References (37)

Show source-provided references
1. Barracuda (2025, December 15). Top Threats of the 2024 Botnet Landscape. Available online: https://blog.barracuda.com/2025/03/21/top-threats-of-the-2024-botnet-landscape.
2. Survey on Botnet Detection Techniques: Classification, Methods, and Evaluation10.1155/2021/6640499 ↗
3. Botnet business models, takedown attempts, and the darkweb market: A survey10.1145/3575808 ↗
4. A Survey of Botnet Detection Based on DNS10.1007/s00521-015-2128-0 ↗
5. Issues and Challenges in DNS Based Botnet Detection: A Survey10.1016/j.cose.2019.05.019 ↗
6. TI-16 DNS Labeled Dataset for Detecting Botnets10.1109/ACCESS.2023.3287141 ↗
7. An empirical comparison of botnet detection methods10.1016/j.cose.2014.05.011 ↗
8. A review on graph-based approaches for network security monitoring and botnet detection10.1007/s10207-023-00742-7 ↗
9. Lagraa, S., François, J., Lahmadi, A., Miner, M., Hammerschmidt, C., and State, R. (2017, January 18–20). BotGM: Unsupervised graph mining to detect botnets in traffic flows. Proceedings of the 2017 1st Cyber Security in Networking Conference (CSNet), Rio de Janeiro, Brazil.10.1109/CSNET.2017.8241990 ↗
10. Wang, J., and Paschalidis, I.C. (October, January 30). Botnet detection using social graph analysis. Proceedings of the 2014 52nd Annual Allerton Conference on Communication, Control, and Computing (Allerton), Monticello, IL, USA.10.1109/ALLERTON.2014.7028482 ↗
11. Multi-attributed heterogeneous graph convolutional network for bot detection10.1016/j.ins.2020.03.113 ↗
12. Qian, K., Yang, H., Li, R., Chen, W., Luo, X., and Yin, L. (2024). Distributed Detection of Large-Scale Internet of Things Botnets Based on Graph Partitioning. Appl. Sci., 14.10.3390/app14041615 ↗
13. Deeply fused flow and topology features for botnet detection based on a pretrained GCN10.1016/j.comcom.2025.108084 ↗
14. Özçelik, İ., and Brooks, R. (2020). Distributed Denial of Service Attacks: Real-World Detection and Mitigation, CRC Press.
15. Anwar, S., Zain, J.M., Zolkipli, F., and Inayat, Z. (2014, January 23–26). A review paper on botnet and botnet detection techniques in cloud computing. Proceedings of the ISCI (2014), 2014 IEEE Symposium on Computers and Communication (ISCC), Funchal, Portugal.
16. Dias, D., Bruno, S., and Nuno, A. (2013). MONDEO: Multistage Botnet Detection. arXiv.
17. MONDEO-Tactics5G: Multistage Botnet Detection and Tactics for 5G/6G Networks10.1016/j.cose.2024.103768 ↗
18. Host-Level Botnet Detection via Internet DNS Traffic Analysis Using Neural Networks10.1002/itl2.70101 ↗
19. DGA-Based Botnets Detection Using DNS Traffic Mining10.1016/j.jksuci.2022.03.001 ↗
20. Graph Neural Networks for Intrusion Detection: A Survey10.1109/ACCESS.2023.3275789 ↗
21. A Survey on Graph Neural Networks for Intrusion Detection Systems: Methods, Trends and Challenges10.1016/j.cose.2024.103821 ↗
22. Jiang, L., Ryan, R., Li, Q., and Ferdosian, N. (2025). A Survey of Heterogeneous Graph Neural Networks for Cybersecurity Anomaly Detection. arXiv.
23. Farrukh, Y.A., Wali, S., Khan, I., and Bastian, N.D. (2024). XG-NID: Dual-Modality Network Intrusion Detection using a Heterogeneous Graph Neural Network and Large Language Model. arXiv.10.1016/j.eswa.2025.128089 ↗
24. XMF-GNN: A Cross-modality Dynamic Fusion Heterogeneous Graph Neural Network for Network Intrusion Detection10.1016/j.neucom.2025.131285 ↗
25. XG-BoT: An Explainable Deep Graph Neural Network for Botnet Detection and Forensics10.1016/j.iot.2023.100747 ↗
26. Altaf, T., Wang, X., Ni, W., Yu, G., Liu, R.P., and Braun, R. (2024). GNN-Based Network Traffic Analysis for the Detection of Sequential Attacks in IoT. Electronics, 13.10.3390/electronics13122274 ↗
27. Lo, W.W., Layeghy, S., Sarhan, M., Gallagher, M., and Portmann, M. (2022, January 25–29). E-GraphSAGE: A Graph Neural Network based Intrusion Detection System for IoT. Proceedings of the NOMS 2022–2022 IEEE/IFIP Network Operations and Management Symposium (2021), Budapest, Hungary.10.1109/NOMS54207.2022.9789878 ↗
28. Li, H., and Chasaki, D. (2024, January 19–22). Heterogeneous GNN with Express Edges for Intrusion Detection in Cyber-Physical Systems. Proceedings of the 2024 International Conference on Computing, Networking and Communications (ICNC) (2024), Big Island, HI, USA.10.1109/ICNC59896.2024.10556029 ↗
29. Huang, Z., Gu, Y., and Zhao, Q. (2022, January 4–6). One-Class Directed Heterogeneous Graph Neural Network for Intrusion Detection. Proceedings of the 2022 6th International Conference on Innovation in Artificial Intelligence (ICIAI ’22), Guangzhou, China.10.1145/3529466.3529480 ↗
30. Velickovic, P., Cucurull, G., Casanova, A., Romero, A., Liò, P., and Bengio, Y. (2017). Graph Attention Networks. arXiv.
31. Hamilton, W.L., Ying, R., and Leskovec, J. (2017). Inductive Representation Learning on Large Graphs. arXiv.
32. Heterogeneous Graph Construction and HinSAGE Learning from Electronic Medical Records10.1038/s41598-022-25693-2 ↗
33. Kipf, T.N., and Welling, M. (2016). Variational graph auto-encoders. arXiv.
34. Matthew, T., and Mohaisen, A. (2014, January 7–11). Kindred domains: Detecting and clustering botnet domains using DNS traffic. Proceedings of the 23rd International Conference on World Wide Web, Seoul, Republic of Korea.
35. Villamarin-Salomon, R., and Brustoloni, J.C. (2008, January 10–12). Identifying botnets using anomaly detection techniques applied to DNS traffic. Proceedings of the 2008 5th IEEE Consumer Communications and Networking Conference, Las Vegas, NV, USA.10.1109/ccnc08.2007.112 ↗
36. Plohmann, D. (2021, March 15). DGArchive. Fraunhofer FKIE. Available online: https://dgarchive.caad.fkie.fraunhofer.de/.
37. (2025, November 30). Artificial Intelligence Fuels Rise of Hard-to-Detect Bots that Now Make up More Than Half of Global Internet Traffic, according to the 2025 Imperva Bad Bot Report. Available online: https://cpl.thalesgroup.com/about-us/newsroom/2025-imperva-bad-bot-report-ai-internet-traffic.