By NHI Mgmt Group Editorial TeamBased on Checkmarx: “Zombie CVEs: Put to Rest by Humans, Dug Back Up by AI Agents” (July 26, 2026)

TL;DR: 65 to 75% of frontier AI agents’ working patches resurrect vulnerabilities already found and fixed, while functional success rose to 83 to 95% and secure-and-functional success stayed at 24 to 36%, according to Checkmarx research. The result is a widening gap between code that works and code that remains safe, making security review mandatory rather than optional.


At a glance

What this is: Checkmarx’s research shows that frontier AI coding agents often rebuild vulnerabilities that had already been fixed, with working patches frequently reintroducing known CVEs.

Why it matters: For IAM, NHI, and AI governance teams, this means software creation pipelines now need controls that treat AI-generated code as a governed supply chain risk, not just a productivity feature.

By the numbers:

  • 65 to 75% of frontier AI agents’ working patches resurrect vulnerabilities that were already found and fixed.
  • Secure-and-functional success reached only 24 to 36% across the tested models.
  • Functional success surged to 83 to 95% across the cohort.
  • 49% of production code is now AI-generated, according to Checkmarx’s 2026 Future of AppSec report.

Context

AI coding agents are systems that can produce and modify code with limited human prompting, but that capability does not guarantee secure outcomes. The security gap matters because development pipelines increasingly rely on machine-generated code for production features, and the article shows that those agents can reproduce vulnerabilities that were already known, fixed, and documented.

The identity angle is real even though the article is about application security: AI coding agents are becoming non-human actors inside the software delivery chain, making their access, output, and review lifecycle a governance issue. When an agent can generate vulnerable code at scale, the control problem shifts from developer productivity to authorisation, review, and secure change management for machine-produced artefacts.


Key questions

Q: What breaks when AI coding agents are used as the final authority on vulnerabilities?

A: False positives, unstable results, and shallow reasoning become operational failures rather than harmless noise. Teams can waste time on non-issues, miss real defects, and lose confidence in their review process. AI should surface candidates, but a deterministic scanner or human reviewer must confirm the exploit path before remediation is prioritised.

Q: Why do AI coding agents keep reproducing vulnerabilities that humans already fixed?

A: Because these systems optimise for task completion and code similarity, not for preserving the security intent embedded in a patch. If the vulnerable pattern still satisfies the feature request, the model may recreate it unless secure design constraints are explicit and enforced.

Q: What are the signs that generative AI code is failing a security review?

A: The clearest signs are code that passes functional tests but introduces unsafe input handling, string concatenation with user data, or missing sanitisation. Another warning sign is when developers need significant manual rework after generation, which erodes the productivity benefit. If remediation becomes the real work, the AI output is not meeting the security objective.

Q: How should teams govern AI-assisted development workflows that use coding agents?

A: Treat them as identity-governed execution paths, not just productivity tools. Define who can start the workflow, which tools and data sources it can reach, what evidence is required for review, and how access is revoked if the workflow expands beyond its intended scope. The key is to govern the chain of delegated action, not only the final code output.


Technical breakdown

Why frontier coding agents resurrect known CVEs

The core mechanism is not ignorance of vulnerabilities but a failure to prioritise secure implementation over functional completion. The article’s benchmark results suggest that the models can produce working code while still omitting or weakening the security property that human maintainers had already added to the original fix. That is a classic assurance gap: the system satisfies the feature request yet regresses the security invariant. In practice, this means code generation optimises for task completion unless security is made a first-class acceptance criterion, not an afterthought.

Practical implication: Treat AI-generated code as untrusted until it passes the same security checks as human-authored code.

Why prompt-based security nudges are too weak

The study shows that generic reminders, extra reasoning effort, and even post-hoc review only partially improve outcomes. That matters because it demonstrates the limit of soft governance controls when the underlying generation loop is free to reproduce a known-bad pattern. A secure output requires structured constraints, threat modelling, and verification that are external to the model’s own completion objective. Without those controls, the model can explicitly understand the defense and still emit the vulnerable implementation.

Practical implication: Place policy, review, and testing outside the model rather than relying on prompts to enforce security.

Why AI-generated code becomes a supply chain problem

When production code is increasingly generated by AI, the security issue moves upstream into the software supply chain. The article’s findings align with a broader pattern where machine-produced artefacts can carry latent defects into repositories, builds, and releases at scale. That creates governance pressure similar to other non-human producers in the pipeline: you need provenance, review, and release gating, not just developer trust. The relevant question is no longer who typed the code, but whether the system that produced it is controlled like any other high-volume source of change.

Practical implication: Extend software supply chain controls to AI code generation, including provenance, change review, and release gating.


Threat narrative

Attacker objective: The practical outcome is not a bespoke exploit chain but the reintroduction of known weaknesses into live software where they can be discovered and abused again.

  1. Entry occurs when an AI coding agent is asked to build a feature that previously required a security fix to avoid a known vulnerability.
  2. Credential or privilege abuse is not the main vector here; the failure comes from the agent’s ability to emit vulnerable code with enough quality to pass normal development checks.
  3. Impact occurs when the resurrected flaw is merged into production, reintroducing a CVE the organisation had already eliminated.

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 code generation is becoming a governance problem, not just a productivity problem. When a machine can repeatedly reintroduce fixed vulnerabilities into working code, the control failure sits in the delivery pipeline, not just in developer judgment. That means review gates, provenance, and release policy have to treat AI-generated code as a governed non-human output. Practitioners should manage it like any other high-volume producer of change.

