TL;DR: MCP security is only as strong as the controls enforced outside the model, according to Credal, because the protocol leaves authorization, tool approval, logging and value limits to each deployment. Access review processes fail when tool calls inherit broad scopes and hidden instructions can steer writes before humans intervene.
At a glance
What this is: NHI Mgmt Group's analysis, drawing on Credal's blog post: MCP security depends on enforcing identity, approvals, logging and value limits outside the model because the protocol is not secure by default.
Why it matters: Identity and access teams need to govern MCP like a privileged integration layer, because model-driven tool use can widen blast radius, obscure accountability and bypass normal approval paths.
Context
MCP is an application-to-tool protocol that lets AI clients call external systems, but the security model is weaker than most enterprise teams assume. Authorization is optional in the protocol, so the practical question is not whether MCP exists in the stack, but whether identity, permission boundaries and auditability are enforced around every call.
The core governance gap is that the model chooses tools at runtime while reading untrusted text from those tools in return. That breaks the assumption that access can be safely granted up front and then trusted to stay within policy, which is why MCP security has to be designed as a control layer rather than a protocol setting.
Key questions
Q: How should security teams govern MCP tool access in enterprise environments?
A: Security teams should bind MCP tool access to enterprise identities, entitlements, and lifecycle state before a request reaches production tools. A gateway can enforce policy at the edge, but governance only exists when the identity system knows who is calling, what they are allowed to do, and whether approval or offboarding has already occurred.
Q: Why do prompt injections work in MCP workflows?
A: Prompt injections work in MCP workflows because the agent often treats untrusted tool output, retrieved content, or user-supplied text as instruction-bearing context. If the model is allowed to follow that text without strict tool-scoping, content filtering, and command separation, malicious prompts can redirect actions, exfiltrate data, or trigger unsafe tool calls. The failure mode is confused authority, not the protocol itself.
Q: Why do MCP gateways still leave identity risk in place?
A: Because authentication and routing do not solve scope, accountability, or lifecycle. An MCP gateway may confirm that a client is allowed to connect, but it may still allow actions that exceed the sponsor's intent or remain active after the human relationship changes. That is why IAM and IGA context must sit beside the gateway.
Q: What is the difference between API security and MCP security?
A: API security focuses on protecting known endpoints and request boundaries. MCP security must also govern the agent’s state, the context it carries, and the sequence of tool actions it can trigger. In practice, that means moving from endpoint-centric controls to workflow-centric access policy and continuous enforcement.
Technical breakdown
Why MCP needs external identity enforcement
MCP clients are language models, not deterministic application callers, so the protocol cannot rely on the same trust assumptions as ordinary API traffic. When a server accepts broad scopes or shared credentials, the model can act through that access without any built-in guarantee that the action matches the user’s real entitlement. The protocol's authorization model leaves key decisions to each deployment, which means security depends on whether identity and approval are resolved before the tool executes. Read What Is MCP? The Model Context Protocol Explained (2026).
Practical implication: Bind every tool call to a verified user identity and enforce least privilege before the model can invoke the action.
Tool descriptions and results are an attack surface
MCP expands the attack surface beyond request payloads. Tool metadata can be poisoned before the user starts a task, and tool output can carry hidden instructions that the model may follow as if they were legitimate context. That creates two distinct failure modes: tool poisoning through the catalog and prompt injection through returned content. Both exploit the model’s tendency to trust text unless the surrounding control layer blocks the action. Read Tool Poisoning vs Prompt Injection.
Practical implication: Treat tool schemas and tool output as untrusted content and validate both before execution.
Auditability has to exist outside the model
A model cannot provide trustworthy accountability on its own. If each server logs differently, or not at all, teams lose the ability to prove which user, agent, server and tool produced a given write or data access. In MCP deployments, that gap matters because the same agent may touch multiple systems in one workflow, and the evidence has to survive across those boundaries. Logging is therefore a governance control, not a reporting convenience.
Practical implication: Centralise MCP telemetry so every call is attributable to a person, an agent and a specific tool action.
Threat narrative
Attacker objective: The attacker wants the agent to perform privileged actions or disclose sensitive data through apparently legitimate tool use.
- Entry occurs when an attacker or malicious instruction reaches an MCP-connected agent through a tool description, a remote server or tool output that the model reads as trusted context.
- Credential access follows when the agent uses over-permissioned scopes, shared tokens or token passthrough to reach systems beyond the user’s intended authority.
- Escalation and impact occur when the model is steered into data exfiltration, unsafe writes or uncontrolled downstream calls, while weak logging prevents fast attribution and containment.
Breaches seen in the wild
- Gemini CLI prompt injection flaw 2025: Tracebit showed a poisoned README could make Gemini CLI run hidden commands and exfiltrate developer secrets; Google fixed it in 0.1.14.
- PocketOS database deletion incident: An AI coding agent found an over-privileged Railway API token in the codebase and deleted PocketOS production data and backups in nine seconds.
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 is becoming a governance layer problem, not a transport problem. The protocol decides how tools are reached, but enterprises decide which identities may use them, which values may be sent and which writes need approval. That separation matters because a model can be fooled by text even when the transport is technically valid. Practitioners should treat MCP as privileged integration infrastructure, not as a neutral connector.
Shared credentials and broad scopes are the wrong default for model-mediated access. The protocol’s flexibility makes it easy to reuse API keys or grant admin-scoped tokens, but that collapses accountability and expands blast radius. In identity terms, this is a non-human identity governance failure disguised as an AI integration choice. Teams should re-evaluate every place where MCP access is not tied to a specific user, source entitlement and approval record.
Tool poisoning is a supply-chain problem for agent behavior. Once the model ingests a poisoned tool description, the attacker has influenced execution before the user even sees a prompt. That is why catalog hygiene, tool attestation and change detection are now part of agent security, not just platform operations. The practical takeaway is to govern tool definitions as carefully as code or packages, because the model trusts them at load time.
Audit trails determine whether MCP can be governed at enterprise scale. If the organisation cannot reconstruct who used which tool, with what identity and under what approval, every other control becomes harder to prove and harder to enforce. This is where AI access governance converges with NHI governance: the session, the actor and the action all need to be durable in logs. Without that, control failure becomes invisible until after impact.
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 creates a new governance threshold for agentic access. Once a model can select tools and consume tool output, policy has to move ahead of execution rather than follow it. That means approval, identity binding and output filtering become first-class control points in the access path, not add-ons after rollout.
Enterprises should expect the highest-risk failures to show up where tool catalogs, permissions and logging are managed separately. The more fragmented those controls are, the easier it becomes for a model to act outside the human owner’s intent without a clear audit trail.
Model-context trust debt: this is the accumulation of unreviewed trust placed in tool descriptions, returned content and delegated scopes. Over time, that debt makes every new connector harder to approve because the organisation can no longer prove which inputs are safe to trust and which are merely convenient.
For practitioners
- Enforce per-user identity on every tool call Route MCP traffic through SSO-backed identity so each call is tied to one user, not a shared key or generic service account.
- Block broad scopes by default Start each approved server with the narrowest possible permissions and inherit entitlements from the source system rather than granting a wider agent scope.
- Require approval for risky writes Gate sensitive actions with a second check so the model cannot execute high-impact changes just because the tool response looks plausible.
- Baselined tool definitions Record approved tool names, parameters and descriptions, then pause any server whose definition changes until it is reviewed and re-approved.
- Centralise MCP telemetry Send every allow and deny event to a single SIEM feed with user, agent, server, tool, inputs, outputs and approval outcome.
Key takeaways
- MCP security depends on controls that sit outside the model, because the protocol itself does not enforce secure defaults for authorization, approval or auditability.
- The main risk pattern is delegated access with weak boundaries, where a language model can be steered into actions the underlying user should not have been able to perform.
- Enterprises should govern tool definitions, identity binding, approvals and logging as one policy plane if they want MCP use to remain defensible at scale.
Related NHI Mgmt Group resources: What Is MCP? The Model Context Protocol Explained (2026) · MCP Security Guide · Tool Poisoning vs Prompt Injection · API Security vs MCP Security
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Non-Human Identity Top 10, OWASP Agentic AI 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 Non-Human Identity Top 10 | NHI-05 — Overprivileged NHI | Shared tokens and broad scopes are the central access problem in MCP deployments. |
| Recommendation — Apply NHI-05 to eliminate shared credentials and scope MCP access to the minimum needed per call. | ||
| OWASP Agentic AI Top 10 | ASI03 — Identity & Privilege Abuse | MCP lets agents exercise delegated privilege at runtime, which is the core agentic risk here. |
| Recommendation — Use ASI03 to constrain agent privilege, approvals and identity binding before tool execution. | ||
| NIST CSF 2.0 | PR.AA-05 — Access Permissions, Entitlements and Authorizations | This topic is fundamentally about governing permissions and authorizations around tool access. |
| Recommendation — Enforce PR.AA-05 so every MCP call is authorised through least-privilege entitlements. | ||
| MITRE ATT&CK | TA0006;TA0010 — Credential Access; Exfiltration | The article’s attack patterns center on credential misuse and data removal through trusted tool paths. |
| Recommendation — Map MCP abuse to TA0006 and TA0010 to hunt for token theft and downstream exfiltration. | ||
Key terms
- Model Context Protocol: Model Context Protocol is an open protocol that lets AI agents connect to tools and data sources. It expands what an agent can reach, so governance has to cover not only the model and its prompts, but also every system that can receive or return agent-driven data.
- Action Gate: An action gate is a control point that checks whether an action should be allowed before it executes. In autonomous systems, it sits between the model’s decision and the actual tool, data, or system call, and can enforce policy, approval, scope limits, or human review.
- Audit Telemetry: Audit telemetry is the log and event data collected to support audit, detection, and accountability. It typically includes who or what acted, what was accessed, when it happened, and the outcome, so security teams can reconstruct activity, investigate abuse, and verify control operation.
- Tool Poisoning: Tool poisoning is an attack in which malicious instructions are hidden inside tool descriptions, examples, or schemas that an AI agent reads when deciding what to do. The danger is not only in the tool's code, but in the metadata that shapes the agent's behaviour and trust decisions.
Deepen your knowledge
NHI governance, agentic AI identity, and machine identity security 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 November 25, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org