When Developer Aid Becomes Security Debt: A Systematic Analysis of Insecure Behaviors in LLM Coding Agents

Matous Kozak, Roshanak Zilouchian Moghaddam, Siva Sivaraman
7/12/2025
cs.AIcs.CR

No official code found. Best implementation: microsoft/coding-agent-security-debt (1 star, MIT, last commit 2026-01-23).

Abstract

LLM-based coding agents are rapidly being deployed in software development, yet their safety implications remain poorly understood. These agents, while capable of accelerating software development, may exhibit unsafe behaviors during normal operation that manifest as cybersecurity vulnerabilities. We conducted the first systematic safety evaluation of autonomous coding agents, analyzing over 12,000 actions across five state-of-the-art models (GPT-4o, GPT-4.1, Claude variants) on 93 real-world software setup tasks. Our findings reveal significant security concerns: 21% of agent trajectories contained insecure actions, with models showing substantial variation in unsafe behavior. We developed a high-precision detection system that identified four major vulnerability categories, with information exposure (CWE-200) being the most prevalent one. We also evaluated mitigation strategies including feedback mechanisms and security reminders with various effectiveness between models. GPT-4.1 demonstrated exceptional security awareness with 96.8% mitigation success.

View on arXivView PDF

Code Implementations(1)

MIT

Dataset for Paper, When Developer Aid Becomes Security Debt: A Systematic Analysis of Insecure Behaviors in LLM Coding Agents

10Jan 15, 20269 months agoMIT

Similar Papers

Cite this paper

@article{kozak2025when,
  title  = {When Developer Aid Becomes Security Debt: A Systematic Analysis of Insecure Behaviors in LLM Coding Agents},
  author = {Matous Kozak and Roshanak Zilouchian Moghaddam and Siva Sivaraman},
  year   = {2025},
  eprint = {2507.09329},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.09329v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2507.09329.svg)](https://codeofpaper.com/paper/2507.09329)

Discussion