Secure-by-prompt is not a control. The research shows that asking for security, or giving the model more reasoning budget, does not reliably produce secure output. That is a strong signal that the security function cannot live inside the model’s completion behaviour. Practitioners should assume that the model may know the right defense and still emit the wrong implementation, so enforcement must happen outside the generation step.

Resurrected CVEs create security debt, not just coding defects. The same flaw returning in a new generation of tooling means organisations are paying twice: once to fix the original issue and again to detect its reappearance in machine-authored code. This is especially relevant where AI agents are embedded in developer workflows and can scale insecure patterns rapidly. Practitioners should treat recurrence of known CVEs as a repeatable governance failure, not an isolated quality miss.

AI-generated code now belongs in supply chain risk management. Once machine-produced code routinely enters repositories and builds, software assurance has to extend to the identity and control of the producing system as well as the code itself. The article supports a broader industry shift toward provenance, secure change control, and release accountability for non-human contributors. Practitioners should align AI coding workflows with the same assurance expectations applied to third-party software input.

Named concept: resurrected CVE drift. This article reveals a specific failure mode where AI systems reconstruct vulnerabilities the security community already eliminated, creating regression rather than progress. That drift is especially dangerous because it looks like functional success while silently degrading assurance. Practitioners should monitor for repeated reintroduction of previously remediated issues as a distinct control signal.

From our research library:

What this signals

Resurrected CVE drift: AI coding pipelines are now capable of regenerating vulnerabilities the security programme already paid to eliminate, which means regression detection has to become a standard control in software delivery. For teams using AI to accelerate development, the real governance question is whether a generated patch preserves the original security invariant, not just whether it compiles or passes tests.

The 70% tendency to grant AI systems more access than an equivalent human employee is a warning sign for code-generation workflows as well as agentic operations. If a machine contributor is trusted too broadly, the organisation widens the blast radius for insecure output, so access, review, and release authority should be scoped more tightly than functional convenience suggests.


For practitioners

  • Gate AI-generated code with security acceptance criteria Require generated changes to pass vulnerability checks, secure coding rules, and threat-model review before merge, especially when the feature resembles a previously fixed CVE path.
  • Track recurrence of fixed vulnerabilities Add review logic that flags when generated code resembles a previously remediated weakness, so teams can spot regression patterns instead of treating each defect as new.
  • Separate functional success from secure success Measure AI coding workflows with two outcomes, working code and secure code, so teams do not confuse feature completion with safe delivery.
  • Apply provenance controls to machine-authored code Record which agent produced each change, what task context it used, and which review gates approved it, so release teams can trace AI-generated modifications end to end.

Key takeaways

  • AI coding agents can produce working patches that reintroduce vulnerabilities already fixed, which makes regression control a core software assurance issue.
  • The research shows a large gap between code that functions and code that remains secure, so success metrics must measure both outcomes separately.
  • Security prompts alone are insufficient, and teams need external gates such as review, provenance, and vulnerability checks before AI-generated code reaches production.

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 ATLAS address the attack and risk surface, while NIST AI RMF and OWASP SAMM set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10ASI03 — Identity & Privilege AbuseAI coding agents act as non-human actors whose output can bypass normal code security expectations.
Recommendation — Apply ASI03 controls to govern how agent-produced code is authorised, reviewed, and released.
NIST AI RMFGOVERN — AI Governance and AccountabilityThe article is fundamentally about governing AI output so secure intent is preserved in delivery pipelines.
MANAGE — AI Risk ManagementThe article shows recurring operational risk from AI code generation that must be managed before deployment.
Recommendation — Use GOVERN to assign accountability for AI-generated code and require control owners for release decisions. Use MANAGE to track AI-generated code risk, remediation, and residual exposure across the SDLC.
MITRE ATLASTA0001;TA0006 — Initial Access; Credential AccessThe article highlights how generated code can recreate exploitable conditions that support later compromise.
Recommendation — Map recurring vulnerability regeneration to TA0001 and TA0006 when prioritising detection and testing.
OWASP SAMMSecurity Testing — Security TestingThe study shows that code quality alone is not enough without systematic security verification in the SDLC.
Recommendation — Embed security testing gates for AI-generated changes before they reach integration or release.

Key terms

  • Resurrected CVE Drift: A pattern where new code reproduces a vulnerability that was already discovered, disclosed, and fixed. In AI-assisted development, this means functional output can still regress security by reintroducing a known weakness that the organisation thought was already eliminated.
  • Secure-and-functional success: Secure-and-functional success is the state where code both works as intended and avoids introducing the security weakness that the task could easily recreate. It is a more useful measure than functional success alone because it captures whether the output is deployable from both an engineering and security perspective.
  • AI-Generated Code Regression: A repeat security failure caused when machine-produced changes undo a prior remediation or recreate an old flaw class. It reflects a governance problem in the pipeline, not just a coding mistake, because the organisation has already demonstrated awareness of the risk once before.
  • Control Provenance: The traceable origin of the evidence used to prove a control is operating. In practice, provenance matters when auditors need to know whether reports were generated independently, whether data was altered, and whether the proof can be reproduced later.

Deepen your knowledge

The NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, machine identity security, and related control thinking that security and architecture teams can apply to non-human contributors in modern delivery pipelines. It is suitable for practitioners aligning identity governance with broader security operations.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 1, 2026.
Updated on October 13, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org