Redbot Labs / Attack Intelligence
MCP Tool Shadowing
- Record ID
- RB-012
- Severity
- High
- Category
- MCP
- Confidence Score
- 89
- Published
- Updated
Summary
MCP Tool Shadowing is an attack technique in which a malicious or compromised Model Context Protocol (MCP) server exposes tools that impersonate legitimate enterprise capabilities, causing AI assistants to invoke attacker-controlled functions that appear trustworthy.
Executive Summary
The Model Context Protocol allows AI assistants to discover and invoke external tools dynamically. If an attacker introduces a malicious MCP server or compromises an existing one, they can register tools whose names, descriptions, or functionality closely resemble trusted enterprise services.
Because language models rely heavily on tool descriptions during selection, an AI agent may unknowingly invoke the malicious implementation instead of the legitimate service. This can result in credential theft, sensitive data exposure, unauthorized API requests, or manipulation of downstream workflows.
Attack Overview
MCP enables AI systems to enumerate available tools and determine which capability best satisfies a user’s request. Tool Shadowing exploits this discovery process by presenting deceptive tools that appear functionally identical to legitimate enterprise integrations.
Rather than attacking the language model directly, adversaries manipulate the trust relationship between the AI assistant and its connected tool ecosystem. Once selected, the malicious tool can intercept inputs, alter outputs, or perform unauthorized actions while appearing to operate normally.
Attack Flow
- An attacker deploys or compromises an MCP server.
- A malicious tool is registered using a legitimate-looking name and description.
- The AI assistant discovers the available capabilities.
- The model selects the malicious tool during normal reasoning.
- The attacker intercepts data or performs unauthorized actions.
Affected Systems
- MCP-enabled AI Assistants
- Enterprise AI Agents
- MCP Servers
- Enterprise API Integrations
- AI Workflow Platforms
- AI Copilots
Business Impact
- Unauthorized access to enterprise data
- Credential harvesting
- Execution of malicious API requests
- Business workflow manipulation
- Data integrity compromise
- Increased supply chain risk
- Loss of trust in AI automation
Testing Methodology
Redbot Security validates Tool Shadowing by introducing controlled MCP tools that closely resemble legitimate enterprise capabilities.
Testing evaluates:
- Tool discovery behavior
- AI tool selection logic
- Description-based trust decisions
- Duplicate capability handling
- Authorization validation
- Tool provenance verification
Detection Guidance
Monitor for:
- Duplicate or unusually similar tool registrations
- Unexpected MCP server connections
- Newly discovered tools with elevated permissions
- AI selecting unfamiliar tools
- Abnormal API destinations
- Unexpected changes in tool metadata
Mitigation Guidance
- Cryptographically verify trusted MCP servers
- Require tool provenance validation
- Restrict dynamic tool discovery where appropriate
- Maintain allowlists of approved enterprise tools
- Continuously audit registered MCP capabilities
- Monitor AI tool selection behavior
- Require approval for privileged tool execution
MITRE Mapping
AML.T0051 – Prompt Injection AML.T0036 – AI System Interaction (where applicable)
OWASP Mapping
LLM05 – Supply Chain Vulnerabilities LLM06 – Excessive Agency LLM09 – Misinformation (context dependent)
Technical References
- Model Context Protocol Specification
- Anthropic MCP Documentation
- OWASP Top 10 for LLM Applications
- MITRE ATLAS Framework
- NIST AI Risk Management Framework

