TL;DR: AI coding assistants are pushing enterprise software creation toward vibe coding, and LEGIT Security notes Gartner says 40% of new production software will use it by 2028 while SACR says AI already generates up to half of enterprise code today. Traditional AppSec assumptions about human authorship, traceable intent, and fix validation are breaking, so provenance, explainability, and governed remediation are becoming the new control plane.
At a glance
What this is: This analysis argues that AI-generated code is outpacing traditional AppSec assumptions because security workflows were built for human-authored software with traceable intent.
Why it matters: It matters to IAM and broader security practitioners because AI-assisted development changes who or what is effectively creating change, making governance, provenance, and validation part of the control surface.
By the numbers:
- By 2028, 40% of new enterprise production software will be created using vibe coding techniques.
- Repeated AI refinement cycles increased critical vulnerabilities by 37% even as development speed improved.
👉 Read LEGIT Security's analysis of vibe coding risk and AI-generated code controls
Context
AI-assisted coding changes the security problem from simply finding defects to governing how code is created, modified, and repaired. In an AI-first development model, the issue is not just volume of code, but the loss of human authorship, contextual reasoning, and traceable intent that traditional AppSec controls assume. For teams responsible for access, provenance, and change governance, that creates a new operational boundary.
This is not an identity-only issue, but it does intersect with identity governance where machines are making consequential development decisions on behalf of humans. The control challenge is increasingly about proving who or what initiated a change, what context informed it, and whether the resulting code or remediation can be trusted in production. That starting position is becoming typical, not exceptional, as AI code generation scales.
Key questions
Q: How should security teams govern AI-generated code in production environments?
A: Security teams should treat AI-generated code as normal production code with extra provenance risk. Require architectural review, test coverage, static analysis, and approval before merge. Then bind the agent and the build pipeline to least privilege, short-lived credentials, and complete audit logging so implementation speed does not outrun control.
Q: Why do AI-generated fixes create more risk than simple vulnerability detection?
A: Because the fix itself becomes a change that can introduce new defects, policy violations, or hidden dependencies. If teams cannot explain why the fix works and how it was validated, they are trusting a second machine-produced decision without enough assurance. That creates a repair-quality problem, not just a detection problem.
Q: Where does traditional AppSec fail in an AI-assisted development lifecycle?
A: Traditional AppSec fails when it depends on pauses that no longer exist. If code is continuously generated and rewritten, pull-request review, release gating, and after-the-fact scanning happen too late to control risk. The control failure is timing, not intent. Teams need enforcement that operates during creation, not only after code has already moved downstream.
Q: How do teams know whether AI-assisted remediation is actually helping?
A: Look for lower triage time, fewer false-positive escalations, and faster closure of the findings that matter most. If AI assistance only increases throughput but does not reduce exposure on regulated or privileged code paths, it is a productivity feature rather than a governance improvement. Measure outcomes, not just activity.
Technical breakdown
Why vibe coding breaks traditional AppSec assumptions
Vibe coding shifts developers from implementation detail to intent, while AI systems generate and repair much of the code path. Traditional AppSec assumes a human authored the code, made deliberate trade-offs, and can explain the rationale behind a change. When AI inserts dependencies, rewrites logic, or performs iterative fixes, static analysis can miss context-sensitive failures because the code may be syntactically valid but semantically unsafe. The result is a mismatch between scan results and operational risk.
Practical implication: teams need controls that track code provenance and AI involvement, not just vulnerability counts.
Why remediation becomes a control problem, not only a detection problem
The article highlights a shift from finding vulnerabilities to fixing them correctly and at scale. That matters because remediation can now be generated by another AI system, creating a second layer of trust that needs validation. If the fix is not explainable, reviewed, and testable across multiple layers, the organisation risks trading one defect for another. In practice, remediation quality becomes a governance issue because the fix itself is part of the change set that must be authorised and verified.
Practical implication: require validation, traceability, and approval gates for AI-generated fixes before they reach production.
What provenance and explainability mean in AI-assisted development
Provenance is the ability to show where code came from, which model or agent generated it, and what transformations occurred before deployment. Explainability is the ability to justify why a fix was chosen, which tests it passed, and what assumptions remain. In an AI-assisted pipeline, these are not nice-to-have documentation features. They are the evidence layer that lets AppSec, audit, and engineering determine whether the output is trustworthy enough to ship. Without them, security teams are left reverse engineering the change after the fact.
Practical implication: define minimum provenance and explanation requirements for any code or fix produced by AI.
Threat narrative
Attacker objective: The objective is not necessarily direct intrusion, but to increase the likelihood that flawed AI-generated code reaches production and expands attack surface.
- Entry occurs through AI-assisted development workflows where an assistant generates code, dependencies, or fixes without full human review of context or intent.
- Escalation happens when repeated refinement cycles introduce new defects, policy violations, or excessive dependencies that pass surface checks but weaken the application.
- Impact is realised when the organisation ships software with vulnerabilities that were harder to detect and harder to remediate confidently at production scale.
NHI Mgmt Group analysis
AI-generated code creates a provenance gap that AppSec teams are not yet governing well: the problem is not just that machines write code, but that organisations often cannot prove how that code was produced, modified, or validated. Traditional review and scan processes assume a human decision chain that is no longer reliable in vibe coding workflows. The practical conclusion is that code provenance must become part of the security control set, not an afterthought.
Validation and explainability are becoming the real control plane for AI-assisted remediation: if an AI can propose and apply fixes, then the organisation has to trust the fix as much as the original code path. That shifts assurance from detection alone to verified change control, which aligns more closely with NIST CSF protect and detect functions and with broader audit expectations. Practitioners should treat fix verification as a governed security stage, not a developer convenience.
Context-blind logic is the named failure mode here: AI-generated code may pass static checks while violating policy in production because it lacks the operational context humans normally provide. This is a governance failure, not simply a tooling gap, because the system optimises for local correctness rather than enterprise risk. Teams should recognise that the central issue is whether security can understand the intent behind the change before it ships.
AppSec is moving from defect discovery to assurance of repair quality: the article is describing a category shift in which remediation itself becomes a risk-bearing activity. That means policy, testing depth, and approval thresholds need to be differentiated for human-written and AI-generated changes. Practitioners should redesign governance so the quality of the fix is measured with the same seriousness as the vulnerability it addresses.
AI-assisted development is now an identity and governance problem as well as a software problem: when an AI agent changes code, the organisation must know which system acted, under what authority, and with what boundaries. That intersection matters for identity governance because machine action is increasingly creating production change. The practical takeaway is to govern AI tooling as a high-trust actor in the software lifecycle.
What this signals
Context-blind code generation is now a governance signal, not an edge case: as AI contributes more code and more remediation, teams will need to distinguish between output that is merely functional and output that is supportable under audit. The control question shifts to whether the organisation can explain why a machine-generated change is safe, traceable, and bounded.
AI-assisted development will force security and engineering to converge on shared evidence: provenance, validation, and exception handling cannot remain separate disciplines if code creation itself is partly machine-driven. For programmes already struggling with machine identity visibility, the same discipline applies here, because the trust boundary has moved into the development workflow.
The practical next step is to align code governance with identity-style accountability, using controls such as restricted change authority, traceable approvals, and explicit ownership for AI-generated output. That is where the operational risk will concentrate.
For practitioners
- Classify AI-generated code as a distinct risk class Track where AI is used, which models or assistants generate code, and which repositories or applications receive that output. Separate AI-authored changes from human-authored changes so review, testing, and approval thresholds can be adjusted accordingly.
- Require provenance for every AI-produced change Record the generating model, prompt context where appropriate, transformation steps, and reviewer identity for code and remediation suggestions. Make provenance auditable so teams can reconstruct how a change reached production.
- Measure remediation quality, not just remediation speed Compare AI-generated fixes against human-reviewed fixes using defect recurrence, failed tests, rollback rates, and policy violations. Faster remediation is only useful if the repair remains stable after deployment.
- Gate autonomous fixes behind multi-layer validation Use unit, integration, and policy checks before any AI-generated patch is merged or deployed. Low-risk systems may tolerate more automation, but production changes should still require traceable verification.
Key takeaways
- AI-generated code is changing the AppSec problem from defect hunting to governed assurance of change.
- Repeated refinement cycles can improve speed while increasing critical vulnerabilities, which makes validation and provenance essential controls.
- Security teams need to treat AI-produced code and fixes as a distinct risk class with traceable review, testing, and accountability.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Agentic AI Top 10 address the attack and risk surface, while NIST AI RMF, NIST CSF 2.0, NIST SP 800-53 Rev 5 and CIS Controls v8 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST AI RMF | GOVERN | AI-generated code and remediation raise governance and accountability questions. |
| NIST CSF 2.0 | PR.AC-4 | Change authority and access boundaries are central when AI can modify code. |
| NIST SP 800-53 Rev 5 | CM-3 | Configuration and change control apply directly to AI-generated patches. |
| CIS Controls v8 | CIS-16 , Application Software Security | Application software security controls fit the article's AppSec focus. |
| OWASP Agentic AI Top 10 | Agentic code generation and remediation introduce AI workflow risk. |
Assign owners, approval rules, and audit evidence for every AI-assisted code path.
Key terms
- Vibe Coding: A development method where engineers specify intent and outcomes while AI systems generate much of the implementation. The practice can speed delivery, but it also weakens traceability unless teams add explicit controls for provenance, validation, and review before deployment.
- Agentic remediation: Agentic remediation is the automated generation and application of fixes for validated security findings, usually at pull request or pipeline stage. It reduces manual triage pressure by closing routine issues faster, while keeping human oversight for changes that alter business logic or introduce material risk.
- Code provenance: Code provenance is the verifiable history of where code came from and who or what created it. In security practice, it combines authorship, timestamps, signatures, and build lineage so teams can prove a change was trusted before it reached production.
- Context-Blind Logic: Code that appears correct in isolation but fails when applied to the organisation's real policy, data, or runtime context. AI-generated code can produce this failure mode when it optimises locally without understanding the broader control environment.
What's in the full article
LEGIT Security's full analysis covers the operational detail this post intentionally leaves for the source:
- The article's discussion of Gartner and SACR findings on vibe coding adoption and code-generation risk.
- The article's breakdown of agentic remediation, including how AI systems propose, validate, and explain fixes.
- The article's guidance on guardrails for tracking AI usage across development workflows.
- The article's framing of why developers may need stronger evidence before accepting AI-generated changes.
Deepen your knowledge
The NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, machine identity security, and secrets management. It helps practitioners build the governance mindset needed to control machine-driven change across modern security programmes.
Published by the NHIMG editorial team on August 18, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org