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

少即是多:支持开发人员在代码审查期间进行漏洞检测

Less is More: Supporting Developers in Vulnerability Detection during Code Review

Larissa Braz, Christian Aeberhard, Gül Çalikli, Alberto Bacchelli

摘要:

从安全角度审查源代码已被证明是一项艰巨的任务。事实上,以前的研究表明,开发人员在代码审查期间经常错过甚至流行和易于检测的漏洞。初步证据表明,一个重要的原因可能在于审查员的心理态度和共同的做法。在这项研究中,我们调查是否以及如何明确要求开发人员在代码审查过程中关注安全性影响漏洞的检测。此外,我们还评估了提供安全检查表来指导安全审查的效果。为此,我们进行了一项在线实验,有150名参与者,其中71%报告有三年或三年以上的专业发展经验。我们的研究结果表明,简单地要求审查人员在代码审查期间关注安全性,漏洞检测的概率增加了8倍。安全检查表的存在不会显著地进一步改善结果,即使检查表是针对所审查的变更和变更中现有的漏洞而定制的。这些结果提供了支持心理态度假设的证据,并呼吁进一步的工作,安全检查表的有效性和设计。数据和材料:https://doi.org/10.5281/zenodo.6026291

英文摘要:

Reviewing source code from a security perspective has proven to be a difficult task. Indeed, previous research has shown that developers often miss even popular and easy-to-detect vulnerabilities during code review. Initial evidence suggests that a significant cause may lie in the reviewers' mental attitude and common practices. In this study, we investigate whether and how explicitly asking developers to focus on security during a code review affects the detection of vulnerabilities. Furthermore, we evaluate the effect of providing a security checklist to guide the security review. To this aim, we conduct an online experiment with 150 participants, of which 71% report to have three or more years of professional development experience. Our results show that simply asking reviewers to focus on security during the code review increases eight times the probability of vulnerability detection. The presence of a security checklist does not significantly improve the outcome further, even when the checklist is tailored to the change under review and the existing vulnerabilities in the change. These results provide evidence supporting the mental attitude hypothesis and call for further work on security checklists' effectiveness and design. Data and materials: https://doi.org/10.5281/zenodo.6026291

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

↑