信息安全研究 ›› 2026, Vol. 12 ›› Issue (11): 1031-1041.DOI: 10.12379/j.issn.2096-1057.2026.11.07

• • 上一篇    

面向未知威胁的无监督流量异常检测方法

张朕,孙硕超,刘新鹏   

  • 发布日期:2026-11-11

An Unsupervised Traffic Anomaly Detection Method for Unknown Threats

Zhang Zhen, Sun ShuoChao, Liu XinPeng   

  • Published:2026-11-11

摘要: 随着网络业务规模持续增长以及加密通信、复杂协议和动态交互方式的广泛出现,网络流量异常检测面临未知威胁增多、攻击标签稀缺和数据分布时变等挑战。针对网络流量异常检测中未知威胁增多、攻击标签稀缺以及数据分布时变等问题,本文提出一种面向未知威胁的无监督网络流量异常检测方法(Multi-view Unsupervised Self-supervised Traffic Anomaly Detection,MUST-AD)。该方法以网络流为检测对象,融合统计行为、时序演化和通信关系构建多视角表示,通过掩码重构与跨视角对比相结合的自监督学习建立正常流量潜在表示空间,并结合正常原型组织、联合异常评分和漂移感知在线更新,实现对未知异常流量的综合检测。实验在UNSW-NB15、CIC-IDS2017和MAWIFlow数据集上开展。在同域静态检测场景下,MUST-AD的Accuracy和AUC较对比方法提高0.1%~0.3%,F1提高约0.6~1.0个百分点;在跨数据集条件下,AUC 提高2~3个百分点;在MAWIFlow上,AUC达到0.915~0.920;在跨时间泛化场景下,AUC达到0.84,高于对比方法的0.79和0.61。实验结果表明,MUST-AD在同域检测、跨数据集迁移和跨时间测试中均取得较稳定的检测结果,并能够降低时变流量条件下的性能退化。

关键词: 未知威胁;网络流量异常检测;无监督学习;自监督学习;多视角表征;在线更新

Abstract: With the continuous growth of network services and the widespread adoption of encrypted communications, complex protocols, and dynamic interaction patterns, network traffic anomaly detection is facing increasing challenges, including the emergence of unknown threats, the scarcity of attack labels, and time-varying data distributions. To address these issues, this paper proposes an unsupervised network traffic anomaly detection method for unknown threats, named Multi-view Unsupervised Self-supervised Traffic Anomaly Detection (MUST-AD). Taking network flows as detection objects, the proposed method constructs multi-view representations by jointly modeling statistical behavior, temporal evolution, and communication relationships. It then establishes a latent representation space for normal traffic through a self-supervised learning strategy that combines masked reconstruction and cross-view contrastive learning. In addition, normal prototype organization, joint anomaly scoring, and drift-aware online updating are integrated to achieve comprehensive detection of unknown anomalous traffic. Experiments are conducted on the UNSW-NB15, CIC-IDS2017, and MAWIFlow datasets. The results show that, in-domain static detection scenarios, MUST-AD improves Accuracy and AUC by 0.1%~0.3% and improves F1 by approximately 0.6~1.0 percentage points compared with baseline methods. Under cross-dataset settings, the AUC is improved by 2~3 percentage points. On MAWIFlow, the AUC reaches 0.915~0.920. In cross-time generalization scenarios, the AUC reaches 0.84, outperforming the compared methods with AUC values of 0.79 and 0.61. The proposed method can simultaneously maintain detection performance, cross-scenario generalization capability.

Key words: unknown threats; network traffic anomaly detection; unsupervised learning; self-supervised learning; multi-view representation; online updating

中图分类号: