TL;DR: AI copilots are pushing code velocity up 3 to 5 times while 67% of organisations report no security oversight over AI tool usage, creating a productivity-security gap that post-commit scanning cannot close fast enough, according to Checkmarx. The real shift is that security now has to intervene at generation time, before unsafe logic is merged, reused, or scaled across the codebase.
Editorial analysis by NHI Mgmt Group, based on content published by Checkmarx: “The Productivity–Security Paradox of AI Coding Assistants”.
By the numbers:
- 67% of organisations report no security oversight over AI tool usage.
- Remediation costs can spike by 10 to 20 times once code has already been merged.
Key questions
Q: What breaks when AI-generated code is only checked after commit?
A: Post-commit controls miss the moment when risky code is created, so secrets, insecure patterns, and policy violations can enter the repository before security ever sees them.
Q: Why does AI-assisted development create more security risk even when scanners improve?
A: Because scanners only help if the team can act on their output.
Q: How can organisations prove their AI controls are actually working?
A: Look for evidence that policy decisions are logged, sensitive prompts are being redacted or blocked when required, and approved AI interactions are traceable by identity and business context.
Practitioner guidance
- Define generation-time security policy Set explicit rules for what AI tools may generate, which packages may be suggested, and which patterns require block or override before code is accepted.
- Move AppSec checks into the IDE Validate AI-generated code as it is written, using inline controls that inspect dependencies, authentication flows, and error handling before commit.
- Classify AI coding tools as governed actors Assign ownership, logging, approval boundaries, and acceptable-use rules for AI assistants that participate in code creation.
Bottom line: AI-generated code widens the gap between code creation and code validation, which is why traditional post-commit AppSec controls miss important risk.
Explore further
View Full Forum → | NHI Foundation Course → | Our Services → | Read the full analysis →
AI-generated code creates governance debt before it creates technical debt. The main risk is not simply more vulnerable code, but more code arriving faster than security policy, review, and provenance controls can evaluate it. Once generation becomes the dominant creation mode, the control question shifts from post-commit inspection to pre-commit governance. Practitioners should treat AI-assisted development as a policy domain, not just a developer productivity feature.
A few things that frame the scale:
- 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.
- AI-related credential leaks surged 81.5% year-over-year in 2025, with the surrounding AI infrastructure leaking 5x faster than core LLM providers, according to the State of Secrets Sprawl 2026.
A question worth separating out:
Q: Should teams treat AI coding assistants as part of CI trust governance?
A: Yes. If an assistant can be invoked from the build or workstation path, respond silently, or change shell startup files, it belongs in the governed tool inventory. The decision point is not whether it is truly autonomous, but whether it can be abused as a runtime execution target inside trusted development workflows.
👉 Read our full editorial: AI-generated code is widening AppSec blind spots in the SDLC