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

02/09/2022
by   Larissa Braz, et al.
0

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 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

READ FULL TEXT

page 1

page 2

page 3

page 4

research
08/08/2022

Software Security during Modern Code Review: The Developer's Perspective

To avoid software vulnerabilities, organizations are shifting security t...
research
02/11/2021

Why Don't Developers Detect Improper Input Validation?'; DROP TABLE Papers; –

Improper Input Validation (IIV) is a software vulnerability that occurs ...
research
03/17/2018

Cost-aware Vulnerability Prediction: the HARMLESS Approach

Society needs more secure software. But predicting vulnerabilities is di...
research
07/13/2023

Overcoming the Mental Set Effect in Programming Problem Solving

This paper adopts a cognitive psychology perspective to investigate the ...
research
02/13/2021

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

Peer code review has been found to be effective in identifying security ...
research
07/19/2022

Visual Notations in Container Orchestrations: An Empirical Study with Docker Compose

Context: Container orchestration tools supporting infrastructure-as-code...
research
06/15/2023

The Upper Bound of Information Diffusion in Code Review

Background: Code review, the discussion around a code change among human...

Please sign up or login with your details

Forgot password? Click here to reset