arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.10558cs.SE
收藏

FP-Predictor - 静态分析报告中的误报预测

FP-Predictor - False Positive Prediction for Static Analysis Reports

Paderborn University(帕德博恩大学);Heinz Nixdorf Institute at Paderborn University(帕德博恩大学海因茨·尼克斯多夫研究所);Fraunhofer IEM(弗劳恩霍夫应用集成电路研究所)

Tom Ohlmer, Michael Schlichtig, Eric Bodden

AI总结:

FP-Predictor通过图卷积网络预测静态分析报告中的误报,提升安全分析的准确性和实用性。

摘要:

静态应用安全测试(SAST)工具在现代软件开发中通过自动检测源代码中的潜在漏洞起着关键作用。然而,其有效性常受到高误报率的限制,这会浪费开发人员的努力并削弱对自动化分析的信任。本文提出了一种图卷积网络(GCN)模型,旨在预测SAST报告为真阳性和误报。该模型利用从静态分析结果构建的代码属性图(CPGs)来捕捉代码中的结构和语义关系。在CamBenchCAP数据集上训练后,该模型在80/20的训练-测试划分下达到了100%的测试集准确率。在CryptoAPI-Bench基准测试中,该模型进一步展示了其实际应用价值,达到了高达96.6%的总体准确率。详细的定性检查发现,许多被标记为误分类的案例实际上对应真正的安全弱点,表明该模型有效地反映了保守、安全意识强的推理。识别出的限制包括由于缺少跨过程连接导致的控制流表示不完整。未来的工作将聚焦于整合调用图、应用图解释技术,并在多个SAST工具上扩展训练数据以提高泛化能力和可解释性。

英文摘要:

Static Application Security Testing (SAST) tools play a vital role in modern software development by automatically detecting potential vulnerabilities in source code. However, their effectiveness is often limited by a high rate of false positives, which wastes developer's effort and undermines trust in automated analysis. This work presents a Graph Convolutional Network (GCN) model designed to predict SAST reports as true and false positive. The model leverages Code Property Graphs (CPGs) constructed from static analysis results to capture both, structural and semantic relationships within code. Trained on the CamBenchCAP dataset, the model achieved an accuracy of 100% on the test set using an 80/20 train-test split. Evaluation on the CryptoAPI-Bench benchmark further demonstrated the model's practical applicability, reaching an overall accuracy of up to 96.6%. A detailed qualitative inspection revealed that many cases marked as misclassifications corresponded to genuine security weaknesses, indicating that the model effectively reflects conservative, security-aware reasoning. Identified limitations include incomplete control-flow representation due to missing interprocedural connections. Future work will focus on integrating call graphs, applying graph explainability techniques, and extending training data across multiple SAST tools to improve generalization and interpretability.

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

↑