[Paper Review] Anomal-E: A Self-Supervised Network Intrusion Detection System based on Graph Neural Networks
Anomal-E is a self-supervised graph neural network (GNN)-based network intrusion detection system that leverages both edge features and graph topology to learn robust, label-free representations of network traffic. It outperforms supervised and baseline GNN methods on two benchmark datasets, achieving up to 95.39% macro F1-score with isolation forest, demonstrating superior generalization and anomaly detection capability without requiring labeled data.
This paper investigates Graph Neural Networks (GNNs) application for self-supervised network intrusion and anomaly detection. GNNs are a deep learning approach for graph-based data that incorporate graph structures into learning to generalise graph representations and output embeddings. As network flows are naturally graph-based, GNNs are a suitable fit for analysing and learning network behaviour. The majority of current implementations of GNN-based Network Intrusion Detection Systems (NIDSs) rely heavily on labelled network traffic which can not only restrict the amount and structure of input traffic, but also the NIDSs potential to adapt to unseen attacks. To overcome these restrictions, we present Anomal-E, a GNN approach to intrusion and anomaly detection that leverages edge features and graph topological structure in a self-supervised process. This approach is, to the best our knowledge, the first successful and practical approach to network intrusion detection that utilises network flows in a self-supervised, edge leveraging GNN. Experimental results on two modern benchmark NIDS datasets not only clearly display the improvement of using Anomal-E embeddings rather than raw features, but also the potential Anomal-E has for detection on wild network traffic.
Motivation & Objective
- To address the limitations of supervised NIDS models that rely on scarce, labeled network traffic, especially for zero-day and advanced persistent threats.
- To overcome the restriction of existing GNN-based NIDS that ignore critical edge-level (packet-level) information in favor of node features.
- To develop a practical, self-supervised GNN framework that learns meaningful network flow representations without requiring labeled data.
- To evaluate the effectiveness of edge-aware, topology-aware self-supervised representation learning for anomaly detection in real-world network traffic scenarios.
Proposed method
- Anomal-E employs E-GraphSAGE, a modified GraphSAGE variant that captures both node topology and edge-level features in network flow graphs.
- It uses a modified deep graph infomax (DGI) objective to maximize mutual information between local edge representations and global graph-level context in a self-supervised manner.
- The model generates edge embeddings that encode both structural and feature-based information from network flows, enabling downstream anomaly detection.
- These edge embeddings are then fed into traditional anomaly detection algorithms such as isolation forest, PCA, CBLOF, and HBOS for intrusion classification.
- The framework is trained end-to-end in a self-supervised fashion, eliminating the need for labeled attack instances.
- The approach models network traffic as a graph where hosts are nodes and flows are edges with rich feature vectors, enabling holistic pattern learning.
Experimental results
Research questions
- RQ1Can a self-supervised GNN-based NIDS effectively detect network intrusions without relying on labeled training data?
- RQ2Does incorporating edge-level features and topological structure in GNNs improve detection performance compared to node-only or raw feature baselines?
- RQ3How well does Anomal-E generalize across diverse, real-world network traffic datasets such as NF-UNSW-NB15 and CSE-CIC-IDS2018?
- RQ4Can the self-supervised representation learning in Anomal-E capture complex attack patterns like lateral movement in APTs without supervision?
- RQ5How does Anomal-E compare to existing GNN-based and non-GNN-based NIDS baselines in terms of macro F1-score and detection rate?
Key findings
- Anomal-E achieved a macro F1-score of 95.39% on the NF-CSE-CIC-IDS2018-v2 dataset when combined with isolation forest, significantly outperforming baseline models.
- On average across both datasets, Anomal-E-CBLOF and Anomal-E-HBOS achieved 93.04% and 91.89% macro F1-scores, respectively, compared to 72.07% and 74.69% for GraphSAGE-based baselines.
- In 4% contamination scenarios, Anomal-E-HBOS maintained a macro F1-score of 91.89% across datasets, while GraphSAGE-HBOS dropped to 74.69%.
- Anomal-E demonstrated strong generalization, performing well on both NF-UNSW-NB15-v2 and CSE-CIC-IDS2018-v2, whereas baseline models like GraphSAGE underperformed on one dataset despite strong performance on the other.
- The use of DGI and E-GraphSAGE in Anomal-E enabled effective self-supervised representation learning, with DGI-based models achieving only 47.91% average macro F1, confirming the superiority of the proposed architecture.
- Anomal-E achieved a detection rate of 98.77% on NF-UNSW-NB15-v2 under 4% contamination with isolation forest, indicating high sensitivity to anomalies.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.