MCP Governance · 847 attack scenarios · 23–41% amplification
MCP moves fast. Its security hasn't kept up.
The Model Context Protocol is becoming the standard for connecting AI agents to tools. Its specification defines optional OAuth 2.1 authorization for HTTP servers, which controls whether a client may call a server and with which scopes. It does not decide whether a specific tool call fits your organization’s policy, and it does not define an audit record. Behavry adds that per-call decision, and signed evidence of it, on the paths you route through it.
847 attack scenarios tested (arXiv research)/23–41% MCP amplifies attack success rates/6 OWASP vulnerability categories/12 MCP clients with one-click enrollment
Six vulnerability categories. All architectural.
The OWASP GenAI Security Project identified six categories of MCP vulnerabilities. They cannot be fixed at the implementation layer alone. Protocol-layer enforcement is required.
An MCP server modifies its tool definitions after initial connection to inject hidden behaviors. The agent trusts the schema from the first handshake. The server changes it later. No client-side validation catches this.
An MCP server behaves legitimately during testing and evaluation, then changes behavior in production. The tool description says “read file,” but the server now exfiltrates the contents. No schema enforcement prevents this.
MCP server responses contain executable payloads that the agent processes as instructions. The boundary between “data returned by a tool” and “instructions for the agent” is undefined in the protocol.
The specification forbids token passthrough: a server must accept only tokens issued for it, and must not forward them upstream. But many servers, local STDIO servers especially, still run on long-lived credentials taken from the environment, and a compromised server can capture whatever it holds. The protection is only as strong as each implementation.
Protocol authorization scopes a token to one server, using scopes that server defines. Because it is optional, many deployments run without it. Even where it is used, it does not say which arguments, targets or environments a particular tool call may touch, so least privilege at the level of the call has to be enforced elsewhere.
Multiple MCP servers share the agent's context and credentials. A compromised server can influence the agent's behavior with other servers. No trust boundary between tools connected to the same agent.
Your MCP gateway secures the connection. Behavry governs the action.
MCP gateways and Behavry operate at different layers. They're complementary, not competitive.
Connection-level security. MCP gateways handle protocol routing, connection management, TLS termination, and basic rate limiting. They ensure the connection between the agent and the server is secure and properly routed. Some also apply identity-aware or per-tool rules; check what yours evaluates before execution, whether it can hold an action for a person, and what evidence it keeps.
Action-level enforcement. Behavry operates above the transport. Every tool call is authenticated to a specific agent identity, scanned for sensitive data, evaluated against OPA policies, and immutably logged. The Decision Trace links intent to action to outcome as a causal chain. Behavry works alongside your existing MCP gateway, or directly with MCP servers.
MCP security checklist for production tool calls#
Protocol authorization and organizational policy answer different questions. You need both before an agent's tool calls reach production.
Authorization is optional in MCP. Where an HTTP-based server supports it, the server acts as an OAuth 2.1 resource server. The client requests a token for that specific server using a resource indicator. The server must reject tokens issued for anyone else, must not pass them through to upstream APIs, and can answer a missing scope with a 403 that names the scope it needs. STDIO servers take credentials from the environment instead. This layer answers one question: may this client, acting for this user, call this server with these scopes?
A token scoped to a server does not say which repository, path or tenant a particular call may touch, whether the target is production, or whether a person must approve first. Those questions depend on the arguments of each call and on rules your organization sets. On tool calls routed through a supported, configured Behavry path, policy evaluates the agent, the tool, the target and the environment after protocol authorization has succeeded. It then allows, holds or denies the call, and records the decision as a Decision Trace.
One repository workflow, three outcomes
Illustrative example. An engineering agent, eng-pr-agent, holds a GitHub MCP token with repository scope. Its grant lets it read issues and open draft pull requests in acme/demo-app. A ready-for-review pull request needs the repository's named maintainer to approve. Every other repository is outside the grant. The same token is valid for all three requests below, so protocol authorization passes each one. Policy is what tells them apart.
| Request | Protocol authorization | Organizational policy |
|---|---|---|
create_pull_request on acme/demo-app, draft: true | Token valid for the server | ALLOW · Within the grant. The call proceeds and the decision is recorded. |
create_pull_request on acme/demo-app, draft: false | Token valid for the server | HOLD · Ready-for-review needs the named maintainer. The call does not reach GitHub until that person approves; if they decline, it never does. |
create_pull_request on acme/payments-service | Token valid for the server | DENY · Outside the approved repository. The call is refused before it reaches the server, and the agent receives a structured refusal. |
Check these five before production
- Agent identity. Can you name the specific agent behind each call, and its accountable owner, rather than only the shared OAuth client or service account the server sees?
- Target resource. Does policy evaluate the target in the call's arguments (the repository, path or tenant), not just the tool name or the token's scope?
- Environment. Are test and production separate grants, so a call permitted in a sandbox is evaluated again before it reaches production?
- Approval. When an action is held, does the approver see the exact operation and target? Does a changed target or revision require a fresh decision, and does a decline stop the call?
- Evidence. Is every allow, hold and deny recorded with the policy that decided it, and can someone outside the platform verify that record? See how to verify one.
Behavry evaluates and records tool calls that pass through a supported, configured path: the MCP proxy, an API proxy or the desktop proxy. Calls that bypass those paths are neither evaluated nor recorded. To test a vendor against this list on your own workflow, use the buyer’s guide How to Evaluate an AI Agent Governance Platform: Five Tests to Run Before You Buy.
How Behavry maps to the OWASP MCP recommendations.
The OWASP GenAI Security Project published guidelines for secure MCP deployment. Here's how Behavry addresses each recommendation below; the mapping describes our controls, not an OWASP certification.
| OWASP recommendation | Behavry implementation |
|---|---|
| Treat agents as first-class identities with unique credentials and scoped permissions | Agent Identity Service: per-agent JWT RS256 credentials, short-lived tokens, no shared API keys |
| Centralize policy enforcement through a dedicated gateway layer | Inline MCP proxy with OPA Rego policy evaluation on every tool call before execution |
| Implement token delegation over credential passthrough (RFC 8693) | Short-lived scoped tokens per agent per resource; vault-based secret management; delegation token chains for multi-agent workflows |
| Maintain comprehensive audit logs for all tool invocations | Immutable TimescaleDB audit trail with SHA-256 hash chaining; Decision Trace as causal chain-of-custody artifact |
| Validate tool schemas and detect tool poisoning | Tool allowlists in OPA policy; cryptographic signing; schema validation at policy layer |
| Enforce least privilege and per-tool RBAC | Per-agent, per-scenario Rego policies; blast radius limits; risk-adaptive permission tiers driven by BRF score |
Research sources
- OWASP GenAI Security Project · A Practical Guide for Secure MCP Server Development (Feb 2026)
- arXiv:2601.17549 · Breaking the Protocol: Security Analysis of the MCP Specification · 847 attack scenarios, 23-41% amplification (Jan 2026)
- arXiv:2506.23260 · From Prompt Injections to Protocol Exploits · 30+ attack techniques, Toxic Agent Flow on GitHub MCP (Dec 2025)
- Astrix Security · State of MCP Server Security 2025 (Oct 2025)
12 MCP clients, one click. Any other, one config line.
Twelve clients ship a guided enrollment flow with a ready-to-paste config. Any other MCP client speaking Streamable HTTP, SSE or stdio — JetBrains IDEs, Cline and Continue among them — is governed by the same proxy. Agents point their MCP configuration at Behavry. No client-side changes required.
Claude Code/Claude Desktop/Cursor/VS Code/Windsurf/Warp/Zed/Antigravity/Kiro/Codex CLI/OpenAI/Open Interpreter
Plus 18 further AI surfaces via the browser extension and API proxies — 12 browser services and 6 model APIs — including ChatGPT, Gemini, Ollama, and custom agent frameworks. See the full integration map →
MCP governance. What architects ask.
Does Behavry modify MCP messages?
Behavry is a transparent proxy. For allowed actions, messages pass through unmodified. For blocked actions, the proxy returns an error response to the agent. The tool call never reaches the target server. For DLP-flagged content, the proxy can redact sensitive data before forwarding. The agent and server see standard MCP protocol behavior in all cases.
What about latency?
OPA policy evaluation happens in microseconds and DLP pattern matching is sub-millisecond; total added latency is typically 5–30ms per tool call, most of it the network hop. For context, a typical LLM inference call takes 500ms-5s. The governance layer is small relative to the agent's own processing time.
Can agent traffic stay inside our network?
Yes. Behavry supports four deployment models: SaaS (hosted, fastest start), Hybrid (control plane SaaS, data plane on-prem), BYOC (Bring Your Own Cloud, full stack in your cloud account), and Self-Hosted (air-gapped, no external dependencies). Every deployment model provides identical governance capabilities.
Does this work with custom MCP servers?
Yes. Behavry's proxy works with any MCP server that implements the Streamable HTTP or stdio transport. No server-side changes required. The proxy authenticates the agent, evaluates policy on the tool call, and forwards to whatever target server is configured, whether it's a standard open-source MCP server or your custom internal tooling.
Doesn’t MCP already include authorization?
Yes, as an option. The MCP specification defines OAuth 2.1 authorization for HTTP-based servers: a client requests a token for one server, and the server rejects tokens issued for anyone else and must not pass them upstream. STDIO servers take credentials from the environment instead. That controls whether a client may call a server and with which scopes. It does not decide whether a particular tool call, with its target, arguments and environment, fits your organization’s policy, or whether a person must approve it first. Behavry evaluates that per call on supported, configured paths, after protocol authorization succeeds, and records each decision. See the production checklist.
Identity. Policy. Data protection. Audit trail. On every governed tool call, before execution, alongside the authorization the protocol defines.
- ARCHITECTURE
One vantage point in the path of the action, across supported agent surfaces.
- CLAUDE CODE
Authorizing autonomous coding agents per action, including YOLO mode.
- INTEGRATIONS
Where Behavry sits alongside the systems you already run.
MCP is the protocol. Behavry is the governance.
BOOK A DEMO →MSP or MSSP? Discuss an engagement →