journal article·2025-07-16Open access

Adversarial Hierarchical-Aware Edge Attention Learning Method for Network Intrusion Detection

Hao Yan, Jianming Li, Lei Du, Binxing Fang, Yan Jia, Zhaoquan Gu

Applied Sciences· Volume 15· Issue 14

Abstract

The rapid development of information technology has made cyberspace security an increasingly critical issue. Network intrusion detection methods are practical approaches to protecting network systems from cyber attacks. However, cyberspace security threats have topological dependencies and fine-grained attack semantics. Existing graph-based approaches either underestimate edge-level features or fail to balance detection accuracy with adversarial robustness. To handle these problems, we propose a novel graph neural network–based method for network intrusion detection called the adversarial hierarchical-aware edge attention learning method (AH-EAT). It leverages the natural graph structure of computer networks to achieve robust, multi-grained intrusion detection. Specifically, AH-EAT includes three main modules: an edge-based graph attention embedding module, a hierarchical multi-grained detection module, and an adversarial training module. In the first module, we apply graph attention networks to aggregate node and edge features according to their importance. This effectively captures the network’s key topological information. In the second module, we first perform coarse-grained detection to distinguish malicious flows from benign ones, and then perform fine-grained classification to identify specific attack types. In the third module, we use projected gradient descent to generate adversarial perturbations on network flow features during training, enhancing the model’s robustness to evasion attacks. Experimental results on four benchmark intrusion detection datasets show that AH-EAT achieves 90.73% average coarse-grained accuracy and 1.45% ASR on CIC-IDS2018 under adversarial attacks, outperforming state-of-the-art methods in both detection accuracy and robustness.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Network Security and Intrusion Detection · Internet Traffic Analysis and Secure E-voting · Advanced Malware Detection Techniques

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

Affiliations

School of Computer Science and Technology, Harbin Institute of Technology, Shenzhen 518055, China

Department of New Networks, Peng Cheng Laboratory, Shenzhen 518055, China

College of Computer Science, National University of Defense Technology, Changsha 410073, China

Funding

Shenzhen Science and Technology Program · Major Key Project of PCL · National Natural Science Foundation of China

References (38)

