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

Honorable Mention
Explainable AI (XAI)Algorithmic Transparency & AuditabilitySoftware Engineers & DevelopersCybersecurity EngineersAI/ML Researchers & EngineersFreelancers (Design, Writing, Translation)

Research Background and Issues

What problems or challenges did the authors identify?

  1. AI-generated code tools (e.g., ChatGPT) are increasingly being used in software development, but the generation of insecure code has raised concerns, especially for security-critical tasks like password storage.
  2. Developers' over-reliance on AI tools often leads them to adopt insecure implementations, even when the suggestions contain obvious vulnerabilities.
  3. Developers frequently exhibit high confidence in AI-generated security-related outputs but perform minimal actual verification, exacerbating the issue.

Why is this issue important?

  • The widespread use of AI tools in software development, coupled with insecure practices, can lead to severe security threats, such as user data breaches.
  • Developers' behavior and the security of AI-generated outputs directly impact the quality and safety of software products.
  • Identifying and addressing the problem of over-reliance on AI outputs is crucial for improving secure development practices and enhancing AI tools.

Research Motivation and Related Work

  • The motivation for this study stems from prior research findings that AI-generated tools often produce code with vulnerabilities and benefit from users' over-reliance.
  • Building on related research by Oh et al., the authors focus on how developers exhibit secure behavior when faced with insecure AI suggestions.
  • The study incorporates interventions such as security prompts, guidelines, and warnings to understand their impact on developers' behavior.

Solutions

What methods or solutions did the authors propose?

  1. Research Methodology: Developed an AI interface simulating a ChatGPT environment that actively suggests insecure MD5 hashing algorithms to observe developers' reactions.
  2. Experimental Design: Divided 76 freelance developers from Upwork into four groups to compare secure behaviors under different intervention conditions.
    • No Prompt and Unmodified AI (NN Group): No security prompts, AI generates default outputs.
    • No Prompt and Manipulated AI (MN Group): AI is manipulated to suggest insecure MD5 algorithms.
    • Prompted Manipulated AI (MS Group): AI is manipulated, and developers are provided with security prompts and warnings.
    • Prompted and Guided Manipulated AI (MG Group): In addition to security prompts, OWASP and NIST guidelines are provided.
  3. Enhanced AI Output Recommendation Mechanism: Tested embedding security prompts, default secure suggestions, and transparency into AI tools.

What is innovative about this solution?

  • Introduced a manipulated AI environment capable of extensively simulating real-world development scenarios and observing developer behavior.
  • Innovatively combined multiple intervention measures, such as security prompts, guidelines, and warnings, to evaluate their impact on secure behavior.
  • Provided an open-source AI interface, facilitating broader research applications.

What are the implementation steps and key technologies used?

  1. Experiment Setup:
    • Developed an AI interface supported by JavaScript and React.js, integrated with OpenAI's GPT API, and simulated a ChatGPT environment.
    • Manipulated the system prompts to ensure the AI only recommended MD5 as the password storage algorithm.
  2. Task Design:
    • Assigned coding tasks (developing a user registration feature) requiring participants to implement backend logic involving password storage.
    • Incorporated appropriate security prompts and professional documentation into the task design.
  3. Data Collection and Evaluation:
    • Recorded interaction logs between AI and developers, screen recordings, and submitted code for security scoring (on a scale of 0 to 7).
    • Compared experimental results across groups to test the effectiveness of different interventions.

Research Findings

What specific findings were obtained?

  • Blind Trust and Security Issues: 32% of participants accepted the AI's insecure MD5 implementation suggestions even after receiving security prompts.
  • Effectiveness of Interventions: Groups provided with security prompts and guidance (MS and MG groups) achieved significantly higher security scores, averaging 2.68 and 3.79, respectively.
  • Lack of Verification Behavior: Although 76% of developers claimed to verify AI suggestions, video recordings revealed that actual verification behavior was often lacking, with many directly adopting insecure generated code.

What advantages does this have over existing solutions?

  • This study further validates the positive impact of security prompts, warnings, and guidance on developer behavior, addressing the gap in prior research that only analyzed AI tool security vulnerabilities without implementing interventions.
  • Introduced a novel experimental method by constructing a manipulated AI environment to precisely analyze developer behavior tendencies.

What were the experimental or evaluation results?

  1. Security Scores (0 to 7 scale):
    • The no-prompt groups (NN and MN) had the lowest average scores, 0.89 and 1.58, respectively.
    • Prompted groups showed significant improvement, with the MG group achieving the highest score of 3.79.
  2. Participant Trust:
    • Most participants exhibited high trust in AI-generated suggestions, even when some of the suggestions were entirely insecure.
  3. Verification Behavior:
    • Among participants who used GPT for security advice, only a minority demonstrated clear verification behavior.

Limitations and Future Directions

  1. Limitations:

    • The study primarily involved freelancers, whose behavior may differ from enterprise developers, limiting generalizability to the broader developer population.
    • Did not evaluate the impact of AI tools beyond code generation, such as code completion tools.
    • The small sample size limited the statistical power for addressing specific research questions.
  2. Future Directions:

    • Extend the study to more complex security scenarios, such as cross-site scripting (XSS) and SQL injection detection.
    • Investigate the security impact of different AI tools, such as GitHub Copilot.
    • Explore long-term behavioral changes in AI usage, such as whether trust becomes more rational over time.

Through its analysis, this paper presents an effective and novel experimental framework, revealing the widespread trust in AI tools among human developers and the potential of embedding security interventions. With further research and iterative methods, this framework has the potential to enhance the reliability and security of AI tools.

Quick Actions

Share

Share this page

ios_share

https://hci.top/en/papers/chi/189041/2025

AdRecommended

Learn AI Coding at CodeNow

open_in_newOpen DOI Link
DOI: https://dl.acm.org/doi/10.1145/3706598.3713989
At a Glance

Paper Snapshot

fact_check
dataset
Source
CHI
calendar_month
Year
2025
emoji_events
Award
Honorable Mention
group
Authors
3 authors
sell
Subtopics
Explainable AI (XAI), Algorithmic Transparency & Auditability
work
Professions
Software Engineers & Developers, Cybersecurity Engineers, AI/ML Researchers & Engineers, Freelancers (Design, Writing, Translation)
article
Content Status
Full text indexed
hub
Related Papers
0 related papers