PloS one

Open-set detection of training-time unseen attacks in encrypted traffic based on a multi-granularity pre-trained transformer and prototype contrastive learning.

Siyan Gao

School of Electrical & Electronic Engineering, Nanyang Technological University, Singapore, Singapore.

Computational

Key points

From the paper's conclusion
  • These results support open-set detection of training-time unseen attacks under controlled benchmark protocols; they should be interpreted as a zero-day proxy rather than direct evidence of detecting undisclosed real-world exploits.

Abstract

With the widespread use of encrypted communication protocols, payload-based inspection is increasingly constrained, making it difficult to identify command-and-control communication, malicious downloads, scanning, lateral movement, and other attacks hidden in encrypted channels. Existing encrypted-traffic classifiers achieve high accuracy on known categories but usually rely on a closed-set assumption and may therefore force previously unseen traffic into known classes. This study proposes MGPT-PCL-OSD, an open-set detector for training-time unseen attack classes, which are used as a reproducible proxy for zero-day behavior rather than as evidence of previously undisclosed real-world exploits. The method represents traffic at byte-fragment, packet, flow, session, and interaction-graph levels, learns cross-granularity context through multi-task self-supervised pre-training, and uses prototype contrastive learning to compact known-class distributions and enlarge inter-class margins. Open-set rejection jointly considers nearest sub-prototype distance, class radius, classification confidence, energy, and predictive uncertainty; rejected traffic can then be clustered and incorporated through analyst-confirmed, replay-assisted prototype updates. Across five class-level holdout splits and three random seeds per split, MGPT-PCL-OSD achieves 94.1 ± 0.3% Accuracy, 93.5 ± 0.4% Macro-F1, 93.7 ± 0.6% open-set AUROC, and 86.8 ± 0.7% OSCR. The improvements over the strongest MIETT-like baseline are significant after adjustment (p < 0.001). On a matched CICIDS2017 S1 comparison, the proposed method reaches 93.8% AUROC and 14.7% FPR@95TPR, outperforming MSP, Energy, OpenMax, Mahalanobis, ARPL, and two traffic-specific open-set baselines under the same input/backbone control. The unknown-discovery stage achieves ARI 0.82 ± 0.05 and NMI 0.85 ± 0.04, and end-to-end single-flow latency is 11.0 ms on an RTX 3090. These results support open-set detection of training-time unseen attacks under controlled benchmark protocols; they should be interpreted as a zero-day proxy rather than direct evidence of detecting undisclosed real-world exploits.

Read the paper

Discussion

Science Skim's AI key points, plus readers' public thoughts

Readers' thoughts

No reader thoughts yet.

Related papers