Subscribe to the Non-Human & AI Identity Journal

How should security teams manage AppSec when AI is writing code faster than humans can review it?

Teams should shift from discovery-centric reporting to remediation-centric governance. That means measuring mean time to remediation, prioritising exploitable findings, and embedding automated validation into the SDLC so security can keep pace with development without lowering trust in the results.

Why This Matters for Security Teams

AI-generated code changes the economics of application security. When code volume rises faster than review capacity, traditional backlog metrics can make a team look busy while exploitable issues remain in production paths. The practical risk is not that AI writes “bad code” in the abstract, but that it accelerates unreviewed change, increases dependency sprawl, and creates more opportunities for insecure patterns to land before testing catches them. The right response is to manage AppSec as a control system, not a ticket queue, consistent with the governance-first mindset in the NIST Cybersecurity Framework 2.0. That means risk-based prioritisation, automated validation, and clear ownership for fixing findings at the pace of delivery.

Security teams also need to recognise that AI-assisted development can obscure provenance. If a vulnerability appears, it may be unclear whether the source was a human edit, a generated snippet, a reused package, or a tool-assisted refactor. That ambiguity matters for root cause analysis, policy enforcement, and repeat prevention. In practice, many security teams encounter AppSec drift only after release velocity has already outpaced manual review capacity, rather than through intentional control design.

How It Works in Practice

Effective AppSec for AI-written code starts by moving controls earlier and making them machine-consumable. Static analysis, secret scanning, dependency checks, IaC validation, and unit test gates should run automatically on every meaningful change. Where AI produces large amounts of code, security review should focus on high-risk domains such as authentication, authorisation, cryptography, data handling, and network boundaries, rather than treating every line equally.

A workable operating model usually includes:

  • Policy-as-code checks that block known-bad patterns before merge.
  • Risk scoring that weighs exploitability, exposure, and asset sensitivity.
  • Automated test generation for common failure modes, with human review of exceptions.
  • Traceability from finding to fix so remediation ownership is explicit.
  • Exception handling for time-bound risk acceptance, not open-ended waivers.

This is also where AI governance and software supply chain integrity intersect. If an AI coding assistant is allowed to use internal repos, package mirrors, or retrieval layers, teams should validate what data it can see and what code it can emit. Current guidance suggests that output should be treated as untrusted until it passes the same controls as any other code change. For broader AI risk control patterns, OWASP guidance for large language model applications is useful for understanding prompt injection, insecure output handling, and downstream abuse paths. These controls tend to break down when release pipelines are manually waived for urgent fixes because the organisation has no enforced path to validate AI-generated changes before deployment.

Common Variations and Edge Cases

Tighter security gates often increase delivery friction, requiring organisations to balance release speed against confidence in the code path. That tradeoff is especially visible in greenfield product teams, platform engineering, and high-churn prototypes where AI writes a large share of the application surface. Best practice is evolving, but there is no universal standard for accepting AI-generated code at scale without some form of automated evidence.

Edge cases matter. In regulated environments, teams may need additional sign-off for changes that affect customer data, payments, or authentication flows. In open-source-heavy stacks, the bigger issue may be transitive dependency risk rather than the generated code itself. In regulated software supply chains, NIST Secure Software Development Framework practices help anchor build-time verification and release integrity, while OWASP guidance for large language model applications helps teams think about how AI tools can be manipulated or misused during development. The AI-specific concern is not just secure coding, but whether generated code inherits unsafe assumptions from the model, the prompt, or the surrounding toolchain. Where teams rely on human review alone, the model’s speed advantage quickly becomes a control gap rather than a productivity gain.

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 CSF 2.0 and NIST AI RMF set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
NIST CSF 2.0 GV.OV-01 Governance and oversight fit remediation-centric AppSec management.
NIST AI RMF GOVERN AI governance is needed when coding assistants influence production code.
OWASP Agentic AI Top 10 Agentic coding tools create prompt and tool-use risks in the development chain.
MITRE ATLAS ATLAS helps map abuse of AI systems that generate or transform code.

Set explicit AppSec ownership, risk thresholds, and outcome metrics for AI-accelerated delivery.