TL;DR: AI-generated code reaches production with hidden authentication, dependency, and secrets failures that conventional reviews often miss, according to Pluto Security. Security teams need governance around prompts, commits, and merge workflows before those flaws move downstream.
Editorial analysis by NHI Mgmt Group, based on content published by Pluto Security: “Claude Code Security: Why AI-Generated Code Breaks Traditional Security Models”.
Key questions
Q: Why does AI-driven coding increase application security risk even when it improves productivity?
A: Because productivity gains increase change volume faster than teams can classify and review the resulting software.
Q: What do security teams get wrong about AI-generated code risk?
A: They often focus on catching insecure output after code is written, which is too late for AI-native workflows.
Q: What breaks when AI-generated code reaches production without stronger governance?
A: Security teams lose the ability to distinguish routine change from exploitable exposure, and vulnerable code can enter production faster than review, testing, and remediation processes can catch up.
Practitioner guidance
- Classify AI-generated commits as security-relevant artefacts Tag commits produced with coding assistants, route them through separate review workflows, and require repository metadata that preserves origin and context.
- Enforce deterministic dependency governance Require lockfiles before merge, generate SBOMs for AI-assisted commits, block non-approved packages, and scan for CVE drift continuously.
- Add AI-specific controls to code review and SAST Use dedicated SAST profiles for AI code, require security linting on generated output, and verify authentication and authorization paths explicitly.
Bottom line: AI-generated code changes the security question from whether developers are careful to whether machine-produced output can be governed before it reaches production.
Glossary terms: AI-generated code, Prompt Governance, Deterministic Dependency Resolution, Security linting
Explore further
View Full Forum → | NHI Foundation Course → | Our Services → | Read the full analysis →
AI-generated code has become a governance object, not just a development output. Once a model is writing logic that reaches production, security teams are no longer governing developer behaviour alone. They are governing machine-influenced code paths, which means provenance, review context, and accountability must be explicit controls rather than implicit assumptions. The practical conclusion is that AI-assisted development needs its own control plane.
A few things that frame the scale:
- Companies are dedicating an average of 32.4% of their security budgets to secrets management and code security, with US organisations leading at 40.8%, according to the State of Secrets in AppSec.
- Claude Code-assisted commits leaked secrets at a rate of 3.2%, more than double the human-only baseline of 1.5%, with peaks reaching 31 secrets per 1,000 commits in August 2025, according to the State of Secrets Sprawl 2026.
A question worth separating out:
Q: Should organisations govern AI assistants and AI coding tools together?
A: Yes, because both create the same core risk pattern: AI can access sensitive material, transform it, and move it into places that traditional review processes do not control in real time. Treating assistants and coding tools as separate problems usually creates policy gaps, duplicated tooling and inconsistent evidence. A unified control model is easier to defend and audit.
👉 Read our full editorial: AI-generated code needs governance before it reaches production