TL;DR: AI-accelerated development is widening AppSec gaps because 76% of AI-generated code still needs security refactoring and developer productivity gains are outpacing review capacity, according to Checkmarx, IDC and The New Stack. The security model now has to move from passive finding to context-aware action, or risk will accumulate faster than teams can remediate it.
At a glance
What this is: This is an analysis of how AI-generated code and vibe coding are exposing the limits of traditional AppSec workflows.
Why it matters: It matters because IAM, NHI, and security teams increasingly need to govern machine-assisted development workflows where policy, secrets, and code risk are created faster than human review can keep up.
By the numbers:
- Developers using GenAI tools like GitHub Copilot are reporting 35% productivity gains, according to IDC’s 2024 Generative AI Study.
- 76% of AI-generated code requires security refactoring, according to The New Stack’s 2025 State of Web Dev AI Report.
- Only 44% of developers are reported to follow security best practices for secrets management, exposing a significant developer behaviour gap.
👉 Read Checkmarx's commentary on AI-generated code, AppSec friction, and agentic controls
Context
AI-generated code changes the AppSec problem from finding defects after the fact to controlling risk at the point of creation. When developers accept generated code at face value, security issues such as insecure dependencies, misconfigurations, and hidden secret handling problems can move into the delivery pipeline before traditional scanning or review catches them.
That shift matters for identity and access governance as well as application security. AI-assisted development increases the number of places where secrets, service credentials, and policy decisions can be created, copied, or approved without durable human oversight. For NHIMG, the key issue is not whether AI speeds coding. It is whether the control model can still enforce accountability, least privilege, and auditability inside AI-shaped workflows.
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 development increase application identity risk?
A: Because many applications implement identity controls in code, and AI tools can reproduce insecure login, token, and access patterns at scale. That means the risk is not limited to software defects. It extends to the trust boundaries that govern users, service accounts, and any downstream system that accepts those credentials as valid.
Q: What do teams get wrong when they evaluate AI support in AppSec tools?
A: They often confuse usability features with security capability. A polished explanation layer does not improve detection, and a co-pilot function does not prove architectural change. Teams should ask where AI sits in the pipeline, how it changes findings, and whether it expands or merely restyles the legacy scanner.
Q: How can organisations tell whether their AI security model is actually working?
A: They should test whether the control stack can explain who acted, what data was touched, and what purpose the action served. If those three signals cannot be correlated in one incident view, the model is likely monitoring access without governing behaviour. That is a visibility gap, not a complete AI security posture.
Technical breakdown
Why vibe coding expands the AppSec attack surface
Vibe coding describes a workflow where developers rely on AI-generated suggestions, accept code quickly, and defer deeper scrutiny. That changes the risk profile of the software supply chain because insecure dependencies, unsafe defaults, and credential exposure can be introduced at the speed of generation, not the speed of review. In practice, this compresses the window for detection and increases the chance that insecure code reaches pull requests or build systems before security tools can intervene. The problem is less about code quality in the abstract and more about control loss at the moment of authoring.
Practical implication: teams need controls that evaluate generated code before merge, not only after scanning in CI.
Why passive scanning is no longer enough for AI-assisted development
Traditional AppSec tools are built to detect and report findings, but AI-accelerated development creates a throughput problem. If remediation queues grow faster than teams can process them, findings become backlog rather than control. Agentic intervention shifts the model from observation to action by standardising fixes, applying policy, and routing issues into the developer workflow. That does not remove the need for human oversight, but it does change where the work happens. The architectural point is that security must participate in the workflow as an active control plane, not a downstream reviewer.
Practical implication: use policy-aware automation to close low-risk issues and reserve human review for higher-impact exceptions.
How AI agents change code, policy, and risk governance
AI agents embedded in AppSec workflows can support three functions: developer assistance, policy enforcement, and risk visibility. The first translates findings into code changes, the second operationalises policy as code, and the third converts technical risk into a form leadership can act on. That structure matters because AI-generated code increases the volume of governance decisions that must be made consistently. Without a machine-readable policy layer and auditable action trail, teams cannot prove which fixes were applied, which risks were accepted, or which exceptions persisted.
Practical implication: centralise policy logic and audit trails so agent actions remain explainable and reviewable.
Threat narrative
Attacker objective: The attacker objective is to turn AI-assisted development speed into exploitable application weakness before security governance can catch up.
- Entry occurs when developers introduce AI-generated code or copy suggested snippets into active development workflows without sufficient scrutiny.
- Escalation happens when insecure patterns, outdated dependencies, or misconfigurations are inherited into build and review pipelines before security validation can stop them.
- Impact follows when those weaknesses reach production code, creating exploitable application flaws, exposed secrets, or policy drift that security teams must later contain.
NHI Mgmt Group analysis
AI-generated code has become an AppSec governance problem, not just a developer productivity issue. When AI systems can produce, refactor, and recommend code at scale, the control question shifts from code review depth to governance of the generation workflow itself. That creates a new boundary between secure software delivery and machine-assisted authorship. Practitioners should treat generated code as a governed input, not a trusted output.
Agentic AppSec introduces a practical model for closing the speed-to-security gap. Passive findings do not keep pace when remediation queues expand faster than human teams can process them. Context-aware agents can standardise fixes, enforce policy, and surface risk in the tools developers already use. The field is moving toward security controls that act inside the workflow rather than observing it from the outside, and practitioners should redesign delivery pipelines accordingly.
Identity and secrets governance become more exposed as development becomes AI-mediated. AI-assisted coding increases the chance that service credentials, tokens, and policy exceptions enter the software lifecycle without explicit ownership. That makes NHI controls, secret handling, and approval boundaries part of AppSec design rather than adjacent concerns. The named concept here is generation-time control loss, meaning risk is created before conventional security checkpoints can intervene.
Transparency and auditability matter more than agent novelty. The value of AI agents in AppSec depends on whether their actions can be traced, explained, and aligned to enterprise policy. Without an audit trail, organisations gain speed but lose accountability. Practitioners should evaluate AI security tooling by the quality of its decision records, not by how much work it claims to automate.
What this signals
Generation-time control loss is the pattern security teams should watch for as AI-assisted coding becomes normal. When code, policy, and remediation are increasingly generated or orchestrated by machines, the programme risk shifts toward traceability and approval integrity. Teams should align delivery controls to NIST AI Risk Management Framework expectations and keep identity-sensitive changes, especially secrets and service credentials, under explicit review.
The operational signal is no longer how many findings a scanner produces. It is whether the organisation can prove which AI-generated changes were accepted, which were rejected, and which were remediated automatically. That is where AppSec, IAM, and NHI governance intersect: machine-assisted development creates more pathways for credentials, access policy, and code trust to drift at the same time.
The practical next step is to treat AI coding workflows as part of the control surface, not a productivity layer outside security governance. Use policy-aware automation, but pair it with auditability and exception handling that can stand up in change management, compliance review, and incident investigation.
For practitioners
- Treat generated code as a governed input Require AI-assisted code to pass the same policy checks as human-authored code, with additional review for dependencies, secrets, and privilege-related changes.
- Shift AppSec from detection to controlled intervention Automate low-risk fixes, policy standardisation, and risk routing inside the developer workflow so teams reduce backlog without abandoning oversight.
- Add secrets and NHI controls to AI coding workflows Scan for embedded credentials, enforce service-account ownership, and verify that generated code cannot introduce unmanaged tokens or hardcoded secrets.
- Demand auditable agent actions before adoption Confirm that any security agent records what it changed, why it changed it, and which policy rule justified the action before it is allowed to operate at scale.
Key takeaways
- AI-generated code changes AppSec from a review problem into a governance problem because risk now appears at the point of authoring.
- The central evidence is throughput pressure: faster development and high refactoring rates mean passive scanning cannot keep pace on its own.
- Practitioners should respond with workflow-embedded policy enforcement, auditable agent actions, and explicit NHI and secrets controls.
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 AI RMF, NIST CSF 2.0 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST AI RMF | GOVERN | AI-generated code and agentic controls require governance, accountability, and auditability. |
| OWASP Agentic AI Top 10 | Agentic coding workflows create tool misuse and policy bypass risks. | |
| NIST CSF 2.0 | PR.AC-4 | Generated code can introduce privilege and access-control drift into delivery pipelines. |
| NIST SP 800-53 Rev 5 | SI-2 | AI-generated code often requires systematic flaw remediation and controlled patching. |
| MITRE ATT&CK | TA0002 , Execution; TA0006 , Credential Access; TA0010 , Exfiltration | The article discusses application weaknesses that can lead to execution, credential exposure, and exfiltration. |
Map AI-assisted code risks to likely ATT&CK outcomes and prioritise controls that block credential and data exposure.
Key terms
- Vibe Coding: A development style where engineers rely heavily on AI-generated suggestions and move quickly with limited line-by-line scrutiny. It increases delivery speed, but it also reduces the chance of catching insecure patterns, hidden dependencies, and credential handling mistakes before they spread into the pipeline.
- Agentic AppSec: An application security model where AI agents do more than detect issues. They can triage findings, apply policy, suggest fixes, and generate auditable changes inside the development workflow. The value depends on whether those actions remain explainable, controlled, and aligned to enterprise governance.
- Generation-time control: Generation-time control is security enforcement applied while an AI assistant is producing output, not after the code enters the repository. It matters because machine-speed coding compresses the window for review and makes delayed detection far less effective.
- Policy as Code: Policy as code stores authorization logic in version control and evaluates it through testable, reviewable rules. For agent governance, it makes runtime decisions reproducible and measurable, which is critical when actions can be triggered by untrusted content and executed at machine speed.
What's in the full article
Checkmarx's full commentary covers the operational detail this post intentionally leaves for the source:
- How the Developer Assist, Policy Assist, and Insights Assist agents are intended to fit into AppSec workflows.
- The IDC framing behind friction between security and speed, policy and practice, and risk posture and visibility.
- The implementation context for embedding controls inside developer tools rather than adding another downstream review layer.
- The specific enterprise outcomes IDC associates with auditability, policy standardisation, and remediation speed.
👉 Checkmarx's full commentary covers the IDC analysis, agent roles, and AppSec operating model shifts.
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 connect identity control to the wider security programmes that AI-assisted development now depends on.
Published by the NHIMG editorial team on August 2, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org