An offboarded contractor’s CI job still holds a service account token that can reach an internal MCP gateway, creating a data exfiltration risk. The job runs nightly, pulls logs, and streams them to an external bucket. Because the token was never revoked, the contractor can silently copy proprietary data without ever touching a server directly. The same pattern repeats when a mis‑configured AI assistant is given a broad API key and uses the gateway to query a database, returning rows that contain customer PII.
In this unsanitized state the organization relies on identity providers to issue tokens and on the gateway to forward traffic. Tokens are scoped to the service, not the individual request, and the gateway merely proxies the wire‑level protocol. No audit trail is kept, no fields are masked, and there is no point at which a human can approve a suspicious query. The result is a blind spot where data exfiltration can happen unnoticed.
Why data exfiltration is a realistic threat in an MCP gateway
The MCP gateway sits at layer 7, interpreting the protocol of the underlying service (SQL, HTTP, gRPC, etc.). Because it is a pass‑through component, any client that can authenticate to the gateway can issue arbitrary commands. If the authentication layer only verifies that a token is valid, the gateway will forward the request unchanged. This means that a compromised service account, an over‑scoped token, or an AI agent with unrestricted access can retrieve entire tables, logs, or code repositories and ship them out of the network.
Two aspects make the risk especially acute:
- Static credentials. When a credential is stored on the gateway or in a CI job, revoking it requires a manual update. Until that happens, the credential can be reused indefinitely.
- Lack of inline inspection. The gateway does not alter responses. Sensitive fields such as credit‑card numbers, social‑security numbers, or proprietary source code pass through unchanged, giving an attacker the raw data they need.
What the existing identity setup fixes – and what it leaves open
Modern deployments typically use OIDC or SAML providers to issue short‑lived tokens. This setup answers the question “who is making the request?” and can enforce that only certain groups may obtain a token for the MCP gateway. However, the token alone does not dictate what the request can do once it reaches the target service. The request still travels directly to the backend, bypassing any policy enforcement point. Consequently, while the organization can prove that a request originated from an authorized identity, it cannot prove that the request was legitimate, nor can it stop the request from leaking data.
How hoop.dev places enforcement in the data path
hoop.dev acts as an identity‑aware proxy that sits directly in the data path of every MCP request. By inserting itself between the client and the backend, hoop.dev becomes the sole location where policy can be applied. It performs three critical enforcement actions:
