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

基于表示学习的静态分析工具排序

Ranking Warnings of Static Analysis Tools Using Representation Learning

Kien-Tuan Ngo, Dinh-Truong Do, Thu-Trang Nguyen, Hieu Dinh Vo

摘要:

静态分析工具经常用于检测软件系统中的潜在漏洞。然而,这些工具的一个不可避免的问题是它们具有高误报率的大量警告,这消耗了调查的时间和精力。在本文中,我们提出了DeFP,一种新的方法排名静态分析警告。基于直觉,具有相似上下文的警告往往具有相似的标签(真阳性或假阳性),DeFP使用两个BiLSTM模型构建,以捕获与标记警告的上下文相关的模式。之后,对于一组新的警告,DeFP可以根据它们成为真阳性的可能性(即,实际漏洞)。我们在10个真实项目的数据集上的实验结果表明,使用DeFP,只需调查60%的警告,开发人员就可以找到+90%的实际漏洞。此外,DeFP在精度和召回率方面都将最先进的方法提高了30%。

英文摘要:

Static analysis tools are frequently used to detect potential vulnerabilities in software systems. However, an inevitable problem of these tools is their large number of warnings with a high false positive rate, which consumes time and effort for investigating. In this paper, we present DeFP, a novel method for ranking static analysis warnings. Based on the intuition that warnings which have similar contexts tend to have similar labels (true positive or false positive), DeFP is built with two BiLSTM models to capture the patterns associated with the contexts of labeled warnings. After that, for a set of new warnings, DeFP can calculate and rank them according to their likelihoods to be true positives (i.e., actual vulnerabilities). Our experimental results on a dataset of 10 real-world projects show that using DeFP, by investigating only 60% of the warnings, developers can find +90% of actual vulnerabilities. Moreover, DeFP improves the state-of-the-art approach 30% in both Precision and Recall.

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

↑