arXiv:2611.06225cs.CRNov 2026

Manuscript Offprint

arXiv:2611.06225

Explainable Anomaly Detection in 5G Networks through Continuous Time Graphs

Thomas Hoger, Philippe Owezarski

Thomas Hoger

LAAS - CNRS, Université de Toulouse

Toulouse, France

thomas.hoger@laas.fr

Philippe Owezarski

LAAS - CNRS, Université de Toulouse

Toulouse, France

owe@laas.fr

Abstract—5G networks increasingly resemble distributed systems in their design. It then becomes crucial to move beyond traditional network-based detection methods and to explore alternative approaches. In this work, we propose a formalization of 5G network exchanges as a dynamic graph, on which we apply techniques from the field of graph-based learning to detect anomalies effectively. This representation allows for fine-grained analysis of packet-level semantic content, while simultaneously capturing sequential and topological contexts, both of which are essential for identifying sophisticated and multi-stage attacks. To assess the effectiveness of this formalism, we evaluate it with the most popular dynamic graph models, demonstrating its potential for 5G anomaly detection.

Index Terms—5G network, anomaly detection, explainability, graph neural network

I. INTRODUCTION

Beyond the improvements in service quality enabled by physical innovations, 5G also introduces a major paradigm shift for mobile network architectures. While the core network was traditionally deployed on specialized hardware and relied on dedicated protocol stacks, it is now virtualized and software-driven, with independent network functions interacting through standardized interfaces. This paradigm shift brings 5G architectures closer to distributed systems, while making the network more flexible and dynamic.

Yet, these benefits also come at the cost of an increased attacking surface. Indeed, 5G remains vulnerable to attacks affecting traditional networks but also introduces novel attack vectors specific to its new ecosystem [1]–[4]. As these attacks rely on application-layer payloads, traditional IDSs based on quantitative flow analysis are no longer sufficient. This highlights the need for techniques that consider network traffic at the packet level.

We identify three dimensions for characterizing these attacks. The semantic dimension captures the intrinsic content of packets. However, attacks can also manifest through anomalies in the surrounding context. This context can be sequential, when messages from the same entity are repeatedly exchanged, or topological, when the communication pattern between entities is abnormal, as in a Man-in-the-Middle (MITM) attack.

These dimensions are complementary and should be considered jointly to detect novel 5G threats. Yet, their simultaneous consideration remains largely absent from the state of the art. For instance, AutoGuard, ADSeq, and 5GCGuard focus exclusively on the sequential dimension, which they analyze using RNNs [5]–[7]. Similarly, Kale et al. [8] consider only the semantic dimension by analyzing packet content with CNNs. Other approaches, as Lam et al. [9], combine two dimensions by feeding the output of a CNN into an RNN, capturing both the semantic and sequential dimensions while overlooking the topological one.

To the best of our knowledge, GSAD [10] is the only approach that jointly considers the three dimensions. It combines a CNN for semantics, an RNN for sequences, and a graph neural network (GNN) for interactions between entities. However, its semantic analysis remains limited by the CNN, which simply aggregates byte values without explicitly interpreting their meaning, potentially missing subtle value shifts. Furthermore, the sequential use of three separate models limits their ability to capture correlations across dimensions. These limitations motivate the use of a unified representation that can jointly capture these dimensions rather than processing them through separate models.

These limitations call for a more integrated representation of network interactions. Dynamic graphs provide such a framework, naturally representing semantic, sequential, and topological information within the same structure. We therefore represent 5G communications as Continuous-Time Dynamic Graphs (CTDGs) and experimentally evaluate this approach using state-of-the-art machine learning models within a recent framework for benchmarking dynamic graph learning methods. Throughout this paper, we use the terms formalism to refer to the proposed graph representation and model exclusively to refer to the machine learning models applied to it.

Beyond capturing the topological dimension, graph formalizations also offer a visual and interpretable view of network interactions. The proposed formalization therefore also provides a high degree of explainability, which is particularly valuable in operational settings, where anomalies may result from novel but legitimate behavior.

The paper is organized as follows: Section II introduces the key contextual elements that define the scope of our problem. Section III reviews related work on graph neural networks. Section IV presents our formalization, while Section V describes our anomaly detection methodology. Section VI details the models and datasets used to validate our approach.

Figure

Fig. 1: Non-roaming 5G architecture and key protocols

Finally, Section VIII concludes the paper by summarizing our contributions and outlining future work.

References (29)