As wireless networks evolve into the backbone of modern society, they become increasingly exposed to emerging security threats. Although many works explore AI-based intrusion detection systems for 5 G wireless networks, the proposed algorithms are typically characterized by closed-set assumptions: once trained on a finite number of attack classes, they lack mechanisms for automatic updates on novel classes of attacks. This limitation becomes critical in scenarios where new threats emerge daily. To address this, we propose a framework for real-time detection of zero-day attacks. Our approach exploits Vision Transformers (ViT) to process network flows represented as images, enabling the capture of complex temporal and spatial patterns in data traffic. To cope with previously unseen attack classes, the ViT is equipped with a modular classification head that flags low-confidence samples as potential novel attacks. These samples are then processed with DBSCAN to discover new attack classes, thereby avoiding the need for full model retraining. The proposed model achieves an average F 1 -score of 94%, showing performance comparable to existing computer vision-based intrusion detection system approaches. We further tested the incremental learning system with a Leave-One-ClassOut protocol. Under this setting, the framework achieves nearbaseline performance for several minority classes, and limited recovery for majority or overlapping classes. This shows that flow-based visual encoding combined with self-attention can support zero-day classification when the held-out distribution is well-separated in the embedding space.

Incremental Vision Transformers for Zero-Day Attack Detection in NextG Wireless Networks

Andriolli, Nicola
Ultimo
2026-01-01

Abstract

As wireless networks evolve into the backbone of modern society, they become increasingly exposed to emerging security threats. Although many works explore AI-based intrusion detection systems for 5 G wireless networks, the proposed algorithms are typically characterized by closed-set assumptions: once trained on a finite number of attack classes, they lack mechanisms for automatic updates on novel classes of attacks. This limitation becomes critical in scenarios where new threats emerge daily. To address this, we propose a framework for real-time detection of zero-day attacks. Our approach exploits Vision Transformers (ViT) to process network flows represented as images, enabling the capture of complex temporal and spatial patterns in data traffic. To cope with previously unseen attack classes, the ViT is equipped with a modular classification head that flags low-confidence samples as potential novel attacks. These samples are then processed with DBSCAN to discover new attack classes, thereby avoiding the need for full model retraining. The proposed model achieves an average F 1 -score of 94%, showing performance comparable to existing computer vision-based intrusion detection system approaches. We further tested the incremental learning system with a Leave-One-ClassOut protocol. Under this setting, the framework achieves nearbaseline performance for several minority classes, and limited recovery for majority or overlapping classes. This shows that flow-based visual encoding combined with self-attention can support zero-day classification when the held-out distribution is well-separated in the embedding space.
File in questo prodotto:
Non ci sono file associati a questo prodotto.

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11568/1377847
 Attenzione

Attenzione! I dati visualizzati non sono stati sottoposti a validazione da parte dell'ateneo

Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 0
  • ???jsp.display-item.citation.isi??? 0
social impact