TL;DR: AI-generated code is accelerating software delivery while also increasing the chance that vulnerabilities reach production before security teams can review them, according to OXSecurity and Veracode research. Traditional AppSec controls are too slow and noisy for AI-assisted development, so security has to move into the workflow rather than sit after the fact.
At a glance
What this is: This is an analysis of why AI-assisted development is outpacing traditional application security and what in-workflow controls change for remediation.
Why it matters: It matters to IAM practitioners because AI-generated code often introduces secrets, access, and runtime exposure issues that intersect with identity governance, secret handling, and least-privilege control.
By the numbers:
- 45% of AI-generated code samples failed security tests and introduced OWASP Top 10 vulnerabilities.
- 64% of respondents cited high false positive rates from vendor-provided tools as one of their most common day-to-day challenges.
- 90% of Security Operations Centers are overwhelmed by, lmed by backlogs and false positives.
👉 Read OXSecurity's full analysis of AI code security and VibeSec
Context
AI code security is becoming a governance problem, not just a tooling problem. AI-assisted coding increases throughput, but it also compresses the time between code creation, review, and production, which leaves less room for traditional scan-and-ticket security to intervene. In that environment, the main failure is not a lack of findings. It is a lack of timely, contextual decision-making.
The identity angle is real because AI-generated code often creates or consumes secrets, service endpoints, and access patterns that sit inside the broader IAM and NHI control plane. When developers can generate code faster than security can review it, secret handling, workload identity, and least-privilege assumptions become harder to enforce consistently. The starting position described in the article is increasingly typical, not exceptional.
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-assisted development tools increase API security risk?
A: They allow teams to create endpoints faster than manual registration, review, and documentation can keep up. That speed widens the gap between what exists and what security can see, which increases the chance that unauthorised or weakly controlled endpoints remain exposed long enough to be exploited.
Q: What do teams get wrong about vulnerability alert fatigue?
A: They often assume the answer is fewer alerts, when the real issue is better prioritisation. Alert fatigue usually means the programme cannot distinguish exploitable exposure from background noise quickly enough for engineers to trust the output. Fixing that requires tighter signal quality, clearer ownership, and remediation paths matched to the artifact type.
Q: Should organisations change IAM controls when AI-generated code uses secrets or service accounts?
A: Yes. If AI-generated code can create or consume secrets, service accounts, or delegated credentials, then IAM controls must extend into the application lifecycle. That means stricter secret handling, clearer ownership of service identities, and traceability from code change to runtime access before risk is accepted.
Technical breakdown
Why AI-generated code breaks post-build security models
AI-generated code changes the security queue because it can be produced, merged, and deployed before a traditional control ever sees it. Post-build scanning assumes there is enough time to review artifacts after creation, but AI-assisted development compresses that window. The result is a mismatch between delivery speed and security latency. Security teams then inherit a backlog of findings that may already be live in production. This is not only a volume issue. It is a timing issue that makes after-the-fact review structurally weaker.
Practical implication: move high-confidence checks as close as possible to code creation and merge time.
Why alert fatigue is a control failure, not just a staffing issue
Alert fatigue happens when scanners generate more findings than teams can meaningfully triage. Pattern-based tools often lack context, so they flag benign code alongside exploitable issues, which trains developers to ignore the queue. In AI-assisted environments, that noise grows faster than human review capacity. The security problem is not simply that teams are busy. It is that the control itself no longer distinguishes signal from noise well enough to support prioritisation. Without contextual analysis, the workflow rewards speed over certainty.
Practical implication: reduce low-value findings before they reach developers and tune controls to exploitable context.
How in-workflow security changes code-to-runtime traceability
In-workflow security pushes analysis into the developer environment, where code is written and adjusted. That allows the control to observe the path from code generation to deployment and tie findings to the runtime context that makes them risky. Code-to-runtime traceability matters because the same code pattern can be harmless in one setting and dangerous in another, especially when secrets, cloud access, or identity tokens are involved. This is where AppSec and identity governance intersect most strongly: the security value comes from knowing what the code can reach, not just what it looks like.
Practical implication: require traceability from source changes to runtime exposure before treating a finding as low priority.
Threat narrative
Attacker objective: The attacker objective is to exploit production code weaknesses created by AI-assisted development before security teams can detect and remediate them.
- Entry occurs when AI-generated code introduces a vulnerability, secret exposure, or risky dependency into the development pipeline.
- Escalation follows when the issue reaches production before review, giving attackers an exploitable path through exposed application logic or credentials.
- Impact is realised when the flaw is used to access data, impersonate services, or move further into connected systems.
NHI Mgmt Group analysis
AI code security is now a governance issue, not a scan issue. The article describes a familiar failure mode in modern AppSec: code moves faster than review, and security inherits the residue too late. That is not solved by more alerts. It is solved by controls that understand where code is used, what it can reach, and whether the finding is actually exploitable. For teams running IAM-linked applications, the same logic applies to secrets and token handling. The practitioner conclusion is simple: speed without contextual control creates hidden risk debt.
Code-to-runtime traceability is the named concept this market needs. Security cannot evaluate AI-generated code accurately if it only sees source text. The decisive question is how that code behaves once it touches identity services, cloud resources, or privileged application paths. This is where application security, secrets management, and NHI governance overlap. If a control cannot follow the code from creation to execution, it cannot reliably prioritise the risk. The practitioner conclusion is that traceability is now a control requirement, not a reporting enhancement.
Alert fatigue is becoming a structural control gap. The article's numbers show that security teams are already drowning in low-value findings, which means the issue is not detection volume alone but detection quality. False positives erode response discipline and delay action on genuine risk. In identity-heavy environments, that delay can leave secrets, service accounts, and API access exposed long enough to be abused. The practitioner conclusion is to treat signal quality as a first-class security objective.
AI-assisted development exposes the limits of pipeline-era AppSec. DevSecOps still helps, but it assumes a pipeline boundary that AI coding increasingly blurs. Security has to move earlier, closer to the developer, while still retaining evidence for governance and audit. That is especially important where code interacts with human identity, service identity, or delegated access. The practitioner conclusion is that tooling strategy must shift from pipeline gates alone to contextual enforcement across the full build-and-run lifecycle.
Identity and AppSec are converging around token and secret risk. AI-generated code frequently touches credentials, service endpoints, and third-party packages, which makes identity governance part of the application security control plane. This is where many teams still operate with separate ownership models that do not match the way modern code is produced. The practitioner conclusion is to align AppSec and IAM around shared policy for secrets, workload identity, and privileged access.
What this signals
Code-to-runtime traceability will become a baseline expectation in programmes that rely on AI-assisted development. Teams that cannot connect source changes to deployed exposure will struggle to separate exploitable defects from noisy findings, especially where credentials and service identities are involved.
The operational signal to watch is whether AppSec, IAM, and platform engineering are sharing one risk model for secrets, tokens, and delegated access. When those teams work from separate queues, AI-generated code will keep creating control gaps that no single tool can close.
Security programmes should expect more pressure to prove that a finding is both real and reachable. That means prioritising runtime context, access paths, and identity exposure over raw vulnerability counts, and using resources such as NIST Cybersecurity Framework 2.0 to anchor governance and response.
For practitioners
- Shift security checks into the developer workflow Embed approval, analysis, and remediation guidance inside IDE and AI coding assistant workflows so developers see risks before code is merged. This reduces the gap between generation and review and makes fixes more likely to happen while the context is still fresh.
- Prioritise exploitable findings over pattern matches Tune scanners and triage processes to focus on runtime reachability, sensitive data exposure, and actual access paths rather than raw pattern volume. That is how teams cut false positives without losing coverage on high-impact issues.
- Map code changes to runtime exposure Require traceability from source control through pipelines to deployed services, especially where generated code can touch secrets, tokens, or privileged APIs. The goal is to know which changes can actually affect production risk.
- Treat secrets in generated code as a policy violation Block hardcoded credentials, detect exposed tokens early, and route any credential appearance in AI-generated code through a dedicated review path. Secret exposure is a governance failure as much as a coding defect.
- Align AppSec with IAM and NHI governance Bring identity teams into application risk decisions when code creates or consumes service identities, API keys, certificates, or delegated access paths. Shared policy ownership is necessary when code can create identity risk as easily as it creates logic risk.
Key takeaways
- AI-assisted development is widening the gap between code creation and security review, which makes post-build AppSec controls too slow on their own.
- Alert fatigue is not just noise, it is a governance signal that existing tooling is failing to separate exploitable risk from routine pattern matches.
- The practical response is to merge AppSec with identity and runtime governance so secrets, tokens, and service identities are controlled where code is created and executed.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
MITRE ATT&CK address the attack and risk surface, while NIST CSF 2.0, NIST SP 800-53 Rev 5 and NIST AI RMF set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST CSF 2.0 | PR.AC-4 | The article centres on access control, traceability, and least-privilege decisions in app delivery. |
| NIST SP 800-53 Rev 5 | IA-5 | Secrets and token exposure are central to the risk described in the article. |
| NIST AI RMF | GOVERN | AI-driven development needs accountable governance for risk, ownership, and oversight. |
| MITRE ATT&CK | TA0006 , Credential Access; TA0010 , Exfiltration | The article discusses secret leakage and exploitability of generated code. |
Map exposed secrets and reachable flaws to credential access and exfiltration tactics for detection and response.
Key terms
- AI-Generated Code Risk: AI-generated code risk is the possibility that model-produced output introduces insecure credential handling, hidden secrets, or repeated patterns that weaken control design. The risk is operational, because the output can be merged quickly and at scale before humans catch the problem.
- Code-to-runtime traceability: The ability to follow a change from source creation through pipelines and into the deployed environment. In practice, this lets teams understand whether a code path is merely theoretical or can actually reach credentials, data, or privileged services in production.
- Alert Fatigue: Alert fatigue is the condition where a security team receives so many low-value alerts that important events become harder to notice. In monitoring programs, it usually signals poor rule tuning, weak prioritisation, or a mismatch between detection logic and operational reality.
- VibeSec: A security approach that places analysis and remediation guidance inside the developer workflow instead of after code is written. The value comes from reducing time-to-fix, improving context, and aligning security controls with the pace of AI-assisted development.
What's in the full article
OXSecurity's full article covers the operational detail this post intentionally leaves for the source:
- Dashboard and prioritisation examples showing how thousands of findings are reduced to a smaller action set.
- Application-level issue views that map severity, ownership, exposure, and time open across the codebase.
- PBOM and code-to-runtime traceability details for teams that need implementation context.
- Developer workflow examples showing how fixes are surfaced inside existing tools rather than in a separate queue.
Deepen your knowledge
NHI Mgmt Group’s NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, machine identity security, and secrets management. It is designed for practitioners aligning identity controls with modern development and cloud delivery.
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