An empirical investigation of socio-technical code review metrics and security vulnerabilities
Authors:
Open Access
- 17 November 2014
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 37-44
Abstract
One of the guiding principles of open source software development is to use crowds of developers to keep a watchful eye on source code. Eric Raymond declared Linus'' Law as "many eyes make all bugs shallow", with the socio-technical argument that high quality open source software emerges when developers combine together their collective experience and expertise to review code collaboratively. Vulnerabilities are a particularly nasty set of bugs that can be rare, difficult to reproduce, and require specialized skills to recognize. Does Linus' Law apply to vulnerabilities empirically? In this study, we analyzed 159,254 code reviews, 185,948 Git commits, and 667 post-release vulnerabilities in the Chromium browser project. We formulated, collected, and analyzed various metrics related to Linus' Law to explore the connection between collaborative reviews and vulnerabilities that were missed by the review process. Our statistical association results showed that source code files reviewed by more developers are, counter-intuitively, more likely to be vulnerable (even after accounting for file size). However, files are less likely to be vulnerable if they were reviewed by developers who had experience participating on prior vulnerability-fixing reviews. The results indicate that lack of security experience and lack of collaborator familiarity are key risk factors in considering Linus’ Law with vulnerabilities.Keywords
Funding Information
- National Science Foundation (1441444)
This publication has 14 references indexed in Scilit:
- The impact of code review coverage and code review participation on software quality: a case study of the qt, VTK, and ITK projects2014
- Characteristics of the vulnerable code changes identified through peer code review2014
- Interactive churn metricsACM SIGSOFT Software Engineering Notes, 2012
- Strengthening the empirical analysis of the relationship between Linus' Law and software security2010
- Evaluating Complexity, Code Churn, and Developer Activity Metrics as Indicators of Software VulnerabilitiesIEEE Transactions on Software Engineering, 2010
- The Impact of Design and Code Reviews on Software Quality: An Empirical Study Based on PSP DataIEEE Transactions on Software Engineering, 2009
- Software Security: Building Security In2006
- Crowded minds: The implicit bystander effect.Journal of Personality and Social Psychology, 2002
- Crowded minds: The implicit bystander effect.Journal of Personality and Social Psychology, 2002
- Methodology for validating software metricsIEEE Transactions on Software Engineering, 1992