TeamUSEC

Developers Deserve Security Warnings, Too: On the Effect of Integrated Security Advice on Cryptographic API Misuse

Peter Leo Gorski, Luigi Lo Iacono, Dominik Wermke, Christian Stransky, Sebastian Möller, Yasemin Acar and Sascha Fahl.
Fourteenth Symposium on Usable Privacy and Security, SOUPS 2018, Baltimore, MD, USA, August 12-14, 2018
PDF Abstract Cite URL

Abstract

Cryptographic API misuse is responsible for a large number of software vulnerabilities. In many cases developers are overburdened by the complex set of programming choices and their security implications. Past studies have identified significant challenges when using cryptographic APIs that lack a certain set of usability features (e.g., easy-to-use documentation or meaningful warning and error messages) leading to an especially high likelihood of writing functionally correct but insecure code.

To support software developers in writing more secure code, this work investigates a novel approach aimed at these hard to-use cryptographic APIs. In a controlled online experiment with 53 participants, we study the effectiveness of API-integrated security advice which informs about an API misuse and places secure programming hints as guidance close to the developer. This allows us to address insecure cryptographic choices including encryption algorithms, key sizes, modes of operation and hashing algorithms with helpful documentation in the guise of warnings. Whenever possible, the security advice proposes code changes to fix the responsible security issues.

We find that our approach significantly improves code security. 73% of the participants who received the security advice fixed their insecure code. We evaluate the opportunities and challenges of adopting API-integrated security advice and illustrate the potential to reduce the negative implications of cryptographic API misuse and help developers write more secure code.

Reference

@inproceedings{DBLP:conf/soups/GorskiIWSMAF18,
 author = {Peter Leo Gorski and
Luigi Lo Iacono and
Dominik Wermke and
Christian Stransky and
Sebastian Möller and
Yasemin Acar and
Sascha Fahl},
 bibsource = {dblp computer science bibliography, https://dblp.org},
 biburl = {https://dblp.org/rec/conf/soups/GorskiIWSMAF18.bib},
 booktitle = {Fourteenth Symposium on Usable Privacy and Security, SOUPS 2018,
Baltimore, MD, USA, August 12-14, 2018},
 editor = {Mary Ellen Zurko and
Heather Richter Lipford},
 pages = {265--281},
 publisher = {USENIX Association},
 title = {Developers Deserve Security Warnings, Too: On the Effect of Integrated
Security Advice on Cryptographic API Misuse},
 url = {https://www.usenix.org/conference/soups2018/presentation/gorski},
 year = {2018}
}