Real-Time Risk Scoring and Blocking for Third-Party MCP Servers
Enterprises need runtime controls to catch server behavior changes static vetting cannot detect.

Static vetting establishes a baseline, while real-time scoring evaluates the server, tool, arguments, and result of each live call. Blocking must act before an unapproved action executes, with continuous monitoring to catch changes after approval. Together, these controls make MCP access something an enterprise can govern, rather than a trust decision it makes once.
Why the MCP protocol creates a threat surface that static vetting cannot close
MCP was designed for speed of integration. Anthropic released the protocol in November 2024 without standardized authentication or a permission model. Its core set the rules for transport and message format, while the surrounding ecosystem had to handle authentication, response integrity, and audit trails. Each connection therefore crosses a trust boundary without the protocol itself guaranteeing how that boundary is guarded.
The server controls more than the tools it runs. It also supplies tool descriptions that the agent treats as instructions and responses that the agent acts upon. That makes a description part of the attack surface. Approval of a server at installation says little about whether its later instructions or responses remain within the approved scope.
The 2026-07-28 specification revision adds authorization hardening and a stateless protocol core. But servers built on older versions still need checks, and the specification still does not require a permission model. Runtime controls complement those improvements by checking what a particular connection permits and what its tools actually do.
The attack classes that emerge from that design — and why they are only visible at runtime
Pillar Security found a live campaign in August 2026 involving a server named “productivity-suite” that spread through public GitHub pull requests. After initially behaving harmlessly, it instructed the agent to collect SSH keys, AWS credentials, shell history, and Kubernetes configuration, and to hide that activity from the user. The switch came after trust was established. An installation allowlist based only on server name and version could not detect the later change in instructions.
That is the operational problem with tool poisoning and rug pulls. A server can change what it tells the agent after approval, so the dangerous content need not exist during a pre-deployment check. The relevant evidence appears in the live description or response. Protection therefore depends on detecting a change from approved behavior.
Token passthrough defeats the baseline in a different way. Forwarding an upstream token into downstream tool calls, rather than using OAuth 2.0 token exchange per RFC 8693, lets a credential issued for one audience reach systems it was never meant to touch. The live credential path becomes the concern.
Server-side request forgery, or SSRF, instead turns a supplied URL into a route to internal endpoints or cloud metadata services. Grafana MCP accepted well-formed caller-generated session IDs, allowing callers to list and run tools with its Grafana service account. A second flaw let a caller-controlled header redirect requests to cloud metadata. Pillar assigned that SSRF vulnerability CVE-2026-19516, with a CVSS score of 9.1.
These mechanisms can also reinforce one another. A server that combines external content ingestion, private data access, and outbound network reach has the “lethal trifecta” needed for full exfiltration within a session. MCP-in-SoS found that 87% of repositories with Tool-surface weaknesses also exhibited Protocol weaknesses.
Why the CVE record shows the blast radius is already enterprise-wide
The nginx-ui vulnerability CVE-2026-33032, rated CVSS 9.8, exposed command execution through an MCP message endpoint that failed to authenticate requests. Attackers could restart the server or modify configuration files, amounting to complete nginx service takeover. This was not just unwanted text reaching an agent. An authentication gap exposed control over a production service.
AWS’s bulletin for CVE-2026-10591 describes a different route to code execution in Kiro. Crafted instructions could cause the agent to rewrite execution-sensitive paths, including its MCP configuration. The Fake Oura MCP incident in February 2026 extended the risk into software distribution. That project delivered StealC malware that harvested developer credentials, browser passwords, API keys, and cryptocurrency wallets.
The enterprise exposure follows from what MCP servers hold. Credentials for Slack, GitHub, Google Drive, Salesforce, and similar services can sit behind an agent’s tool access, with all tools available for the full session. Internet-wide scans are already sending correctly formed JSON-RPC initialization requests to map exposed MCP tool surfaces.
Anthropic’s response to the OX Security advisory was that “sanitization is the developer’s responsibility.” That leaves organizations with an operational decision about which implementations to trust and under what conditions. A one-time audit cannot keep those conditions in force throughout a live session.
What real-time risk scoring actually measures and how it differs from static analysis
Static scoring is useful because structural weaknesses deserve attention before deployment. MCP-in-SoS extracts Common Weakness Enumeration, or CWE, weaknesses from server implementations and maps them to CAPEC attack patterns. It gives each repository risk scores for its Protocol, Tool, Resource, and Prompt surfaces. These checks provide a reasoned baseline for deciding whether a server belongs on an allowlist.
Endor Labs’ Endor Score illustrates the scope of source-based evaluation. Its evaluator operates within a defined boundary: it never runs an MCP server or executes a skill to probe it. It means the score cannot establish what tools a server will expose when an agent connects or whether the server will change its behavior after approval.
A rug pull exploits exactly that separation. The static profile can be clean while malicious instructions arrive in a tool description at call time. Runtime scoring adds evidence from the actual interaction, including the target server, invoked tool, supplied arguments, and returned result. It also examines changes in descriptions, observed network destinations, and attempts to invoke unapproved write or destructive tools.
Pillar compares servers against a catalog of more than 23,000 analyzed MCP servers. Its risk scores separate read, write, and destructive capabilities, while the network destinations it sees are checked against the declared ones. A server name that teams know tells them less than an approved capability that stays within its declared scope.
False positives remain a real operational concern. Treating every unusual action as malicious can block legitimate work, especially when tools change dynamically. The counterargument is to invert the decision through explicit approval. A default-deny gate need not prove that an unapproved action is hostile before refusing it, while behavioral scoring identifies changes that need review.
The enforcement mechanisms that act on risk scores at the moment of a tool call
Gateway enforcement controls what the agent can discover and invoke. Filtering only at invocation leaves destructive tools visible to the agent, even when their execution is forbidden. Filtering before discovery removes unapproved tools from its available choices. The gateway then blocks any invocation outside the approved set before it reaches the server.
Risk tiering makes that boundary more useful. Keep separate allowlists for read tools and write or destructive tools, with stricter approval gates for the latter. This avoids treating every capability as equally sensitive. It also ties approval to the action the organization permits.
GitHub lets enterprise owners manage Copilot access through allowedMcpServers and deniedMcpServers in enterprise managed settings. Its policies fail closed, blocking malformed or unverifiable configurations. That is a server-admission control, distinct from checking the behavior of each tool call.
Network enforcement provides another point of control. Microsoft Entra Global Secure Access MCP Firewall, documented in Public Preview in August 2026, describes identity-centric inspection, auditing, and Allow/Block enforcement between agents and remote MCP servers. It covers tool invocations, resource access, prompt templates, and server metadata without requiring client or server changes. Noma Security instead describes pre-execution policy enforcement across agent hooks, MCP gateways, AI gateways, agent SDKs, direct APIs, EDR, and MDM.
Container controls restrict the process boundary itself. Docker MCP Gateway exposes --block-network, --block-secrets, --tools, and --verify-signatures, with secret blocking enabled by default. These controls do a different job from platform admission or network inspection.
Allowlists still have a weakness that needs attention. Agents discover tools dynamically through tool listing APIs, so the full callable set may not be known when policy is written. An approved server can later expose a different set of capabilities. Static allowlists therefore need version and behavior checks.
Why real-time observability is the governance layer that makes blocking trustworthy over time
If descriptions, destinations, or available tools change and no one checks them against an approved baseline, the organization cannot tell whether its original policy still fits. Logs read only after an incident are a postmortem.
The operational requirement is to log every tool call with its user, agent, server, tool, arguments, and result in real time. Description and network-destination comparisons must also run continuously. These records connect a policy decision to the interaction it governed. Without that connection, a blocked call or an allowed call is difficult to audit meaningfully.
The campaign went from use that seemed legitimate to malicious instructions, with no behavioral baseline to show the change. Logging each call and checking for changes in descriptions would have flagged the shift that an installation check missed.
Developers and non-developers are adding servers to Claude Code, Cursor, VS Code, and Claude Desktop configurations without review, while most enterprises cannot say which MCP servers are running. A server discovered without a registry entry is an identity the organization cannot account for. Continuous inventory links running servers to approved tools and observed behavior.
That visibility also changes the adoption decision. A governed path with ongoing monitoring reduces the review cycle for new servers because approval no longer depends entirely on a one-time prediction of future behavior. Centralized enforcement and fast adoption are therefore not opposing goals. Governance becomes a way to say yes with defined boundaries.
What a working runtime risk and blocking architecture looks like in practice
The architecture has four layers, starting with pre-deployment scoring. Before approving a server, teams should assess CWE-CAPEC-mapped weaknesses, supply chain provenance, authentication posture, and input validation. Write, shell, and network-egress capabilities warrant elevated review. The approved version should be pinned, with every update treated as a re-approval event.
The second layer is gateway enforcement at tool-discovery time. Unapproved tools should be invisible to the agent, with separate approval gates for read and write or destructive capabilities. This layer turns the baseline into an access decision before the agent selects an action, failing closed when a configuration cannot be verified.
The third layer is continuous behavioral monitoring. Teams should compare descriptions at the start of each session and watch for later changes, treating a changed description as a rug-pull signal even if it looks like a cosmetic update. The URLs and hosts that a server supplies should be checked against declared destinations before requests leave. Real-time call records then preserve the user, agent, server, tool, arguments, and result needed to audit enforcement.
The fourth layer is registry and identity accounting. Every running server needs an entry that lists its approved version, scoped credential, allowed tools, and declared network destinations. Servers without an entry should be blocked. With role-based access for agents, the organization decides which tools an agent may use, so connecting a server does not grant that power by chance.
Named products supply parts of this model. Source scoring, catalog-based assessment, gateway restrictions, network inspection, and pre-execution enforcement answer different questions about trust. Teams that put those controls in place before they expand use can approve production use faster than teams that plan to secure it later. Real-time risk scoring and blocking make governance fast enough to support MCP adoption.


