一句话:通过访谈与问卷揭示开发者在代码评审中评估软件安全的实际做法、挑战与支持缺口。
为避免软件漏洞,组织将安全活动前移到代码评审阶段,但开发者视角尚不清晰。本文采访10名职业开发者并问卷182名从业者,研究他们在代码评审中如何评估软件安全、遇到哪些挑战以及公司和项目提供何种支持。结果显示,多数开发者起初并不主动报告关注安全问题;只有被追问后才表示会在评审中始终考虑安全并承认其重要性。多数公司不提供安全培训,却期望开发者仍能确保安全,因此开发者将缺乏培训与安全知识列为主要挑战,同时面临第三方库以及识别代码各部分间安全交互的困难。开发者对应用安全动态的假设也会导致安全在评审中被忽视。
To avoid software vulnerabilities, organizations are shifting security to earlier stages of the software development, such as at code review time. In this paper, we aim to understand the developers’ perspective on assessing software security during code review, the challenges they encounter, and the support that companies and projects provide. To this end, we conduct a two-step investigation: we interview 10 professional developers and survey 182 practitioners about software security assessment during code review. The outcome is an overview of how developers perceive software security during code review and a set of identified challenges. Our study revealed that most developers do not immediately report to focus on security issues during code review. Only after being asked about software security, developers state to always consider it during review and acknowledge its importance. Most companies do not provide security training, yet expect developers to still ensure security during reviews. Accordingly, developers report the lack of training and security knowledge as the main challenges they face when checking for security issues. In addition, they have challenges with third-party libraries and to identify interactions between parts of code that could have security implications. Moreover, security may be disregarded during reviews due to developers’ assumptions about the security dynamic of the application they develop. Preprint: https://arxiv.org/abs/2208.04261 Data and materials: https://doi.org/10.5281/zenodo.6969369