Self-Supervised Learning of Graph Representations for Network Intrusion Detection

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Guerra, Lorenzo, Chapuis, Thomas, Duc, Guillaume, Mozharovskyi, Pavlo, Nguyen, Van-Tam
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866914211562520576
author Guerra, Lorenzo
Chapuis, Thomas
Duc, Guillaume
Mozharovskyi, Pavlo
Nguyen, Van-Tam
author_facet Guerra, Lorenzo
Chapuis, Thomas
Duc, Guillaume
Mozharovskyi, Pavlo
Nguyen, Van-Tam
contents Detecting intrusions in network traffic is a challenging task, particularly under limited supervision and constantly evolving attack patterns. While recent works have leveraged graph neural networks for network intrusion detection, they often decouple representation learning from anomaly detection, limiting the utility of the embeddings for identifying attacks. We propose GraphIDS, a self-supervised intrusion detection model that unifies these two stages by learning local graph representations of normal communication patterns through a masked autoencoder. An inductive graph neural network embeds each flow with its local topological context to capture typical network behavior, while a Transformer-based encoder-decoder reconstructs these embeddings, implicitly learning global co-occurrence patterns via self-attention without requiring explicit positional information. During inference, flows with unusually high reconstruction errors are flagged as potential intrusions. This end-to-end framework ensures that embeddings are directly optimized for the downstream task, facilitating the recognition of malicious traffic. On diverse NetFlow benchmarks, GraphIDS achieves up to 99.98% PR-AUC and 99.61% macro F1-score, outperforming baselines by 5-25 percentage points.
format Preprint
id arxiv_https___arxiv_org_abs_2509_16625
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Self-Supervised Learning of Graph Representations for Network Intrusion Detection
Guerra, Lorenzo
Chapuis, Thomas
Duc, Guillaume
Mozharovskyi, Pavlo
Nguyen, Van-Tam
Machine Learning
Cryptography and Security
Detecting intrusions in network traffic is a challenging task, particularly under limited supervision and constantly evolving attack patterns. While recent works have leveraged graph neural networks for network intrusion detection, they often decouple representation learning from anomaly detection, limiting the utility of the embeddings for identifying attacks. We propose GraphIDS, a self-supervised intrusion detection model that unifies these two stages by learning local graph representations of normal communication patterns through a masked autoencoder. An inductive graph neural network embeds each flow with its local topological context to capture typical network behavior, while a Transformer-based encoder-decoder reconstructs these embeddings, implicitly learning global co-occurrence patterns via self-attention without requiring explicit positional information. During inference, flows with unusually high reconstruction errors are flagged as potential intrusions. This end-to-end framework ensures that embeddings are directly optimized for the downstream task, facilitating the recognition of malicious traffic. On diverse NetFlow benchmarks, GraphIDS achieves up to 99.98% PR-AUC and 99.61% macro F1-score, outperforming baselines by 5-25 percentage points.
title Self-Supervised Learning of Graph Representations for Network Intrusion Detection
topic Machine Learning
Cryptography and Security
url https://arxiv.org/abs/2509.16625