A Novel Contrastive Loss for Zero-Day Network Intrusion Detection

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Wilkie, Jack, Hindy, Hanan, Michie, Craig, Tachtatzis, Christos, Irvine, James, Atkinson, Robert
Format: Preprint
Veröffentlicht: 2026
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866909990841745408
author Wilkie, Jack
Hindy, Hanan
Michie, Craig
Tachtatzis, Christos
Irvine, James
Atkinson, Robert
author_facet Wilkie, Jack
Hindy, Hanan
Michie, Craig
Tachtatzis, Christos
Irvine, James
Atkinson, Robert
contents Machine learning has achieved state-of-the-art results in network intrusion detection; however, its performance significantly degrades when confronted by a new attack class -- a zero-day attack. In simple terms, classical machine learning-based approaches are adept at identifying attack classes on which they have been previously trained, but struggle with those not included in their training data. One approach to addressing this shortcoming is to utilise anomaly detectors which train exclusively on benign data with the goal of generalising to all attack classes -- both known and zero-day. However, this comes at the expense of a prohibitively high false positive rate. This work proposes a novel contrastive loss function which is able to maintain the advantages of other contrastive learning-based approaches (robustness to imbalanced data) but can also generalise to zero-day attacks. Unlike anomaly detectors, this model learns the distributions of benign traffic using both benign and known malign samples, i.e. other well-known attack classes (not including the zero-day class), and consequently, achieves significant performance improvements. The proposed approach is experimentally verified on the Lycos2017 dataset where it achieves an AUROC improvement of .000065 and .060883 over previous models in known and zero-day attack detection, respectively. Finally, the proposed method is extended to open-set recognition achieving OpenAUC improvements of .170883 over existing approaches.
format Preprint
id arxiv_https___arxiv_org_abs_2601_09902
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle A Novel Contrastive Loss for Zero-Day Network Intrusion Detection
Wilkie, Jack
Hindy, Hanan
Michie, Craig
Tachtatzis, Christos
Irvine, James
Atkinson, Robert
Cryptography and Security
Artificial Intelligence
Machine Learning
Networking and Internet Architecture
I.2.6; K.6.5
Machine learning has achieved state-of-the-art results in network intrusion detection; however, its performance significantly degrades when confronted by a new attack class -- a zero-day attack. In simple terms, classical machine learning-based approaches are adept at identifying attack classes on which they have been previously trained, but struggle with those not included in their training data. One approach to addressing this shortcoming is to utilise anomaly detectors which train exclusively on benign data with the goal of generalising to all attack classes -- both known and zero-day. However, this comes at the expense of a prohibitively high false positive rate. This work proposes a novel contrastive loss function which is able to maintain the advantages of other contrastive learning-based approaches (robustness to imbalanced data) but can also generalise to zero-day attacks. Unlike anomaly detectors, this model learns the distributions of benign traffic using both benign and known malign samples, i.e. other well-known attack classes (not including the zero-day class), and consequently, achieves significant performance improvements. The proposed approach is experimentally verified on the Lycos2017 dataset where it achieves an AUROC improvement of .000065 and .060883 over previous models in known and zero-day attack detection, respectively. Finally, the proposed method is extended to open-set recognition achieving OpenAUC improvements of .170883 over existing approaches.
title A Novel Contrastive Loss for Zero-Day Network Intrusion Detection
topic Cryptography and Security
Artificial Intelligence
Machine Learning
Networking and Internet Architecture
I.2.6; K.6.5
url https://arxiv.org/abs/2601.09902