Without governance, teams lose visibility into which agents are using which tools, whether shadow IT is present, and what actions were taken. That creates audit gaps, weakens policy enforcement, and makes it harder to prove control over sensitive systems. The practical failure is unmanaged access, not just reduced convenience.
Why This Matters for Security Teams
Coding agents are not just another service account. When they can discover tools, call MCP servers, and chain actions autonomously, the control problem shifts from static access review to runtime governance. Without consistent policy and audit controls, security teams lose attribution, cannot prove who or what executed a sensitive action, and miss shadow integrations that bypass approval. That undermines incident response, compliance evidence, and containment.
This is already reflected in current research. NHIMG’s AI Agents: The New Attack Surface report found that only 52% of companies can track and audit the data their AI agents access, leaving a large blind spot for investigation and oversight. The risk is even sharper when agents can reach MCP tooling without scoping discipline, as shown in The State of MCP Server Security 2025. In practice, many security teams encounter abuse only after an agent has already touched production data or invoked a tool it was never supposed to see.
How It Works in Practice
The failure starts with inconsistent identity and policy boundaries. A coding agent may authenticate successfully, then inherit broad tool access because the environment treats it like a trusted workload rather than a dynamic actor. That works until the agent begins discovering adjacent capabilities, reusing tokens, or invoking MCP endpoints that were never intended for that workflow. The right model is closer to workload identity plus runtime authorization than to a traditional user permission set.
Practitioners usually need four controls working together:
- Workload identity for the agent, so the system can prove what is making the request, not just which secret it possesses.
- Just-in-time credentials with short TTLs, so access exists only for the task and is revoked automatically afterward.
- Policy-as-code at request time, so authorization can consider tool, context, environment, and risk signals.
- Complete audit logging across the agent, the MCP server, and downstream systems, so action history can be reconstructed end to end.
That approach aligns with the direction of the OWASP Agentic AI Top 10 and the CSA MAESTRO agentic AI threat modeling framework, both of which emphasize runtime control over assumptions based on role. NHIMG’s Analysis of Claude Code Security also highlights why code assistants need tighter oversight when they can interact with repositories, terminals, and external services in one workflow. These controls tend to break down when MCP servers are deployed as local convenience services with no central inventory, because tooling sprawl outpaces governance.
Common Variations and Edge Cases
Tighter governance often increases friction for developers, requiring organisations to balance agent speed against review depth and logging overhead. That tradeoff is real, but current guidance suggests it is better to absorb the overhead than to allow unmanaged tool reach.
One common edge case is internal experimentation. Teams often grant broad access “just for testing,” then forget to remove it when the agent prototype moves into production. Another is delegated tool chaining, where one agent calls another, making audit trails harder unless identities are preserved across hops. There is no universal standard for this yet, but best practice is evolving toward explicit delegation records and per-step authorization.
Another failure mode appears in hybrid environments where MCP servers, Git operations, CI/CD systems, and ticketing tools each maintain separate logs. Without correlated audit IDs, proving control becomes difficult even when each individual system is technically logging. NHIMG’s Ultimate Guide to NHIs — Regulatory and Audit Perspectives is useful here because it frames evidence collection as an operational control, not a paperwork exercise. For agentic systems, the hard part is not whether a log exists, but whether it can explain a tool call after the fact.
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, CSA MAESTRO and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST AI RMF and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Agentic AI Top 10 | A3 | Tool reach without governance maps to agent abuse and unsafe action paths. |
| CSA MAESTRO | TRM-02 | MAESTRO covers threat modeling for agent tool use and control boundaries. |
| NIST AI RMF | AI RMF governance applies to accountability, traceability, and oversight gaps. | |
| NIST CSF 2.0 | PR.AC-4 | Access control and least privilege are central to preventing unmanaged tool access. |
| OWASP Non-Human Identity Top 10 | NHI-03 | MCP servers and agents fail when secrets and access scopes are not governed. |
Limit agent tool permissions to explicit, runtime-approved actions with logging.
Related resources from NHI Mgmt Group
- What breaks when AI agents can chain tools through MCP without tight policy controls?
- What breaks when IAM controls are applied to autonomous agents without runtime governance?
- What breaks when MCP servers run locally without governance?
- What breaks when MCP tools can reach system commands without strong validation?