Show source-provided references
1. A supervised intrusion detection system for smart home IoT devices10.1109/JIOT.2019.2926365 ↗
2. An intelligent two-layer intrusion detection system for the Internet of Things10.1109/TII.2022.3192035 ↗
3. Syrius: Synthesis of rules for intrusion detectors10.1109/TR.2021.3061297 ↗
4. Liu, Q., Keller, H.B., and Hagenmeyer, V. (2021, January 17–20). A bayesian rule learning based intrusion detection system for the mqtt communication protocol. Proceedings of the 16th International Conference on Availability, Reliability and Security, Vienna, Austria.10.1145/3465481.3470046 ↗
5. Performance analysis of machine learning algorithms in intrusion detection system: A review10.1016/j.procs.2020.04.133 ↗
6. Liu, H., and Lang, B. (2019). Machine learning and deep learning methods for intrusion detection systems: A survey. Appl. Sci., 9.10.3390/app9204396 ↗
7. Learning neural representations for network anomaly detection
8. A method of few-shot network intrusion detection based on meta-learning framework10.1109/TIFS.2020.2991876 ↗
9. On-line anomaly detection with high accuracy10.1109/TNET.2018.2819507 ↗
10. A few-shot class-incremental learning method for network intrusion detection10.1109/TNSM.2023.3332284 ↗
11. Kipf, T.N., and Welling, M. (2016). Semi-supervised classification with graph convolutional networks. arXiv.
12. A comprehensive survey on graph neural networks10.1109/TNNLS.2020.2978386 ↗
13. 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, Budapest, Hungary.10.1109/NOMS54207.2022.9789878 ↗
14. Anomal-E: A self-supervised network intrusion detection system based on graph neural networks10.1016/j.knosys.2022.110030 ↗
15. Wang, B., Jia, J., Cao, X., and Gong, N.Z. (2021, January 14–18). Certified robustness of graph neural networks against adversarial structural perturbation. Proceedings of the 27th ACM SIGKDD Conference on Knowledge Discovery & Data Mining, Singapore.10.1145/3447548.3467295 ↗
16. Flow topology-based graph convolutional network for intrusion detection in label-limited IoT networks10.1109/TNSM.2022.3213807 ↗
17. PBCNN: Packet bytes-based convolutional neural network for network intrusion detection10.1016/j.comnet.2021.108117 ↗
18. A survey on adversarial attacks and defences10.1049/cit2.12028 ↗
19. A survey on adversarial attacks in computer vision: Taxonomy, visualization and future directions10.1016/j.cose.2022.102847 ↗
20. Adversarial attacks on deep-learning models in natural language processing: A survey
21. Beaver, J.M., Symons, C.T., and Gillen, R.E. (2013, January 8–10). A learning system for discriminating variants of malicious network traffic. Proceedings of the Eighth Annual Cyber Security and Information Intelligence Research Workshop, Oak Ridge, TN, USA.10.1145/2459976.2460003 ↗
22. Madry, A., Makelov, A., Schmidt, L., Tsipras, D., and Vladu, A. (2017). Towards deep learning models resistant to adversarial attacks. arXiv.
23. Nagaraja, S., Mittal, P., Hong, C.Y., Caesar, M., and Borisov, N. (2010, January 11–13). {BotGrep}: Finding {P2P} bots with structured graph analysis. Proceedings of the 19th USENIX Security Symposium (USENIX Security 10), Washington, DC, USA.
24. Network intrusion detection with a novel hierarchy of distances between embeddings of hash IP addresses10.1016/j.knosys.2021.106887 ↗
25. Xiao, Q., Liu, J., Wang, Q., Jiang, Z., Wang, X., and Yao, Y. (2020, January 3–5). Towards network anomaly detection using graph embedding. Proceedings of the Computational Science–ICCS 2020: 20th International Conference, Amsterdam, The Netherlands. Proceedings, Part IV 20.
26. Inductive representation learning on large graphs
27. Sun, Z., Teixeira, A.M., and Toor, S. (August, January 30). GNN-IDS: Graph Neural Network based Intrusion Detection System. Proceedings of the 19th International Conference on Availability, Reliability and Security, Athens, Greece.
28. Angioni, D., Demetrio, L., Pintor, M., Oneto, L., Anguita, D., Biggio, B., and Roli, F. (2024). Robustness-congruent adversarial training for secure machine learning model updates. arXiv.10.1109/TPAMI.2025.3573237 ↗
29. Wang, X., Ji, H., Shi, C., Wang, B., Ye, Y., Cui, P., and Yu, P.S. (2019, January 13–17). Heterogeneous graph attention network. Proceedings of the World Wide Web Conference, San Francisco, CA, USA.10.1145/3308558.3313562 ↗
30. Pytorch: An imperative style, high-performance deep learning library
31. Fey, M., and Lenssen, J.E. (2019). Fast graph representation learning with PyTorch Geometric. arXiv.
32. Scikit-learn: Machine learning in Python
33. Hagberg, A., Swart, P., and Chult, D.S. (2008). Exploring Network Structure, Dynamics, and Function Using NetworkX, Technical report.10.25080/TCWV9851 ↗
34. Moustafa, N., and Slay, J. (2015, January 10–12). UNSW-NB15: A comprehensive data set for network intrusion detection systems (UNSW-NB15 network data set). Proceedings of the 2015 Military Communications and Information Systems Conference (MilCIS), Canberra, Australia.10.1109/MilCIS.2015.7348942 ↗
35. Sharafaldin, I., Lashkari, A.H., and Ghorbani, A.A. (2018, January 22–24). Toward generating a new intrusion detection dataset and intrusion traffic characterization. Proceedings of the 4th International Conference on Information Systems Security and Privacy (ICISSP 2018), Funchal, Madeira, Portugal.10.5220/0006639801080116 ↗
36. Towards the development of realistic botnet dataset in the internet of things for network forensic analytics: Bot-iot dataset10.1016/j.future.2019.05.041 ↗
37. TON_IoT telemetry dataset: A new generation dataset of IoT and IIoT for data-driven intrusion detection systems10.1109/ACCESS.2020.3022862 ↗
38. Towards a standard feature set for network intrusion detection system datasets10.1007/s11036-021-01843-0 ↗