Est.

Enforcement Controls CSOs Must Demand Before Agents Reach MCP Server Connections

CSOs need gateway-level, tool-by-tool controls because MCP won't enforce security itself.

· 9 min read · Updated
Cover illustration for “Enforcement Controls CSOs Must Demand Before Agents Reach MCP Server Connections”
Threat Intelligence · November 1, 2026 · 9 min read · 2,033 words

An MCP gateway is a governed intermediary between AI agents and Model Context Protocol servers, providing a central point for controlling tool access and inspecting calls. Its architecture places agents before the gateway, MCP servers behind it, and downstream systems beyond those servers. CSOs must require that enforcement layer before they grant access because MCP compliance alone leaves them without default protection.

Why the MCP spec's deliberate security silence creates a governance vacuum CSOs must fill

The MCP specification states that it “does not enforce security at the protocol level.” Authentication, authorization, isolation, and logging belong to the platform that implements it. This is a design choice. A carefully configured server can contribute to security, but protocol compliance cannot establish that an entire deployment is governed.

The CSA Agentic MCP Security Best Practices Guide identifies three trust boundaries, separating the LLM from the client, the client from servers, and servers from downstream systems. An attack at one boundary can cascade through the pipeline. The July 2026 authorization revision tightened requirements and formally deprecated Dynamic Client Registration in favor of Client ID Metadata Documents. Those changes make older guidance unreliable on several details, but they do not transfer enforcement responsibility away from the platform.

What the threat landscape looks like when that vacuum goes unfilled

By early 2026, security researchers had catalogued nearly 7,000 internet-exposed MCP servers, roughly half without authentication controls. The consequences already extend beyond exposed infrastructure. Asana experienced cross-tenant data exposure, the GitHub MCP server faced prompt injection attacks, and Anthropic’s MCP Inspector developer tool allowed unauthenticated remote code execution. CVE-2025-53773 showed how hidden instructions in source files, comments, or GitHub issues could enable remote code execution with GitHub Copilot.

Other incidents show the reach of authorized agents. EchoLeak in Microsoft 365 Copilot used zero-click prompt injection to access and exfiltrate enterprise data. The Supabase Cursor agent incident in July 2025 involved a privileged agent tricked through support tickets into leaking integration tokens. The NSA’s May 2026 advisory flagged that authorization and credential isolation were not yet standardized at the protocol level.

Novee Security demonstrated at Black Hat 2026 that opening a GitHub issue was sufficient to reach CI workflow secrets in Anthropic’s, Google’s, and OpenAI’s own coding-agent repositories. Sophisticated engineering was not an automatic protective boundary.

The six attack surfaces CSOs must account for before granting any agent access

Authentication and token architecture govern whether credentials belong to the caller and the intended server. The baseline includes OAuth 2.1 with PKCE (S256), resource indicators, and token audience and issuer validation. Token passthrough lets a server accept tokens that were not issued for it, which opens the way to confused deputy attacks. The July 2026 revision explicitly forbids it, but adoption is uneven.

Tool poisoning and the rug-pull variant exploit server-provided names, descriptions, and parameter schemas. Agents use that metadata to choose their actions. A malicious server can hide instructions inside it, or pass approval with benign descriptions and change them afterward. Approval then survives the behavior it was meant to approve.

Prompt injection through tool results targets returned content. Instructions embedded in a ticket, document, or web page enter the model’s context as retrieved information. The attacker needs access only to the queried data source. Server ownership is unnecessary.

Credential and secrets aggregation makes each server a concentrated target. OAuth tokens and service credentials can connect one compromised process to several integrated services. Hard-coded credentials deepen that exposure by putting secrets inside server code.

Supply chain compromise begins before a tool is called. Packages drawn from npm, PyPI, and Docker Hub need provenance verification and dependency scrutiny. A trusted connection to an untrusted package remains an untrusted system.

Over-privileged agent access and data-layer exposure persist even when authentication succeeds. Protocol authorization does not establish fine-grained data permissions downstream. Dynamic tool discovery adds another complication because agents can discover tools that security teams did not anticipate when approving the server.

Why an MCP gateway must come before other enterprise controls

A centralized gateway makes policy enforceable across multiple MCP servers without modifying each agent or server. Without it, each connection needs its own way to enforce every policy decision. That arrangement multiplies configuration work and frustrates uniform auditing. Individual server configuration is not a substitute for a common checkpoint.

An AI agent control plane functioning as a gateway combines tool access governance, model traffic control, human-in-the-loop approvals, runtime session observability, and an audit trail. Its enforcement point is every tool invocation. For enterprise workflows, the architectural benefit is a governed intermediary rather than a collection of separately trusted connections.

GitHub’s allowlist feature illustrates both the value and the limit of controlling reachable servers. Its allowlist controls access at the server level only. A gateway must therefore do more than decide which destination is acceptable. It must govern what an agent may do after reaching that destination.

Tool-level RBAC, not server-level access control, as the required granularity

A single server may expose read-only queries, write operations, internal data retrieval, and external API calls. Those actions do not share a risk profile. For example, a code-review agent may need repository tools but have no reason to reach customer-data tools on the same server. Granting the server as one permission bundle erases that distinction.

The required policy is tool-level RBAC with deny-by-default access. New tools must remain disabled until an authorized administrator approves them, rather than becoming available automatically through dynamic discovery. Changed metadata must also be treated as untrusted input, since an unchanged server address does not establish unchanged behavior. A familiar address is not a character reference.

Authorization must also survive the journey downstream. An OAuth grant allowing access to a tool does not automatically constrain what that tool can do on the agent’s behalf. Per-tool scope enforcement must stay in place through the whole invocation chain, including the data layer.

