Damn Vulnerable Model Context Protocol (DVMCP) A deliberately vulnerable implementation of the Model Context Protocol (MCP) for educational purposes. Overview The Damn Vulnerable Model Context Protocol (DVMCP) is an educational project designed to demonstrate security vulnerabilities in MCP implementations. It contains 10 challenges of increasing difficulty that showcase different types of vulnerabilities and attack vectors. This project is intended for security researchers, developers, and AI safety professionals to learn about potential security issues in MCP implementations and how to mitigate them. What is MCP? The Model Context Protocol (MCP) is a standardized protocol that allows applications to provide context for Large Language Models (LLMs) in a structured way. It separates the concerns of providing context from the actual LLM interaction, enabling applications to expose resources, tools, and prompts to LLMs. Recommended MCP Clients CLINE - VSCode Extension refer this https://docs.cline.bot/mcp-servers/connecting-to-a-remote-server for connecting CLine with MCP server getting started once you have cloned the repository, run the following commands: docker build -t dvmcp . docker run -p 9001-9010:9001-9010 dvmcp Security Risks While MCP provides many benefits, it also introduces new security considerations. This project demonstrates various vulnerabilities that can occur in MCP implementations, including: Prompt Injection: Manipulating LLM behavior through malicious inputs Tool Poisoning: Hiding malicious instructions in tool descriptions Excessive Permissions: Exploiting overly permissive tool access Rug Pull Attacks: Exploiting tool definition mutations Tool Shadowing: Overriding legitimate tools with malicious ones Indirect Prompt Injection: Injecting instructions through data sources Token Theft: Exploiting insecure token storage Malicious Code Execution: Executing arbitrary code through vulnerable tools Remote Access Control: Gaining unauthorized system ...
First seen: 2025-04-16 17:19
Last seen: 2025-04-17 12:11