By NHI Mgmt Group Editorial TeamBased on LEGIT Security: “Vibe Coding Is Moving Faster Than Security - Market Research Agrees” (December 22, 2025)

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 says AI-generated code is forcing AppSec to move beyond vulnerability finding toward controls for provenance, explainability, and validated remediation.

Why it matters: It matters because teams governing human, machine, and agent-created software now need to verify code origin and fix quality, not just scan for defects.

By the numbers:

  • By 2028, 40% of new enterprise production software will be created using vibe coding techniques, according to Gartner research cited by LEGIT Security.
  • Repeated AI refinement cycles increased critical vulnerabilities by 37%, according to SACR research cited by LEGIT Security.

Context

AI-assisted software creation changes the security problem from code review at the end of development to control over how code is produced, modified, and repaired. When software is authored or rewritten by AI, the usual assumptions about human intent, traceable rationale, and predictable remediation no longer hold. That creates a genuine governance gap for AppSec, and it also introduces a machine-authorship issue that identity and trust programmes cannot ignore.

The practical question is no longer whether teams can detect defects in AI-generated code. It is whether they can prove what changed, why it changed, and whether the fix introduced a new issue. For security and engineering leaders, that shifts AppSec toward provenance, validation, and accountability for agent-assisted change. This is an operating-model change, not just a tooling update.


Key questions

Q: How should security teams govern AI-generated code in production pipelines?

A: Security teams should treat AI-generated code as a controlled identity event, not just a development artifact. Require human approval, traceable authorship, scoped workload identities, and evidence of intent before production promotion. The goal is to preserve provenance and limit blast radius when generated logic behaves unexpectedly.

Q: Why does AI-assisted coding create risk even when scanners find fewer defects?

A: Because defect detection does not prove the change is correct in context. AI can generate code that looks clean, passes static checks, and still violates policy, introduces unsafe dependencies, or creates remediation debt later. The risk shifts from finding flaws to proving that the fix is trustworthy and that the change did not trade one problem for another.

Q: What are the signs that AI-generated code is degrading security instead of improving it?

A: Common warning signs include missing input validation, weakened access controls, stripped logging, insecure API parameters, and refactors that change control flow without a security rationale. Teams should also watch for code that looks cleaner but loses redundancy, error handling, or architecture-specific safeguards. If a fix appears to work yet was not reviewed in context, treat it as a likely regression candidate.

Q: What is the difference between scanning AI-generated code and validating it?

A: Scanning asks whether the code contains known defects, while validation asks whether the fix is safe, context-appropriate, and free of side effects. In AI-assisted development, validation is the stronger control because a clean scan can still hide policy breaks, brittle dependencies, or incorrect reasoning. Teams need both, but validation is what restores confidence in the change itself.


Technical breakdown

Why AI-generated code breaks the human-authorship model

Traditional AppSec assumes that a developer can explain the intent behind code, the reasoning behind a change, and the risk accepted when a control is bypassed. AI-generated code weakens those assumptions because the output may be syntactically correct while being context-blind, over-dependant on libraries, or semantically misaligned with policy. Static analysis can still find defects, but it cannot reliably recover the missing design intent that would tell a reviewer whether a fix is safe in production. That is why this is a control-plane problem, not just a defect-density problem.

Practical implication: Treat AI-generated code as a distinct review class with provenance and explanation requirements before merge.

Why remediation now needs validation, not just detection

In AI-assisted development, the harder problem is often not finding a weakness but proving that a proposed fix does not introduce a second-order failure. Agentic remediation can propose changes, test them, and explain them, but that still leaves a governance question: who accepted the reasoning, and under what evidence threshold? This is where validation becomes a control, not a courtesy. If fixes are not traceable through tests, policy checks, and human review where needed, remediation speed can rise while assurance falls.

Practical implication: Require test-backed, policy-aware validation for every AI-generated fix before it is trusted in higher-risk systems.

How provenance and explainability become security controls

Provenance tells you where code came from, which model or assistant shaped it, and whether the change path is auditable. Explainability tells reviewers what the system believed it was doing, which matters when a fix looks right but fails under real application context. Together, they replace the old assumption that a developer already understands every line they merged. In practice, AppSec teams need controls that capture AI involvement at creation time and preserve enough context for audit, rollback, and incident investigation.

Practical implication: Log AI involvement, model source, and remediation rationale so every material code change remains auditable.


Threat narrative

Attacker objective: The objective is to push insecure or policy-breaking code into production faster than human review and remediation can reliably catch it.

  1. Entry occurs when AI coding assistants generate or modify software outside the human review model that traditional AppSec assumes.
  2. Credentialed access is not the issue here; the abuse path is contextual code generation that bypasses developer understanding and introduces fragile dependencies.
  3. Escalation happens when AI-generated fixes pass static checks but still encode policy-breaking logic or new vulnerabilities into production workflows.
  4. Impact is a faster delivery pipeline with weaker assurance, more complex remediation, and a larger chance that vulnerable code ships at scale.

Read and download The State of NHI & AI Agent Breach Report 2026, covering 200+ breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

