[Paper Review] Why Do Developers Get Password Storage Wrong? A Qualitative Usability Study
This qualitative usability study investigates why developers insecurely store passwords despite having security knowledge, revealing that explicit security priming, outdated knowledge, and unclear security defaults are major factors. Even with secure frameworks like Spring, developers often skip proper hashing unless explicitly directed to do so, highlighting the need for secure defaults and better developer education to prevent catastrophic password leaks.
Passwords are still a mainstay of various security systems, as well as the cause of many usability issues. For end-users, many of these issues have been studied extensively, highlighting problems and informing design decisions for better policies and motivating research into alternatives. However, end-users are not the only ones who have usability problems with passwords! Developers who are tasked with writing the code by which passwords are stored must do so securely. Yet history has shown that this complex task often fails due to human error with catastrophic results. While an end-user who selects a bad password can have dire consequences, the consequences of a developer who forgets to hash and salt a password database can lead to far larger problems. In this paper we present a first qualitative usability study with 20 computer science students to discover how developers deal with password storage and to inform research into aiding developers in the creation of secure password systems.
Motivation & Objective
- To understand why developers fail to securely store passwords despite having security knowledge.
- To investigate whether usability of security APIs or task framing influences secure implementation.
- To explore how developers perceive and apply security practices in real-world-like development tasks.
- To evaluate the effectiveness of secure defaults and framework support in reducing insecure password storage.
- To inform future research on improving developer security practices through better tooling and education.
Proposed method
- Conducted a qualitative lab study with 20 computer science students role-playing as developers implementing password storage in a social networking app.
- Used two frameworks: Spring (with built-in secure helpers) and JSF (requiring manual implementation).
- Framed tasks with two conditions: explicitly primed for security or not primed at all.
- Collected data via think-aloud protocols and post-task semi-structured interviews to analyze decision-making and mental models.
- Analyzed implementation code and developer reasoning to identify misconceptions, knowledge gaps, and design choices.
- Used pilot studies to refine the task design and ensure validity of the study setup.
Experimental results
Research questions
- RQ1Do developers implement secure password storage when not explicitly prompted to do so, even if they possess security knowledge?
- RQ2How does the presence of secure framework features (e.g., Spring Security’s PasswordEncoder) affect developers’ implementation choices?
- RQ3To what extent do developers rely on outdated or incorrect security practices despite awareness of security concepts?
- RQ4How do task framing and priming influence developers’ prioritization of functionality versus security?
- RQ5What role do conflicting security standards and advice play in developers’ decision-making?
Key findings
- Even developers with strong security knowledge often failed to implement secure password storage unless explicitly prompted to do so.
- Participants who were not primed to consider security stored passwords in plain text, despite the task being inherently security-sensitive.
- The use of secure frameworks like Spring reduced errors, but only when developers actively used the secure features—otherwise, they were ignored or misconfigured.
- Many developers used outdated or insecure hashing methods (e.g., MD5, SHA-1) due to outdated knowledge, even when aware of modern standards.
- Participants frequently confused transmission security (e.g., HTTPS) with storage security, indicating fundamental misconceptions about the threat model.
- Despite having access to secure APIs, developers often opted for manual implementation or ignored built-in secure functions, highlighting the need for opt-out security defaults.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.