Applying Self-supervised Learning to Network Intrusion Detection for Network Flows with Graph Neural Network
Renjie Xu, Guangwei Wu, Weiping Wang, Xing Gao, An He, Zhengpeng Zhang

TL;DR
This paper introduces a novel self-supervised GNN approach for classifying network flows into multiple attack types in NIDS, eliminating the need for manual labels and demonstrating strong results on real-world datasets.
Contribution
It presents the first GNN-based self-supervised method for multiclass network flow classification in NIDS, utilizing graph contrastive learning and a new structured contrastive loss.
Findings
Outperforms state-of-the-art supervised and self-supervised models
Effective in identifying specific attack types in large-scale real-world data
Demonstrates potential for practical deployment in complex network environments
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsNetwork Security and Intrusion Detection
MethodsFocus · Contrastive Learning
