Applying Self-supervised Learning to Network Intrusion Detection for Network Flows with Graph Neural Network
Not on the map. Why?
Abstract (arXiv)
Graph Neural Networks (GNNs) have garnered intensive attention for Network Intrusion Detection System (NIDS) due to their suitability for representing the network traffic flows. However, most present GNN-based methods for NIDS are supervised or semi-supervised. Network flows need to be manually annotated as supervisory labels, a process that is time-consuming or even impossible, making NIDS difficult to adapt to potentially complex attacks, especially in large-scale real-world scenarios. The existing GNN-based self-supervised methods focus on the binary classification of network flow as benign or not, and thus fail to reveal the types of attack in practice. This paper studies the application of GNNs to identify the specific types of network flows in an unsupervised manner. We first design an encoder to obtain graph embedding, that introduces the graph attention mechanism and considers the edge information as the only essential factor. Then, a self-supervised method based on graph contrastive learning is proposed. The method samples center nodes, and for each center node, generates subgraph by it and its direct neighbor nodes, and corresponding contrastive subgraph from the interpolated graph, and finally constructs positive and negative samples from subgraphs. Furthermore, a structured contrastive loss function based on edge features and graph local topology is introduced. To the best of our knowledge, it is the first GNN-based self-supervised method for the multiclass classification of network flows in NIDS. Detailed experiments conducted on four real-world databases (NF-Bot-IoT, NF-Bot-IoT-v2, NF-CSE-CIC-IDS2018, and NF-CSE-CIC-IDS2018-v2) systematically compare our model with the state-of-the-art supervised and self-supervised models, illustrating the considerable potential of our method. Our code is accessible through https://github.com/renj-xu/NEGSC.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Builds on 23 of its 58 references that are in the map. First posted on arXiv 3 Mar 2024.
Builds on
23 of 58 references.
References · 23
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2017Graph Attention Networkscited by 8,854
- 2017Inductive Representation Learning on Large Graphscited by 6,284
- 2018Deep Graph Infomaxcited by 1,101
- 2021How Attentive are Graph Attention Networks?cited by 818
- 2018Computational Optimal Transportcited by 765
- 2020Evaluation: from precision, recall and F-measure to ROC, informedness, markedness and correlationcited by 420
- 2018Adversarial Attacks on Neural Networks for Graph Datacited by 395
- 2021Graph Self-Supervised Learning: A Surveycited by 289
- 2019Deep Graph Library: A Graph-Centric, Highly-Performant Package for Graph Neural Networkscited by 241
- 2021Self-Supervised Learning of Graph Neural Networks: A Unified Reviewcited by 184
- 2020Graph Optimal Transport for Cross-Domain Alignmentcited by 103
11 more
- 2018Towards the Development of Realistic Botnet Dataset in the Internet of Things for Network Forensic Analytics: Bot-IoT Datasetcited by 98
- 2021AutoGCL: Automated Graph Contrastive Learning via Learnable View Generatorscited by 73
- 2021E-GraphSAGE: A Graph Neural Network based Intrusion Detection System for IoTcited by 55
- 2020NetFlow Datasets for Machine Learning-based Network Intrusion Detection Systemscited by 45
- 2021Towards a Standard Feature Set for Network Intrusion Detection System Datasetscited by 40
- 2022Anomal-E: A Self-Supervised Network Intrusion Detection System based on Graph Neural Networkscited by 25
- 2020Automating Botnet Detection with Graph Neural Networkscited by 23
- 2021Evaluating Standard Feature Sets Towards Increased Generalisability and Explainability of ML-based Network Intrusion Detectioncited by 8
- 2022Generative Subgraph Contrast for Self-Supervised Graph Representation Learningcited by 8
- 2023ARGUS: Context-Based Detection of Stealthy IoT Infiltration Attackscited by 6
- 2023Protected or Porous: A Comparative Analysis of Threat Detection Capability of IoT Safeguardscited by 4
Built on by
Citing papers per year: 2024: 2; 2025: 1; 2026: 4.
7 papers.
- 2024Expectations Versus Reality: Evaluating Intrusion Detection Systems in Practicecited by 1
- 2025CAGN-GAT Fusion: A Hybrid Contrastive Attentive Graph Neural Network for Network Intrusion Detectioncited by 1
- 2024NIDS Neural Networks Using Sliding Time Window Data Processing with Trainable Activations and its Generalization Capabilitycited by 0
- 2026Forecasting Individual NetFlows using a Predictive Masked Graph Autoencodercited by 0
- 2026Timestamp-Aware Spatio-Temporal Graph Contrastive Learning for Network Intrusion Detectioncited by 0
- 2026Towards Improved Anomaly Detection for Cloud Cybersecurity via Graph Neural Networkscited by 0
- 2026Enhanced Feature Extraction for IoT Network Intrusion Detection Using GNNs and KANcited by 0
- 2026Enhanced Feature Extraction for IoT Network Intrusion Detection Using GNNs and KAN3 Jul 2026
- 2026Towards Improved Anomaly Detection for Cloud Cybersecurity via Graph Neural Networks27 Jun 2026
- 2026Timestamp-Aware Spatio-Temporal Graph Contrastive Learning for Network Intrusion Detection15 Jun 2026
- 2026Forecasting Individual NetFlows using a Predictive Masked Graph Autoencoder22 Apr 2026
- 2025CAGN-GAT Fusion: A Hybrid Contrastive Attentive Graph Neural Network for Network Intrusion Detection2 Mar 2025
- 2024NIDS Neural Networks Using Sliding Time Window Data Processing with Trainable Activations and its Generalization Capability24 Oct 2024
- 2024Expectations Versus Reality: Evaluating Intrusion Detection Systems in Practice26 Mar 2024