AI-generated code creates governance debt, not just development speed. The central issue is that traditional AppSec was built around human intent and reviewable rationale, while vibe coding introduces machine-authored change at production scale. That breaks the old assurance model even when raw vulnerability counts look manageable. Security leaders should treat the shift as a control redesign problem, not a tooling refresh.

Provenance is becoming an application security requirement. If teams cannot tell which parts of a change were AI-generated, which model influenced the output, and what validation evidence supports the fix, they cannot defend the change in audit or incident review. This is where AppSec meets identity and trust governance, because software creation now includes non-human authorship and delegated change authority. Practitioners should make origin tracking part of the release gate.

Explainability is now part of remediation quality. A fix that cannot be justified in clear technical terms is not operationally trustworthy, even if it passes tests. AI can accelerate repair, but it can also hide reasoning gaps that humans would normally surface in code review. The right question is no longer whether an issue was patched, but whether the reasoning behind the patch is inspectable and repeatable. Practitioners should measure confidence in the fix, not only closure speed.

AppSec will increasingly govern the relationship between developers and autonomous helpers. As AI systems write more code, the security function has to define when the assistant may propose, apply, or validate changes, and when human approval remains mandatory. That makes this a policy and operating-model issue as much as a scanning issue. The practical conclusion is clear: build guardrails around AI-assisted change, or accept weaker control over what enters production.

From our research library:

What this signals

AI-generated code turns application security into a governance problem about change provenance. The practical boundary has moved from scanning artefacts to controlling how code enters the pipeline, which means security teams need evidence of who or what authored the change and why it was accepted. That is especially important where AI assistants can create or rewrite large portions of code before a human sees the result.

Remediation workflows now need their own control plane. If a fix is generated by an assistant, the organisation has to judge whether the repair is explainable, test-backed, and safe to ship. That means prioritising validation evidence, not just vulnerability closure, and it fits naturally with AppSec oversight in broader engineering governance.

Model-assisted development also creates an identity and trust gap. The software production chain now includes non-human actors whose contributions can materially alter risk, so AppSec, IAM, and engineering governance need a shared view of delegated change authority. Organisations that do not track this boundary will struggle to distinguish productive automation from uncontrolled code creation.


For practitioners

  • Define AI-generated code as a separate risk class Tag code paths created or heavily modified by assistants so review, testing, and approval criteria can differ from human-authored changes.
  • Require provenance for assistant-driven changes Capture which model, workflow, and repository context influenced the change so teams can trace how the code was produced.
  • Gate remediation on validated fixes Block merge or deployment until the proposed AI-generated fix has passed tests, policy checks, and a human sign-off where risk warrants it.
  • Measure remediation quality, not only speed Track whether fixes for AI-generated code create follow-on defects, repeat findings, or policy violations after release.
  • Constrain autonomous repair to low-risk systems Allow agentic remediation in bounded environments first, where rollback, blast radius, and monitoring are easier to control.

Key takeaways

  • AI-generated code is changing AppSec from late-stage defect detection to control over provenance, validation, and accountable remediation.
  • The evidence in this article points to a real governance gap: faster code production can coexist with more fragile fixes and weaker assurance.
  • Teams that keep treating assistant-written code like ordinary human-authored code will miss the point where security assurance actually fails.

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 and MITRE ATT&CK address the attack and risk surface, while NIST CSF 2.0 and OWASP ASVS set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10ASI03 — Identity & Privilege AbuseAI assistants modifying code create delegated authority and trust issues similar to agentic privilege abuse.
Recommendation — Control assistant permissions and approval boundaries so code changes cannot bypass human-authorised review.
NIST CSF 2.0PR.AA-05 — Access Permissions, Entitlements and AuthorizationsAppSec now needs clear entitlement boundaries for AI-assisted change and remediation workflows.
Recommendation — Apply PR.AA-05 to limit which AI workflows can propose, modify, or promote code changes.
OWASP ASVSV15 — Secure Coding and ArchitectureAI-generated code affects secure design and implementation quality across the application lifecycle.
Recommendation — Use V15 to verify that AI-assisted code meets secure architecture and coding requirements before release.
MITRE ATT&CKTA0002;TA0004;TA0005 — Execution; Privilege Escalation; Defense EvasionAgentic code changes can be used to execute harmful actions, escalate impact, and evade review controls.
Recommendation — Map risky AI-assisted change paths to ATT&CK tactics and add detection where code review is being bypassed.

Key terms

  • Vibe Coding: A software development approach where natural-language prompts drive much of the implementation and AI produces the code. In practice, the term covers a wide range of control levels, from no-review prototyping to structured engineering with tests, review, and architecture held by humans.
  • Provenance: Provenance is the traceable history of where a software artifact came from, who approved it, and what controls were applied along the way. In container security, provenance supports trust decisions because it links delivery steps to accountable identities and review points.
  • Decision Explainability: Decision explainability is the ability to understand why a system reached a specific outcome. In fraud and identity workflows, it means the organisation can trace the signals, confidence, and decision path well enough to review false positives, tune policy, and defend the result internally and externally.
  • 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.

Deepen your knowledge

The NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, agentic AI identity, and machine identity security. It helps security and identity practitioners build the control language needed for delegated, non-human change.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 18, 2026.
Updated on October 12, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org