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

为什么在代码审查期间安全缺陷会被忽视?铬OS项目的病例对照研究

Why Security Defects Go Unnoticed during Code Reviews? A Case-Control Study of the Chromium OS Project

Rajshakhar Paul, Asif Kamal Turzo, Amiangshu Bosu

摘要:

同行代码审查已被发现在识别安全漏洞方面是有效的。然而,尽管实行强制性代码审查,许多开源软件(OSS)项目仍然遇到大量的发布后安全漏洞,因为一些安全缺陷逃脱了这些。因此,项目经理可能想知道在代码审查期间是否有任何弱点或不一致,从而错过了安全漏洞。对这个问题的回答可以帮助管理者确定关注的领域,并采取措施来提高他/她的项目代码审查在识别安全缺陷方面的有效性。因此,本研究的目的是确定的因素,区分代码审查,成功地确定了安全缺陷,从那些错过了这样的缺陷。为此,我们对Chromium OS项目进行了病例对照研究。使用多阶段半自动化方法,我们构建了一个包含516个代码审查的数据集,这些代码审查成功地识别了安全缺陷,以及374个安全缺陷逃逸的代码审查。我们的实证研究结果表明,代码审查期间识别的安全缺陷类别和遗漏的安全缺陷类别之间存在显着差异。在我们的数据集上拟合的逻辑回归模型的AUC得分为0.91,并确定了9个影响安全缺陷识别的代码审查属性。虽然完成审查的时间,两个开发人员之间的相互审查的数量,如果审查是为了修复漏洞,对漏洞识别有积极的影响,但从审查中的目录数量,开发人员的总审查数量以及审查中的文件的先前提交总数中观察到相反的影响。

英文摘要:

Peer code review has been found to be effective in identifying security vulnerabilities. However, despite practicing mandatory code reviews, many Open Source Software (OSS) projects still encounter a large number of post-release security vulnerabilities, as some security defects escape those. Therefore, a project manager may wonder if there was any weakness or inconsistency during a code review that missed a security vulnerability. Answers to this question may help a manager pinpointing areas of concern and taking measures to improve the effectiveness of his/her project's code reviews in identifying security defects. Therefore, this study aims to identify the factors that differentiate code reviews that successfully identified security defects from those that missed such defects. With this goal, we conduct a case-control study of Chromium OS project. Using multi-stage semi-automated approaches, we build a dataset of 516 code reviews that successfully identified security defects and 374 code reviews where security defects escaped. The results of our empirical study suggest that the are significant differences between the categories of security defects that are identified and that are missed during code reviews. A logistic regression model fitted on our dataset achieved an AUC score of 0.91 and has identified nine code review attributes that influence identifications of security defects. While time to complete a review, the number of mutual reviews between two developers, and if the review is for a bug fix have positive impacts on vulnerability identification, opposite effects are observed from the number of directories under review, the number of total reviews by a developer, and the total number of prior commits for the file under review.

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

↑