Security Degradation in Iterative AI Code Generation -- A Systematic Analysis of the Paradox
19 May · Shivani Shukla, Himanshu Joshi, Romilla Syed · arXiv:2506.11022
The rapid adoption of Large Language Models(LLMs) for code generation has transformed software development, yet little attention has been given to how security vulnerabilities evolve through iterative LLM feedback. This paper analyzes security degradation in AI-generated code through a controlled experiment with 400 code samples across 40 rounds of "improvements" using four distinct prompting strategies. Our…