UntrustVul: 一种自动识别漏洞检测模型中不可信警报的方法
UntrustVul: An Automated Approach for Identifying Untrustworthy Alerts in Vulnerability Detection Models
AI总结:
本文提出UntrustVul方法,通过识别与漏洞无关的代码行来自动检测不可信的漏洞预测,实验表明其在AUC和F1-score上优于现有方法。
摘要:
机器学习(ML)在漏洞检测中展现出潜力,但ML检测器可能依赖于无关的代码特征,导致非漏洞行被错误标记为可疑。这种误导性预测会增加开发人员的手动工作量,并可能导致错误的修补策略,因此需要自动识别不可信的预测。我们提出了UntrustVul,一种通过识别与漏洞无关的代码行来检测不可信漏洞预测的方法。UntrustVul利用历史漏洞行的模式,并在高亮行不匹配已知漏洞模式且不影响其他行时标记预测为不可信。一个代码行被视为漏洞无关,如果它不类似于历史漏洞,并且其在数据和控制依赖图中的所有后继行也都是漏洞无关的。该方法设计保守以最小化将可信预测误判为不可信。我们评估了UntrustVul在BigVul、MegaVul、SARD和PrimeVul数据集上115,000个预测的结果。结果显示,UntrustVul在AUC分数上达到70%-88%,F1分数达到82%-94%,在AUC和F1分数上分别优于现有方法6%-59%和13%-92%。
英文摘要:
Machine learning (ML) has shown promise in vulnerability detection, but ML detectors may rely on irrelevant code features, causing them to highlight non-vulnerable lines as suspicious. Such misleading predictions increase developers' manual effort and may lead to incorrect patching strategies, motivating the need to identify untrustworthy predictions automatically. We present UntrustVul, an approach for detecting untrustworthy vulnerability predictions by identifying suspicious lines that are inherently unrelated to vulnerabilities. UntrustVul leverages patterns from historical vulnerable lines and flags predictions as untrustworthy when the highlighted lines neither match known vulnerability patterns nor influence lines that do. A line is considered vulnerability-irrelevant if it does not resemble historical vulnerabilities and all its successors in the data and control dependency graph are also vulnerability-irrelevant. The approach is designed conservatively to minimise misclassifying trustworthy predictions as untrustworthy. We evaluate UntrustVul on 115K predictions from four models across the BigVul, MegaVul, SARD, and PrimeVul datasets. Results show that UntrustVul achieves AUC scores of 70%-88% and F1-scores of 82%-94%, outperforming existing approaches by 6%-59% in AUC and 13%-92% in F1-score.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。