arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2506.19802cs.CRcs.IR
收藏

KnowML: 利用攻击知识图提升ML-NIDS的泛化能力

KnowML: Improving Generalization of ML-NIDS with Attack Knowledge Graphs

Imperial College London(帝国理工学院);King’s College London(伦敦国王学院);University College London(伦敦大学学院)

Xin Fan Guo, Xinran Zheng, Albert Merono Penuela, Lorenzo Cavallaro, Sergio Maffeis, Fabio Pierazzi

AI总结:

提出KnowML框架,通过LLM构建攻击知识图并编码到特征空间,解决异常检测NIDS因特征空间缺陷导致的泛化问题,在仅用良性流量训练时实现高达99%检测率且误报率≤0.0137%。

摘要:

基于异常的ML-NIDS(A-NIDS)从良性数据中建模正常网络行为,并将偏离基线的行为分类为异常,理论上无需标记攻击数据即可检测不断演变的攻击变体。A-NIDS的泛化能力关键取决于表示网络行为的特征空间质量。然而,编码攻击相关语义的特征空间需求很少受到关注且仍未被充分理解。因此,这些系统仍难以满足实际运行约束(低误报率而不损害检测性能,以及对攻击变体的泛化)。我们识别出当前特征空间的两个局限性:第一,维度外盲区,即特征未捕获关键攻击机制属性;第二,攻击策略聚合失败,即特征无法编码复合攻击行为。此外,我们证明两种基于数据驱动的最新泛化框架(基于增量学习和对比学习)无法弥补这些特征层面的缺陷。为弥补这一差距,我们提出KnowML,一种将攻击领域知识直接编码到特征空间的框架。对于每个攻击家族,我们的方法利用LLM从攻击实现中构建相应的知识图(KG)。然后对KG应用符号推理以枚举潜在攻击策略及其组合。由此产生的知识增强特征空间使得即使仅在良性流量上训练也能实现有效泛化,这是当前方法无法达到的能力。系统的实证评估表明,KnowML在保持误报率≤0.0137%的同时实现了高达99%的检测率,在多种攻击变体上显著优于当代基于特征的基线方法。

英文摘要:

Anomaly-based ML-NIDS (A-NIDS) model normal network behavior from benign data and classify deviations from this baseline as anomalies, theoretically enabling the detection of evolving attack variants without labeled attack data. The ability of A-NIDS to generalize critically depends on the quality of the feature space representing network behavior. However, the requirement for feature spaces that encode attack-relevant semantics has received little attention and remains poorly understood. As a consequence, these systems still struggle to meet practical operational constraints (low false positive rates without compromising detection performance and generalization to attack variants). We identify two limitations in the current feature spaces. First, Out-of-Dimension Blindness, where features do not capture essential attack mechanism properties. Second, Attack Strategy Aggregation Failure, where features cannot encode composite attack behaviors. Moreover, we demonstrate that two SotA data-driven generalization frameworks (based on incremental and contrastive learning) cannot compensate for these feature-level shortcomings. To bridge this gap, we present KnowML, a framework that encodes attack domain knowledge directly into the feature space. For each attack family, our method employs LLMs to construct a corresponding Knowledge Graph (KG) from attack implementations. Symbolic reasoning is then applied over the KG to enumerate potential attack strategies and their compositions. The resulting Knowledge-Augmented Feature Space enables effective generalization even when trained exclusively on benign traffic, a capability beyond current approaches. Systematic empirical evaluations show that KnowML achieves up to 99% detection rates while maintaining false positive rates at or below 0.0137%, substantially outperforming contemporary feature-based baselines across diverse attack variants.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