Keypoints
- MCP has rapidly become a widely adopted AI integration standard, connecting agents to tools, data sources, APIs, and cloud services across enterprise environments.
- Attackers are exploiting MCPâs trust model through tool poisoning, rug pulls, cross-server contamination, and STDIO command injection.
- Confirmed cases include Clawdbot gateway exposure, GitHub MCP repository exfiltration, and a financial services intrusion that went undetected for 14 days.
- OX Security identified a serious STDIO design flaw in official MCP SDKs that can lead to arbitrary command execution through untrusted configuration parameters.
- Detection is difficult because the malicious activity often appears as normal tool usage, with no SIEM alerts, EDR events, or obvious network anomalies.
- The report highlights multiple vulnerable platforms and CVEs, including MCP Inspector, Langflow, mcp-remote, LiteLLM, Windsurf, and Microsoft Azure DevOps MCP.
- Recommended defenses include MCP server allowlisting, tool-description hashing, least privilege, session-level behavioral monitoring, and stronger governance over AI agents as privileged principals.
MITRE Techniques
- [T1583.001 ] Acquire Infrastructure: Domains â Threat actors use infrastructure to host malicious MCP servers and endpoints for exfiltration (âpublish a server to these registries without identity verificationâ and âattacker-controlled endpointâ).
- [T1195.001 ] Supply Chain Compromise: Compromise Software Dependencies and Packages â Malicious MCP packages and silent updates are used to gain trust and modify behavior (âtrusted package sourceâ and âsilent update modified the toolâs email-sending behaviourâ).
- [T1588.007 ] Obtain Capabilities: Artificial Intelligence â Adversaries leverage AI agent ecosystems and MCP-connected tooling to obtain offensive capability (âmalicious server submissionâ and âagent operating through MCPâ).
- [T1195.002 ] Supply Chain Compromise: Supply Chain Compromise â The attack path relies on compromised server definitions and registry-delivered malicious MCP servers (âcompromised provider publishes an MCP serverâ and âmalicious server submissionâ).
- [T1566.002 ] Phishing: Spearphishing Link â Social engineering can lure developers into connecting to malicious MCP servers (âsocial engineering lure directing a developer to a malicious server definitionâ).
- [T1059.006 ] Command and Scripting Interpreter: Python â STDIO-based injection can execute Python-level commands via the official SDK path (âSTDIO transport passes configuration parameters directly to the host operating system shellâ).
- [T1059.007 ] Command and Scripting Interpreter: JavaScript â JavaScript-based host tooling and runtimes are among affected environments for command execution (âaffected production platforms included Cursor, VS Code, Windsurfâ).
- [T1554 ] Compromise Host Software Binary â Rug pull style updates modify trusted server behavior after approval (âpost-approval modificationâ and âtool definition changes after an agent has approved itâ).
- [T1548 ] Abuse Elevation Control Mechanism â Attacks abuse agent trust and privileged execution context to escalate actions across integrated servers (âthe attacker controls an agent with access to all of those systems simultaneouslyâ).
- [T1027 ] Obfuscated Files or Information â Malicious instructions are hidden inside tool metadata and descriptions (âmalicious instructions embedded in tool metadataâ).
- [T1036.005 ] Masquerading: Match Legitimate Resource Name or Location â Tool squatting and typosquat packages imitate legitimate sources (âtool squatting, typosquat packagesâ).
- [T1078 ] Valid Accounts â Legitimate agent credentials are used to perform unauthorized actions (âall tool calls execute under legitimate agent credentialsâ).
- [T1564.008 ] Hide Artifacts: Email Hiding Rules â Exfiltration is carried out through email workflows and hidden within normal mail activity (âcompose email messages to an external addressâ).
- [T1685 ] Disable or Modify Tools â Attacker-controlled servers can alter tool behavior and suppress audit visibility (âsuppress agent audit loggingâ).
- [T1685.002 ] Disable or Modify Tools: Disable or Modify Cloud Log â Cloud logging can be reduced or altered through compromised integrations (âdisable or modify cloud logâ).
- [T1687 ] Exploitation for Defense Impairment â STDIO exploits can weaken host-level protections by gaining execution in the host process (âcommand execution in the context of the host processâ).
- [T1552.001 ] Unsecured Credentials: Credentials In Files â Tool poisoning targets SSH keys, cloud credentials, and env files (âread SSH keys from ~/.ssh/id_rsaâ and â.aws/credentialsâ).
- [T1528 ] Steal Application Access Token â MCP gateway exposure leaks API keys, session tokens, and brokered credentials (âcomplete credential sets, API keys, and conversation historiesâ).
- [T1083 ] File and Directory Discovery â Agents enumerate files and directories to locate sensitive data (âenumerate accessible document collectionsâ and âread the contents of private repositoriesâ).
- [T1526 ] Cloud Service Discovery â Agents identify cloud-connected resources and accessible collections (âenumerate accessible document collectionsâ).
- [T1550.001 ] Use Alternate Authentication Material: Application Access Token â Stolen tokens are reused to access other systems (âretrieved storage tokenâ and âcloud storage authentication tokensâ).
- [T1213 ] Data from Information Repositories â Attackers extract data from repositories, documents, and connected storage (âexfiltrate private repository dataâ and âretrieve their contentsâ).
- [T1114 ] Email Collection â Compromised agents access and send email content and attachments (âemail MCP serverâ and âcompose email messagesâ).
- [T1567 ] Exfiltration Over Web Service â Data is sent to attacker-controlled URLs and external endpoints (âPOST the retrieved content to an external URLâ).
- [T1102 ] Web Service â External web services are used as both payload delivery and exfiltration channels (âlegitimate cloud service endpoint used for both the toolâs real function and the attackerâs data receiptâ).
Indicators of Compromise
- [IP address / loopback trust pattern ] Clawdbot proxy-bypass exposure and local-trust abuse â 127.0.0.1, localhost
- [File paths / credential locations ] Tool-poisoning targets for credential theft â ~/.ssh/id_rsa, .aws/credentials, .env
- [Package / registry artifact ] Rug-pull supply chain incident â postmark-mcp, MCP Registry
- [Endpoint / port ] Exposed MCP gateway access and direct gateway probing â WebSocket API on port 18789, gateway.trustedProxies
- [CVE identifiers ] Publicly disclosed vulnerable components and exploit paths â CVE-2025-49596, CVE-2025-3248, and other listed CVEs such as CVE-2026-30623
- [Registry / platform names ] Known MCP registries and affected tooling sources â PulseMCP, Smithery, mcp.so, official MCP Registry
- [Product / platform names ] Affected enterprise AI tools and SDKs â Cursor, VS Code, Windsurf, Claude Code, Gemini-CLI
- [External URLs / attacker-controlled endpoints ] Indirect injection exfiltration destinations â external URL embedded in issue text, attacker-controlled endpoint
- [Hash / description integrity artifact ] Rug-pull detection via tool-description changes â tool description hash, consecutive tools/list responses
- [Documentation / advisory identifier ] NSA MCP security guidance â U/OO/6030316-26
Read more: https://www.cyfirma.com/research/exploitation-of-model-context-protocol-in-agentic-ai-deployments/