Coding assistants produce more exploitable code when shown insecure examples
Coding assistants draw on surrounding project code, but that context can expose either security safeguards or vulnerable patterns. In a controlled study spanning six language models, Yu and colleagues show that adding one insecure example increased functionally correct but exploitable outputs by 6.3 percentage points, even with the relevant safeguard present.









