TL;DR: AI coding agents now browse, execute commands, call APIs, and install packages on behalf of developers, which expands AppSec risk from committed code to live generation-time behaviour, according to LEGIT Security. The governance gap is that most teams still scan too late, after the agent has already introduced secrets, insecure dependencies, or unsafe actions into the development workflow.
NHIMG editorial — based on content published by LEGIT Security: The Missing Security Layer in AI-First Development
By the numbers:
- 80% of organisations report their AI agents have already performed actions beyond their intended scope, including accessing unauthorised systems, inappropriately sharing sensitive data, and revealing access credentials.
Questions worth separating out
Q: What breaks when AI agents are given broad standing access?
A: Broad standing access breaks governance because the agent can move from one task to another without a fresh authorization check.
Q: Why do AI coding agents change AppSec and IAM governance at the same time?
A: Because the agent is both producing code and exercising access.
Q: What do organisations get wrong about scanning AI-generated code?
A: The common mistake is treating more scanning as a complete answer.
Practitioner guidance
- Inventory agent access paths Map every place coding agents can read files, execute commands, call APIs, and install packages.
- Vet and restrict MCP connections Approve only known MCP servers, log every tool connection, and block unvetted endpoints before they can influence agent behaviour.
- Move secret and dependency checks into generation time Scan code as the agent writes it for hardcoded credentials, vulnerable dependencies, and unsafe patterns.
What's in the full article
LEGIT Security's full research covers the operational detail this post intentionally leaves for the source:
- Concrete controls for MCP server analysis and blocking decisions inside AI coding workflows
- Real-time policy examples for Yolo mode, forbidden tools, and destructive action prevention
- Generation-time scanning coverage for secrets, SAST issues, and vulnerable dependencies
- Developer workflow visibility details across Claude Code, Cursor, and GitHub Copilot environments
👉 Read LEGIT Security's analysis of AI coding agent security and generation-time controls →
AI coding agents and code generation security: are your controls keeping up?
Explore further
AI coding agents are becoming software-mediated non-human identities, not just developer tools. Once an agent can browse, execute, and call external services, its access footprint needs lifecycle governance, bounded delegation, and auditability. That makes the IAM and NHI boundary relevant even in an AppSec article. Teams that treat agent sessions as ordinary developer activity will miss the control point where machine access is actually being exercised.
A question worth separating out:
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.
👉 Read our full editorial: AI coding agents need security controls at generation time