Join our Newsletter — 33% off our NHI Course

What do teams get wrong about MCP gateways and agent governance?

They assume a gateway covers the whole factory. In reality, it only governs participating traffic, while direct APIs, browsers, shells, CI systems, and downstream services still need their own controls. Good governance starts by proving which paths are mediated and which are not.

Why This Matters for Security Teams

MCP gateways are useful control points, but they are not a full governance boundary. Teams often mistake “gateway present” for “risk contained,” then miss the fact that agents can still reach direct APIs, browsers, shells, CI jobs, and downstream services outside the mediated path. That gap matters because agent behaviour is dynamic: tool use, prompts, and execution order can change per task, which makes static allowlists and perimeter assumptions unreliable.

This is why current guidance increasingly treats agent governance as a path-mapping problem, not just a proxy problem. NIST’s NIST AI Risk Management Framework pushes teams toward measurable risk ownership, while NHIMG’s OWASP Agentic Applications Top 10 highlights how tool abuse and indirect execution paths defeat narrow control assumptions. The operational mistake is assuming one mediating layer can compensate for the rest of the stack.

In practice, many security teams encounter unauthorized agent reach only after a tool chain has already crossed from the gateway into an unmanaged API or shell.

How It Works in Practice

A gateway should be treated as one enforcement point in a larger trust design. It can broker approved MCP tool traffic, inspect requests, log use, and apply policy, but it cannot govern what it never sees. Effective programs first inventory every execution path an agent can use, then classify which paths are mediated, which are direct, and which are conditionally available during runtime.

That is where workload identity and runtime policy matter. Instead of relying on static roles alone, teams are moving toward identity primitives that prove what the agent is and what task it is attempting. In mature designs, the agent gets short-lived credentials, scoped to a specific action, with automatic revocation after completion. Policies are evaluated at request time using context such as tool, target system, data sensitivity, time, and workflow state. This aligns with standards thinking in NIST Cybersecurity Framework 2.0 and implementation patterns discussed in CSA MAESTRO agentic AI threat modelling framework.

For MCP-specific risk, NHIMG’s The State of MCP Server Security 2025 is hard to ignore: only 18% of deployments implement any form of access scoping for tool permissions, and 53% expose credentials through hard-coded values. Those numbers show why gateway-only thinking fails. If the gateway is not paired with secret hygiene, workload identity, and downstream enforcement, the agent can still pivot into unmediated systems and reuse exposed credentials.

Operationally, the right question is not “Is there a gateway?” but “Which actions are provably mediated end to end?” These controls tend to break down in hybrid environments where agents can call browser automation, local shells, or CI runners because those execution paths often bypass the MCP enforcement layer entirely.

Common Variations and Edge Cases

Tighter gateway controls often increase workflow friction, so organisations have to balance containment against developer and operator speed. That tradeoff becomes visible when teams try to enforce everything through one proxy and discover that legitimate tasks need direct access for testing, deployment, or incident response.

There is no universal standard for this yet, but best practice is evolving toward layered governance. A gateway may mediate tool calls, while browsers, shells, and CI systems require their own policies, telemetry, and revocation logic. This is also where the distinction between agent types matters: a supervised assistant may fit a narrower gateway model, while an autonomous agent with execution authority needs much stronger runtime guardrails. NHIMG’s CoPhish OAuth Token Theft via Copilot Studio and Amazon Q AI Coding Agent Compromised both illustrate how agentic compromise can emerge outside the narrow assumptions of a single control plane.

For governance teams, the practical edge case is not “agent versus non-agent” but whether the task path includes unmanaged execution, persistent credentials, or downstream systems that trust the gateway too much. When those conditions exist, the gateway becomes useful telemetry, not sufficient control.

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 A2 Covers tool abuse and indirect execution paths that gateways miss.
CSA MAESTRO Focuses on threat modeling agent workflows and their control boundaries.
NIST AI RMF GOVERN Supports governance, accountability, and risk ownership for autonomous agents.
NIST CSF 2.0 PR.AC-4 Least-privilege access must extend beyond the gateway to downstream systems.
OWASP Non-Human Identity Top 10 NHI-03 Short-lived, scoped secrets are critical when gateways do not cover all traffic.

Assign ownership for every agent path and review controls at runtime, not just design time.