TL;DR: Unosecur says prompt injection in MCP becomes materially more dangerous when an AI agent can use tools, because malicious instructions can drive real actions such as data retrieval, messaging, code execution or API calls. Security now has to control execution, not just model output, because poisoned context can cross directly into privileged tool use.
Editorial analysis by NHI Mgmt Group, based on content published by Unosecur: “Prompt Injection Is Worse When Agents Can Use Tools: The MCP Execution Crisis”.
By the numbers:
- 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.
Key questions
Q: What breaks when an MCP-connected agent can turn untrusted text into tool actions?
A: The boundary between data and execution breaks.
Q: Why does prompt injection become more dangerous when a model can use tools?
A: Because the output stops being just text.
Q: What are the signs that MCP tool control is failing?
A: Watch for tool calls that follow external content retrieval, unexpected instructions embedded in tool metadata, calls to resources outside the agent's normal task, or sensitive data appearing in unrelated parameters.
Practitioner guidance
- Scope each tool by action type Assign separate permissions for read, write, delete, outbound transmission and code execution so a summarisation task cannot inherit broader authority.
- Sandbox local MCP servers Run local or self-hosted MCP servers with restricted filesystem, network and system access so a compromised server cannot operate with full client privileges.
- Require explicit execution approvals Show the exact action, target, data and destination before approving high-impact tool calls, rather than relying on a generic allow or deny prompt.
Bottom line: MCP prompt injection becomes an execution problem when poisoned context can drive tool calls, not just generate unsafe text.
What's in the full article
Unosecur's full analysis covers the operational detail this post intentionally leaves for the source:
- MCP Gateway placement and request-path enforcement details for agent-to-tool traffic
- How intent classification and scoped credentials are applied before execution
- Examples of how sensitive data is stripped from tool arguments and returned content
- Trace fields captured for tool decisions, outcomes and downstream actions
👉 Read Unosecur's analysis of prompt injection and MCP execution control →
Explore further
View Full Forum → | NHI Foundation Course → | Our Services → | Read the full analysis →
MCP prompt injection is no longer a content-safety issue; it is an execution-governance issue. The moment an agent can act on what it reads, the trust boundary shifts from model output to tool invocation. That means security teams must stop treating poisoned prompts as a nuisance and start treating them as a way to reach privileged actions through an apparently legitimate workflow. The practitioner conclusion is straightforward: govern the action path, not just the text path.
A few things that frame the scale:
- 71% of organizations use third-party APIs, according to Gartner’s 2024 data.
A question worth separating out:
Q: How should teams separate legitimate automation from unauthorised execution in MCP?
A: By making execution rights explicit and narrow. Read, write, delete and external transmission should not share the same authority, and high-impact actions should require approval that shows the concrete operation and target. That way, a poisoned prompt cannot automatically inherit the ability to act.
👉 Read our full editorial: Prompt injection becomes an execution-control problem in MCP