Security Notifications in Static Analysis Tools: Developers’ Attitudes, Comprehension, and Ability to Act on Them

Mohammad Tahaei, Kami Vaniea, Konstantin Beznosov and Maria K Wolters

Abstract

Static analysis tools (SATs) have the potential to assist developers in finding and fixing vulnerabilities in the early stages of software development, requiring them to be able to understand and act on tools’ notifications. To understand how helpful such SAT guidance is to developers, we ran an online experiment (N=132) where participants were shown four vulnerable code samples (SQL injection, hard-coded credentials, encryption, and logging sensitive data) along with SAT guidance, and asked to indicate the appropriate fix. Participants had a positive attitude towards both SAT notifications and particularly liked the example solutions and vulnerable code. Seeing SAT notifications also led to more detailed open-ended answers and slightly improved code correction answers. Still, most SAT (SpotBugs 67%, SonarQube 86%) and Control (96%) participants answered at least one code-correction question incorrectly. Prior software development experience, perceived vulnerability severity, and answer confidence all positively impacted answer accuracy.

Venue
CHI 2021
Volume
Proceedings of the 2021 CHI Conference on Human Factors in Computing Systems
DOI
10.1145/3411764.3445616
PDF
https://dl.acm.org/doi/pdf/10.1145/3411764.3445616
Anthology ID
2021.chi.570

Cite

@inproceedings{tahaei-etal-2021-security,
    title = {{Security Notifications in Static Analysis Tools: Developers’ Attitudes, Comprehension, and Ability to Act on Them}},
    author = {Mohammad Tahaei and Kami Vaniea and Konstantin Beznosov and Maria K Wolters},
    booktitle = {Proceedings of the 2021 CHI Conference on Human Factors in Computing Systems},
    isbn = {9781450380966},
    year = {2021},
    publisher = {Association for Computing Machinery},
    address = {New York, NY, USA},
    doi = {10.1145/3411764.3445616},
    url = {https://doi.org/10.1145/3411764.3445616},
    abstract = {Static analysis tools (SATs) have the potential to assist developers in finding and fixing vulnerabilities in the early stages of software development, requiring them to be able to understand and act on tools’ notifications. To understand how helpful such SAT guidance is to developers, we ran an online experiment (N=132) where participants were shown four vulnerable code samples (SQL injection, hard-coded credentials, encryption, and logging sensitive data) along with SAT guidance, and asked to indicate the appropriate fix. Participants had a positive attitude towards both SAT notifications and particularly liked the example solutions and vulnerable code. Seeing SAT notifications also led to more detailed open-ended answers and slightly improved code correction answers. Still, most SAT (SpotBugs 67\%, SonarQube 86\%) and Control (96\%) participants answered at least one code-correction question incorrectly. Prior software development experience, perceived vulnerability severity, and answer confidence all positively impacted answer accuracy.}
}