MCP Horror Stories: The WhatsApp Data Exfiltration Attack
A WhatsApp MCP vulnerability disclosed by Invariant Labs lets a malicious MCP server exfiltrate a user's entire WhatsApp message history. It combines a "rug pull" tool-description swap after approval with tool poisoning that tells the agent to redirect send_message to an attacker's number and embed list_chats output. The payload hides behind trailing whitespace that client UIs like Cursor truncate, so the confirmation dialog shows only "Hi". A second variant needs no malicious server at all: the attacker sends a WhatsApp message whose text the agent reads via list_chats and treats as instructions. The poisoned descriptions rely on authority language, technical jargon, threats of crashes or bad UX, and instructions to keep the user uninformed, all made possible by missing isolation between MCP servers, no detection of description changes, and unrestricted network access.
Related posts
- MCP Horror Stories: The Security Issues Threatening AI Infrastructure
Docker mediumAdeptMCP servers expose AI agents to six recurring vulnerability classes: OAuth discovery flaws (e.g. CVE-2025-6514 in mcp-remote), command injection (reported in 43% of analyzed servers), unrestricted network fetches (33%), file path leakage (22%), tool poisoning (5.5%) and plaintext secret exposure. Each class comes with checks to apply before installing a server, such as avoiding servers that build shell commands from input or take credentials as environment variables. Docker's MCP Gateway is presented as the mitigation, running each server in a container with no-new-privileges, CPU and memory limits, signature verification, L7 network allowlisting via --block-network, secret scanning via --block-secrets and call logging.
- MCP Security: A Developer’s Guide
Docker easyNoviceMCP servers expand what AI agents can do but introduce risks across four categories: misconfigurations and weak defaults, malicious or compromised servers, secret leakage, and prompt injection or tool poisoning. One cited analysis found command injection flaws in 43% of MCP servers examined. Static AppSec tools miss these risks because agent behavior is non-deterministic and models can treat tool descriptions as instructions. The recommended guardrails are to containerize each server with resource and egress limits, route calls through a policy gateway that verifies signatures, enforces allowlists, redacts secrets, runs pre- and post-call interceptors and logs every call, and pin vetted servers by digest. Docker positions its MCP Gateway and MCP Catalog & Toolkit as the implementation.
- MCP Horror Stories: The Supply Chain Attack
Docker mediumAdeptCVE-2025-6514 (CVSS 9.6) in mcp-remote, an OAuth proxy downloaded over 437,000 times, let a malicious MCP server achieve remote code execution on developer machines. mcp-remote passed the server-supplied authorization_endpoint unvalidated to the npm 'open' package. On Windows that runs PowerShell, and an 'a:' scheme prefix keeps a $() subexpression from being URL-encoded, so the embedded command executes. Docker pitches its MCP Toolkit as the fix: native OAuth handling in place of the proxy, plus containerized servers with signature verification, network allowlisting, secret blocking and resource limits. It concedes that containerization alone would not have stopped this host-side bug.
- Run, Test, and Evaluate Models and MCP Locally with Docker + Promptfoo
Docker mediumAdeptPromptfoo, Docker Model Runner and Docker MCP Toolkit can be combined to evaluate LLM apps entirely on a dev machine. Three worked configs are shown. The first compares local Gemma3 against Claude Opus 4.1 using llm-rubric and similarity assertions, graded by local smollm3 and mxbai embeddings instead of OpenAI. The second tests MCP tools directly (GitHub, Fetch, Playwright, YouTube transcript) through the MCP gateway. The third red-teams a GitHub-summarizer agent with MCP, PII, BOLA and BFLA plugins plus jailbreak and prompt-injection strategies, which exposed a tool-discovery vulnerability that was fixed with a prompt guideline.
- 5 Best Practices for Building, Testing, and Packaging MCP Servers
Docker mediumAdeptMCP servers work best when designed around the agent as the real caller: keep a small "tool budget" by grouping endpoints into use-case tools and prompts instead of one tool per API endpoint, and return error messages that tell the agent what to fix (e.g., an invalid API_TOKEN configuration) rather than human-facing denials. Tool names and descriptions double as documentation for agents, while user docs explain the value. Test the connect, list-tools and tool-call lifecycle with the MCP Inspector or `docker mcp` commands, and open connections per tool call rather than at startup so tools can be listed even when the server is misconfigured. Package servers as Docker images using stdio transport for submission to the Docker MCP Catalog.