Back to search

Brock University

Transformer-Based Intrusion Detection for 5G Core Networks

Abstract

dc:description.abstract

The security of the 5G Core network is critical, particularly as it adopts a cloud-native, service-based architecture. While this design enhances scalability and flexibility, it also increases the network’s exposure to novel and evolving attack vectors. Recent research has addressed this issue, but more robust models are needed, and more study is required to assess the feasibility of deploying such models in real-world scenarios especially when considering hundreds of packets are sent and received each second by the 5G Core network. To address this challenge, we present a Transformer-based Intrusion Detection System (IDS) tailored for 5G Core environments. Leveraging BERT and its variants—RoBERTa, DistilBERT, and ALBERTa—our system classifies network traffic as benign or malicious using data collected from a containerized testbed built with Free5GC and UERANSIM. Experimental results demonstrate that BERT, DistilBERT, and RoBERTa each achieved 100% accuracy, precision, recall, and F1 score, while ALBERTa followed closely with 99.87% on all metrics. Among them, DistilBERT stands out as the most efficient, achieving perfect accuracy with the lowest training time (191.68 s), inference time (0.28 s), GPU memory usage (1987.88 MB), and parameter count (66.96M). These results highlight DistilBERT as the most suitable model for real-time deployment in cloud-native 5G security frameworks, offering a strong balance between detection performance and computational efficiency.

Degree

thesis:*
Name thesis:degree_name
M.Sc. Computer Science
Level thesis:degree_level
Master
Discipline thesis:degree_discipline
Faculty of Mathematics and Science
Department dc:contributor.department
Department of Computer Science
Grantor dc:publisher
Brock University
Year dc:date.issued
2025

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Thulasinathan, Yathusan

Subjects

dc:subject × 2

Rights

Language dc:language.iso
en

Identifiers

dc:identifier.*
Handle dc:identifier.uri
https://hdl.handle.net/10464/19789

Chain of custody

source
Harvested from
Brock University
Base URL
brocku.scholaris.ca/server/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

Thulasinathan, Yathusan. Transformer-Based Intrusion Detection for 5G Core Networks. Master thesis, Brock University, 2025. https://hdl.handle.net/10464/19789