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

在258个项目中找到709个缺陷:将CodeQL应用于开源嵌入式软件的经验报告(经验论文)——扩展报告

Finding 709 Defects in 258 Projects: An Experience Report on Applying CodeQL to Open-Source Embedded Software (Experience Paper) -- Extended Report

Mingjie Shen, Akul Abhilash Pillai, Brian A. Yuan, James C. Davis, Aravind Machiry

AI总结:

本研究对258个开源嵌入式项目应用CodeQL,发现709个真实缺陷(误报率34%),其中75%为潜在安全漏洞,并推动37个CI工作流合并,证明现代SAST工具的有效性。

摘要:

在这篇经验论文中,我们报告了一项关于开源嵌入式软件(EMBOSS)仓库中静态应用安全测试(SAST)的大规模实证研究。我们收集了258个最受欢迎的EMBOSS项目语料库,然后通过程序分析和对其开发者的调查(N=25)来衡量他们对SAST工具的使用情况。先进的SAST工具很少被使用——只有3%的项目超越了简单的编译器分析。开发者将感知到的无效性和误报作为采用有限的原因。受此缺陷的激励,我们应用了最先进的(SOTA)CodeQL SAST工具,并衡量了其易用性和实际有效性。在258个项目中,CodeQL报告了709个真实缺陷,误报率为34%。其中有535个(75%)可能是安全漏洞,包括由微软、亚马逊和阿帕奇基金会维护的主要项目。EMBOSS工程师已确认了376个(53%)此类缺陷,主要通过接受我们的拉取请求。发布了两个CVE。基于这些结果,我们提出了将我们的工作流纳入EMBOSS持续集成(CI)管道的拉取请求,其中37个(占活跃仓库的71%)已被合并。总之,我们敦促EMBOSS工程师采用当前一代的SAST工具,这些工具具有低误报率,并能有效发现与安全相关的缺陷。

英文摘要:

In this experience paper, we report on a large-scale empirical study of Static Application Security Testing (SAST) in Open-Source Embedded Software (EMBOSS) repositories. We collected a corpus of 258 of the most popular EMBOSS projects, and then measured their use of SAST tools via program analysis and a survey (N=25) of their developers. Advanced SAST tools are rarely used -- only 3% of projects go beyond trivial compiler analyses. Developers cited the perception of ineffectiveness and false positives as reasons for limited adoption. Motivated by this deficit, we applied the state-of-the-art (SOTA) CodeQL SAST tool and measured its ease of use and actual effectiveness. Across the 258 projects, CodeQL reported 709 true defects with a false positive rate of 34%. There were 535 (75%) likely security vulnerabilities, including in major projects maintained by Microsoft, Amazon, and the Apache Foundation. EMBOSS engineers have confirmed 376 (53%) of these defects, mainly by accepting our pull requests. Two CVEs were issued. Based on these results, we proposed pull requests to include our workflows as part of EMBOSS Continuous Integration (CI) pipelines, 37 (71% of active repositories) of these are already merged. In summary, we urge EMBOSS engineers to adopt the current generation of SAST tools, which offer low false positive rates and are effective at finding security-relevant defects.

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

↑