Subscribe to the Non-Human & AI Identity Journal

Should organisations prioritise secure coding controls before expanding AI developer tools?

Yes, if the current delivery process cannot verify code security at the same pace it can generate code. Organisations should strengthen scanning, secret detection, and release gating first, especially in identity-sensitive applications. Otherwise, AI tools simply amplify the volume of vulnerable code entering production.

Why This Matters for Security Teams

AI developer tools can accelerate feature delivery, but they also compress the time available for review, testing, and remediation. For security teams, the real issue is not whether code is generated by a person or an agent. It is whether the organisation can still verify integrity, detect secrets, and stop risky changes before they reach production. The NIST Cybersecurity Framework 2.0 is useful here because it frames secure development as an ongoing governance and protection problem, not a one-time engineering task.

The most common mistake is to treat AI coding assistants as a productivity upgrade that can be layered onto an immature SDLC. In practice, that usually means more pull requests, more copied patterns, more hidden dependencies, and more secrets drifting into repositories or build logs. Identity-sensitive applications raise the stakes further because weak code paths often become privilege escalation paths, session compromise points, or token exposure points. Security leaders should therefore prioritise controls that reduce blast radius before scaling the toolchain. In practice, many security teams encounter AI-assisted code risk only after a secret leak, dependency issue, or release failure has already occurred, rather than through intentional control design.

How It Works in Practice

A practical sequence starts with baseline engineering controls, then expands AI tooling only where those controls are consistently enforced. Static analysis, dependency scanning, secret scanning, and policy-based release gating should be built into the default pipeline so that every change is checked regardless of whether it was hand-written or AI-assisted. This is consistent with the secure development emphasis in the NIST Secure Software Development Framework, which places weight on repeatable secure engineering practices rather than ad hoc reviews.

  • Use pre-commit and CI checks to catch secrets, hard-coded credentials, and unsafe patterns early.
  • Require code review for security-sensitive changes, especially auth, access control, and data handling logic.
  • Gate merges and releases on policy outcomes, not just test pass rates.
  • Track provenance for prompts, generated snippets, and library suggestions when AI tools influence production code.

For organisations using AI assistants in dev workflows, governance should extend to how those tools are configured, what data they can see, and whether generated output is validated before use. That matters because LLMs can produce plausible but insecure code, outdated API usage, or incorrect security assumptions. When the application handles identities, tokens, certificates, or privileged workflows, the review bar should be higher still. Teams should also align with known guidance on secure AI usage from the OWASP Top 10 for Large Language Model Applications, especially where prompt injection, unsafe output handling, or tool misuse can influence developer decisions. These controls tend to break down in fast-moving platform teams that bypass review gates to keep up with release pressure.

Common Variations and Edge Cases

Tighter secure coding controls often increase delivery friction, requiring organisations to balance release speed against assurance. That tradeoff is real, especially where engineering teams already operate with limited security staffing or high incident response load. The right answer is not to block AI tools outright, but to ensure the control stack is mature enough that tool adoption does not outpace detection and enforcement.

There is no universal standard for exactly when an organisation is “ready” for broader AI developer adoption. Current guidance suggests prioritising foundational controls first in regulated environments, critical infrastructure, and identity-heavy systems, then expanding AI usage once defect detection and release governance are reliable. In less sensitive environments, teams may pilot AI tools earlier, but only with scoped repositories, strong branch protections, and clear human ownership for code quality and security outcomes. For code that touches authentication, authorization, secrets, or non-human identity credentials, the bar should be stricter because a small defect can create disproportionate access risk.

Where AI tools are connected to internal codebases, issue trackers, or build systems, the organisation should also consider whether the tool itself has become a privileged pathway into software assets. That is an identity and access problem as much as a software problem, and it should be governed accordingly.

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, NIST AI RMF and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
NIST CSF 2.0 PR.IP-1 Secure development practices need to be embedded before scaling AI coding tools.
OWASP Agentic AI Top 10 AI tooling can introduce unsafe output, tool misuse, and prompt-driven coding errors.
NIST AI RMF GOVERN AI governance is needed to manage risk from code generation and tool-assisted development.
MITRE ATLAS Adversarial prompting and manipulation can influence AI-assisted development workflows.
NIST SP 800-53 Rev 5 SA-11 Security testing and verification are central to preventing vulnerable code from shipping.

Require security testing as part of development gates before AI-generated code reaches production.