TL;DR: MCP protection breaks into governance, behavioral baselining, and runtime enforcement, according to Impart, and treating them as interchangeable leads teams to buy single-layer tooling that leaves gaps in ownership, anomaly detection, or blocking. The real control problem is making sure each layer maps to a distinct decision point before an MCP call executes.
At a glance
What this is: This analysis separates MCP governance, behavioral baselining, and runtime enforcement into three distinct control layers and argues that only the last can stop a bad call before execution.
Why it matters: Identity and platform teams need this distinction because MCP programmes fail when ownership, anomaly detection, and inline prevention are blended into one control story.
Context
MCP security becomes difficult when teams treat ownership, anomaly detection, and inline prevention as one control problem. In practice, each layer answers a different governance question: who owns the server, what normal traffic looks like, and whether a request can be stopped before execution.
For AI agent and workload identity programmes, the problem is not just access to the server itself but how tool-level decisions are governed across the request path. MCP Security Guide covers the protocol mechanics behind those controls, while this post focuses on why collapsing them into one vendor label creates blind spots.
Key questions
Q: What breaks when MCP governance is treated as the same thing as detection?
A: Teams lose the ability to see which control is supposed to own which decision. Governance defines ownership and scope, detection identifies abnormal behaviour, and enforcement stops execution. If those layers are merged conceptually, you end up with dashboards where a prevention gap is mistaken for a visibility gain, and that usually leaves the highest-risk request path untouched.
Q: Why do MCP baselines often fail when applied to agent traffic?
A: Because agents do not behave like human users. Their traffic is bursty, task-based, and often changes shape mid-workflow, so a baseline built for human API patterns creates noise instead of insight. Effective baselining has to model service, route, caller, and argument context, otherwise the programme tunes out the very anomalies it needs to catch.
Q: How should security teams validate that MCP controls can actually stop a bad request?
A: They should test the request path itself, not just the alerting stack. A useful validation proves that a policy decision can block or modify an invocation before execution finishes. If the only evidence is a log entry or post-event alert, the programme has detection, not prevention, and the bad call may already have completed.
Q: What is the difference between API gateway controls and runtime MCP enforcement?
A: API gateways mainly inspect traffic at the boundary, while runtime MCP enforcement evaluates the action itself, the session context, and the policy decision before the downstream call proceeds. In agent-driven fintech workflows, that difference matters because the real risk sits inside the session, not just on the edge.
Technical breakdown
Why MCP governance starts with ownership and tool-level scope
Governance in MCP is the layer that establishes who owns a server, what data it can touch, and which tools are actually available to a given caller. The article is right to separate server-level access from tool-level authorization because a server often bundles read operations and administrative functions together. That makes coarse permissions too broad for agents, especially when roles were designed around predictable human work. The practical model is to bind access to the specific agent identity and the specific tool, not to assume the whole server is one decision unit. See the NHI Authentication Guide.
Practical implication: assign one accountable owner per server and authorize tools individually rather than by server-wide access.
How behavioral baselining detects suspicious MCP call sequences
Behavioral baselining is not a checklist of bad requests. It is a model of normal route usage, caller patterns, and argument shapes that lets defenders see when a sequence of individually acceptable calls becomes suspicious in aggregate. That matters because agents do not behave like humans: their traffic is bursty, phase-based, and highly variable by task. A human-shaped baseline over agent traffic will produce false positives and make teams ignore the signal. The useful signals are discovery bursts, unusual call sequences, and argument-level anomalies such as encoded payloads or instruction-shaped input.
Practical implication: baseline by service, route, and caller, then tune for sequence drift instead of single-event violations.
Why runtime enforcement is the only inline control that can stop bad MCP calls
Runtime enforcement is the only layer that can intervene before an MCP call completes. Detection can explain what happened, but it cannot reliably stop a request that executes faster than an alerting workflow can react. That is why the article distinguishes API gateways, SIEMs, LLM observability, and CNAPP from inline enforcement: they help with adjacent problems, but they do not evaluate MCP tool semantics in the request path. Inline enforcement changes the control model from observe-and-review to pass, block, or modify before execution finishes. See the API Security Buyer's Guide.
Practical implication: place policy enforcement inline with the request path if you need prevention, not just telemetry.
Threat narrative
Attacker objective: The objective is to turn legitimate-looking MCP interactions into unauthorized tool execution, data access, or downstream model manipulation before controls react.
- Entry occurs when an attacker reaches an MCP server or its exposed tool surface through ordinary-looking requests that are not yet blocked.
- Escalation follows when broad server-level access or weak tool scoping lets the caller move from a harmless function to a higher-risk capability.
- Impact occurs when malicious or replayed calls complete before detection can respond, allowing unauthorized actions, prompt injection, or token abuse to succeed.
Breaches seen in the wild
- Smithery.ai MCP hosting breach 2025: A Smithery.ai build flaw gave GitGuardian a live fly.io token controlling 3,000+ hosted MCP servers and the API keys their clients sent.
Read and download The State of NHI & AI Agent Breach Report 2026, covering 200+ breaches impacting Non-Human Identities including AI Agents.
NHI Mgmt Group analysis
MCP protection fails when vendors collapse governance, detection, and enforcement into one promise. Those three layers answer different control questions, and a single product label can hide that only one layer is actually covered. The practical consequence is a false sense of completeness that leaves ownership gaps, weak anomaly signal, or no inline blocking at all.
Tool-level authorization is the real MCP governance boundary, not server-level access. An agent that can reach a server can often reach every tool attached to it unless each capability is isolated as its own decision. That is a governance design issue, not just a policy detail, and it should reshape how teams think about scope, ownership, and review.
Behavioral baselining for MCP must be built around sequence and argument context, not human traffic assumptions. Human-shaped baselines assume steadier pacing and narrower variation than agents actually produce. The result is noisy detection that trains teams to ignore drift, which makes the baseline self-defeating unless it is modelled around service, route, and caller behaviour.
Inline prevention is the only layer that can change the outcome of a fast MCP request. Logging, SIEM correlation, and observability all matter, but they sit after the execution decision has already been made. The control question is therefore not whether a team can inspect the call later, but whether it can interrupt the call path before the action completes.
Runtime governance for MCP exposes an identity problem as much as a tool problem. Once the caller is an agent or workload, the question becomes how much authority is tied to that identity across a live request. The Smithery.ai MCP hosting breach 2025 shows why broken trust in a hosting layer can become a platform-wide access event, not just a local defect.
From our research library:
- 24,008 unique secrets were exposed in MCP configuration files in 2025 alone, the protocol's first year of widespread adoption, according to the State of Secrets Sprawl 2026.
- Read next: MCP Security Guide
What this signals
MCP programmes will increasingly be judged on whether they can prove decision separation. Teams will need evidence that ownership, anomaly detection, and inline blocking are distinct controls rather than three labels attached to one capability. That change shifts procurement and architecture reviews toward control mapping instead of feature comparison.
Runtime governance will become the operational test for MCP maturity. The practical question is no longer whether a team can observe tool use, but whether it can interrupt a request before execution completes and preserve evidence of why it acted. That is the difference between monitoring an MCP estate and governing it.
Identity context will matter more as agent use expands. If the caller is an agent or workload, the boundary of safe action depends on how well the programme scopes identity, tool access, and enforcement together. The growth in exposed MCP secrets in 2025 shows why discovery and control have to move together.
For practitioners
- Define server ownership and data boundaries Assign one accountable owner to each MCP server and tie that owner to a clear data classification for the tools it exposes.
- Separate tool permissions from server access Treat each tool as its own authorization decision and avoid granting blanket access to every capability attached to a server.
- Build behavioural baselines around routes and callers Model normal usage per service, route, and caller so sequence drift and argument anomalies stand out without overwhelming analysts.
- Test for actual runtime blocking Verify that the control plane can pass, block, or modify a request before execution completes, not just log that it happened.
- Review enforcement artefacts continuously Check what your enforcement layer decided on each invocation so policy drift and exception creep are visible before they become routine.
Key takeaways
- MCP security is not one control layer but three distinct ones, and conflating them leaves ownership, detection, or prevention gaps in place.
- The article argues that baselines built for human traffic do not translate cleanly to agent behaviour, which makes sequence-aware detection essential.
- Practitioners need inline enforcement if they want to stop a harmful MCP call before execution rather than only learning about it afterward.
Related NHI Mgmt Group resources: OWASP Agentic Applications Top 10 · MCP Security Guide · NHI Authentication Guide · Smithery.ai MCP hosting breach 2025
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, OWASP Non-Human Identity Top 10 and MITRE ATT&CK address the attack and risk surface, while NIST CSF 2.0 sets the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Agentic AI Top 10 | ASI03 — Identity & Privilege Abuse | MCP governance failures here center on agent identity scope and privilege boundaries. |
| ASI02 — Tool Misuse | The article focuses on unsafe tool invocation, argument abuse, and request-path enforcement. | |
| Recommendation — Constrain agent privileges to the minimum tool scope needed and review identity-bound access paths continuously. Inspect tool invocations inline and block or modify requests that violate policy before execution completes. | ||
| OWASP Non-Human Identity Top 10 | NHI-04 — Insecure Authentication | The article discusses token replay and caller verification across MCP requests and hosted servers. |
| Recommendation — Bind caller identity to each MCP request and reject replayed or unverified tokens at enforcement time. | ||
| NIST CSF 2.0 | PR.AA-05 — Access Permissions, Entitlements and Authorizations | MCP governance is fundamentally about scoped permissions and authorization boundaries. |
| Recommendation — Map each MCP tool to explicit entitlements and remove server-wide permissions that exceed the task scope. | ||
| MITRE ATT&CK | TA0006; TA0010 — Credential Access; Exfiltration | The article's attack patterns include token abuse and potential data exposure through MCP calls. |
| Recommendation — Track MCP abuse against credential-access and exfiltration tactics and prioritize detections on token replay paths. | ||
Key terms
- MCP governance: MCP governance is the set of policies, controls, and oversight used to manage how AI agents use the Model Context Protocol to reach tools and data. It defines approved connections, authentication, authorization, logging, data handling, and change control so agent actions remain traceable, bounded, and aligned with security and compliance requirements.
- Behavioural Baselining: Behavioural baselining is the process of learning how an identity normally behaves so deviations can be detected as risk signals. The baseline usually includes device, location, timing, and action patterns, and it becomes more valuable when used after authentication rather than as a replacement for it.
- Runtime Enforcement: Runtime enforcement is the practice of blocking malicious behaviour while software is running, rather than only detecting it after the fact. It monitors process activity, network actions, and privilege changes so a live attack can be interrupted at the point of execution.
- Tool-level Authorization: Tool-level authorization is the practice of checking permissions on each discrete action a client asks an MCP server to perform. It matters because LLMs can generate dynamic requests, so access control must be enforced where the action is executed, not only where the request is formed.
Deepen your knowledge
NHI governance, agentic AI identity, and machine identity lifecycle are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are building or maturing an IAM programme, it is worth exploring.
Published by the NHIMG editorial team on October 22, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org