arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2203.09907cs.SEcs.LG
收藏

学习减少分析型Bug检测器中的误报

Learning to Reduce False Positives in Analytic Bug Detectors

Microsoft(微软)

Anant Kharkar, Roshanak Zilouchian Moghaddam, Matthew Jin, Xiaoyu Liu, Xin Shi, Colin Clement, Neel Sundaresan

摘要:

由于软件设计的日益复杂和快速迭代开发,代码缺陷和安全漏洞在现代软件中普遍存在。作为回应,程序员依靠静态分析工具定期扫描他们的代码库并发现潜在的错误。然而,为了最大化覆盖范围,这些工具通常倾向于报告大量的误报,需要开发人员手动验证每个警告。为了解决这个问题,我们提出了一种基于transformer的学习方法来识别误报错误警告。结果表明,该模型可以使静态分析的精度提高17.5%.此外,我们还验证了这种方法在两种主要错误类型上的通用性:空解引用和资源泄漏。

英文摘要:

Due to increasingly complex software design and rapid iterative development, code defects and security vulnerabilities are prevalent in modern software. In response, programmers rely on static analysis tools to regularly scan their codebases and find potential bugs. In order to maximize coverage, however, these tools generally tend to report a significant number of false positives, requiring developers to manually verify each warning. To address this problem, we propose a Transformer-based learning approach to identify false positive bug warnings. We demonstrate that our models can improve the precision of static analysis by 17.5%. In addition, we validated the generalizability of this approach across two major bug types: null dereference and resource leak.

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

↑