Exploring the Impact of Intervention Methods on Developers’ Security Behavior in a Manipulated ChatGPT Study

Raphael Serafini, Asli Yardim and Alena Naiakshina

Abstract

Increased AI use in software development raises concerns about AI-generated code security. We investigated the impact of security prompts, insecure AI suggestion warnings, and the use of password storage guidelines (OWASP, NIST) on the security behavior of software developers when presented with insecure AI assistance. In an online lab setting, we conducted a study with 76 freelance developers who completed a password storage task divided into four conditions. Three conditions included a manipulated ChatGPT-like AI assistant, suggesting an insecure MD5 implementation. We found a high level of trust in AI-generated code, even when insecure suggestions were presented. While security prompts, AI warnings, and guidelines improved security awareness, 32% of those notified about insecure AI recommendations still accepted weak implementation suggestions, mistakenly considering it secure and often expressing confidence in their choice. Based on our results, we discuss security implications and provide recommendations for future research.

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

Cite

@inproceedings{serafini-etal-2025-exploring,
    title = {{Exploring the Impact of Intervention Methods on Developers’ Security Behavior in a Manipulated ChatGPT Study}},
    author = {Raphael Serafini and Asli Yardim and Alena Naiakshina},
    booktitle = {Proceedings of the 2025 CHI Conference on Human Factors in Computing Systems},
    isbn = {9798400713941},
    year = {2025},
    publisher = {Association for Computing Machinery},
    address = {New York, NY, USA},
    doi = {10.1145/3706598.3713989},
    url = {https://doi.org/10.1145/3706598.3713989},
    abstract = {Increased AI use in software development raises concerns about AI-generated code security. We investigated the impact of security prompts, insecure AI suggestion warnings, and the use of password storage guidelines (OWASP, NIST) on the security behavior of software developers when presented with insecure AI assistance. In an online lab setting, we conducted a study with 76 freelance developers who completed a password storage task divided into four conditions. Three conditions included a manipulated ChatGPT-like AI assistant, suggesting an insecure MD5 implementation. We found a high level of trust in AI-generated code, even when insecure suggestions were presented. While security prompts, AI warnings, and guidelines improved security awareness, 32\% of those notified about insecure AI recommendations still accepted weak implementation suggestions, mistakenly considering it secure and often expressing confidence in their choice. Based on our results, we discuss security implications and provide recommendations for future research.}
}