Agent identity as a distinct directory object, not a repurposed service account

Agent access needs its own directory object, minimum permissions at creation, and an audit identity distinct from human activity. Repurposed accounts blur all three. Enterprise identity integration must also make revocation an explicit, tested capability rather than an assumption about what disabling an account means.

Microsoft Entra Agent ID reached general availability in April 2026, extending Conditional Access, Identity Protection, and Identity Governance to agent identities. Its specialized service principal has no standing credentials and acquires short-lived tokens through its blueprint after relevant consent. It supports OAuth 2.0, MCP, and A2A, with third-party onboarding through a sidecar SDK or workload identity federation. However, disabling an identity does not necessarily terminate every session or invalidate previously issued tokens. A connected application may honor them until expiry.

Okta’s Agent SSO became generally available on August 24, 2026. Its Cross App Access protocol underlies MCP’s Enterprise-Managed Authorization extension. Okta’s Oktane 2026 announcements added Agent Gateway and referenced the completed Permiso acquisition, announced July 30, 2026, in extending toward runtime behavioral monitoring. CSOs should require EMA support in gateways alongside standard OAuth flows and verify session termination across connected applications.

Execution isolation as the control that limits blast radius when other controls fail

Authentication and authorization control who gets in, while isolation limits the damage when those entry controls fail. An authorized server can still be compromised. Without isolation, that server can get into the host filesystem, reach resources on the internal network, and escalate privileges. A malicious dependency can run inside the same process even when the credentials are legitimate.

Each MCP server must therefore run in its own container with no access to the host filesystem. Network access must follow an explicit allowlist, and filesystem permissions must come from configurable policy. These are required production defaults. Isolation makes recovery plausible by bounding a compromised server’s reach instead of allowing its failure to spread across integrated services.

Supply chain validation and the curated internal registry requirement

Runtime controls assume the deployed server is what it claims to be. Supply chain validation checks whether that is true before the server is deployed. MCP packages from npm, PyPI, and Docker Hub require the same scrutiny as other third-party dependencies, including signed artifacts and verifiable provenance attestation.

A curated internal registry gives administrators control over which servers developers can discover and deploy. Every deployment also needs a Software Bill of Materials and dependency scanning for known malicious packages. Scanning must continue after approval because subsequent updates can introduce compromise. Approval belongs to the reviewed software.

This model also needs a usable developer portal integrated with the approved catalog. Otherwise, developers can reasonably fear that governance means waiting for access to everything. The design should put the checks that take time in the approval workflow and keep approved servers easy to access.

Real-time threat detection for prompt injection and secrets leakage built into the gateway layer

Prompt injection exploits meaning. A valid caller can submit an authorized request and receive content that redirects the model. Static permissions cannot resolve that problem alone. Detection must inspect descriptions and returned content before injected instructions become part of the model’s working context.

The validation pipeline must start with pattern-based filtering to check for known command and prompt injection signatures. Neural identification then checks for semantic attacks in tool descriptions, and selective LLM-based arbitration deals with cases where the result is uncertain. Applying full LLM evaluation to every call is not operationally viable at enterprise scale. Layered inspection provides a way to reserve that work for ambiguity without treating simple pattern matching as sufficient.

Secrets and PII need separate content controls. Credentials, API keys, and tokens must be caught before they pass to tools as tool parameters, and PII blocking must check traffic going both ways. Trace logs also need protection against sensitive-data leakage. Detection acts on content in transit. Logging records the event. A gateway that only records calls supplies evidence after an incident.

Full audit logging and behavioral observability as enforcement prerequisites, not operational nice-to-haves

Every tool invocation needs a structured record of the requesting user or agent, the tool and server, the parameters, the result, and any detection controls that fired. Logs must feed existing SIEM, SOAR, or observability platforms so the SOC can use them in incident response. A separate MCP log store is not enough if it sits outside those workflows.

CISA’s joint guidance on May 22, 2025 stressed that data security is essential if AI systems are to be trusted. Auditability therefore belongs in the security and compliance gate. Cost and usage telemetry serve a separate purpose by exposing uncontrolled consumption. They also provide behavioral signals because unusual call volumes or unexpected tool combinations can reveal compromise before an individual call triggers detection.

Visibility must extend beyond approved deployments. Observability at the network and identity layers can reveal shadow AI that would otherwise escape the controls described here. Since the specification leaves enforcement to the platform, logs are how the organization establishes whether that platform is actually enforcing policy.

Translating the control requirements into a CSO demand list before any agent reaches production

The production gate should begin with architecture and authentication. Every agent-to-server connection must pass through the governed gateway, with no direct bypass. The gateway must support OAuth 2.1 with PKCE (S256), resource indicators, audience and issuer validation, and EMA. Token passthrough must be prohibited.

The next gate is authority and containment. Every agent needs an enterprise identity built for it, with minimum permissions and tests to check that session termination works. Tool-level RBAC must deny access by default, hold new tools for review, and preserve scope downstream. Each server must also have container isolation by default, rules for network access, and a clear policy for the filesystem.

Approved servers must come from a curated registry with provenance attestation, SBOM generation, continuous dependency scanning, and a developer portal. The gateway must provide layered injection detection, secrets interception, and bidirectional PII inspection. Structured logs must feed the security workflows already in use, along with cost telemetry, behavioral monitoring, and shadow AI discovery.

These requirements form a defense-in-depth stack. Used together as a vendor evaluation framework and internal release gate, they replace repeated discretionary review with defined conditions for access. The goal is the organizational ability to grant access quickly without granting trust blindly.

Sources

  1. Agentic MCP Security Best Practices Guide
  2. Model Context Protocol (MCP) Security: Complete Guide
  3. The state of MCP security in 2026

More in Threat Intelligence