用系统调用特征检测漏洞,发现部分弱类型可跨漏洞通用,但效果差异大。
From CVE to CWE: Syscall-Based HIDS Generalisation

- 基于系统调用特征,用单类异常检测器学习同一弱类型(CWE)的正常行为
- 仅对弱类型CWE-307实现较好泛化(F1=0.6976),CWE-89和CWE-434效果差(F1≤0.21)
- 跨漏洞迁移效果依赖源样本覆盖范围,而非仅靠CWE标签,适合安全检测研究者
基于系统调用的主机入侵检测系统(HIDS)通常针对具体漏洞(CVE)进行训练与评估。但在实际防御中,需识别已知弱点类型的新变种。本文通过六组来自LID-DS-2021的数据,按三种弱类型家族(CWE-307:认证绕过、CWE-89:SQL注入、CWE-434:无限制文件上传)分组,每滑动窗口提取66维彭-郭特征向量,使用隔离森林与SGD单类SVM在正常行为上训练,并校准至固定假阳性率(FPR=0.05)。研究涵盖自检、跨CVE迁移、组合式弱类型模型、特征筛选对迁移性的影响等四类问题。结果表明,组合的CWE-307检测器在目标FPR=0.05下达到F1=0.6976(精确率0.8994,召回率0.5698),而CWE-89与CWE-434均低于F1=0.21。跨漏洞迁移具有强方向性,且受源样本覆盖广度主导,非仅由CWE标签决定。结论为:当前系统调用特征下,部分弱类型可实现经验性泛化,但非全部;同时强调校准假阳性率是诚实报告的关键前提。
原文摘要 · Abstract (English)
Host intrusion detection systems (HIDS) based on system-call traces are typically trained and evaluated against individual Common Vulnerabilities and Exposures (CVE) instances. In operational settings, however, defenders need to recognise new exploits of an already known type of weakness. We empirically examine whether a one-class anomaly detector trained on the normal behaviour of a set of CVEs that share a Common Weakness Enumeration (CWE) class generalises to a different, unseen CVE inside the same class. Using six scenarios drawn from LID-DS-2021 and grouped into three CWE families (CWE-307 broken authentication, CWE-89 SQL injection, CWE-434 unrestricted file upload), we extract a 66-dimensional Peng-Guo-style feature vector per sliding window and train Isolation Forest and SGD One-Class SVM detectors with normal-only thresholds calibrated to fixed target false positive rates. We define and answer four research questions covering self-detection, asymmetric cross-CVE transfer, the value of a combined CWE-level normal profile, and the effect of feature filtering on transferability. The combined CWE-307 detector reaches F1 = 0.6976 at calibration target FPR = 0.05 (precision = 0.8994, recall = 0.5698), whereas CWE-89 and CWE-434 collapse to F1 <= 0.21 under the same protocol. Cross-CVE transfer turns out to be strongly direction-dependent and dominated by the breadth of the source normal profile rather than by the CWE label. We conclude that CWE-level generalisation in HIDS is empirically attainable for some but not all weakness families with current syscall features, and we argue that calibrated FPR is a methodological prerequisite for honest reporting in this setting.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。