Oathe Security Badge

oathe / scan / reports / caution

Is harishsg993010/damn-vulnerable-MCP-server safe?

Use with caution. harishsg993010/damn-vulnerable-MCP-server is not clearly unsafe, but the audit flagged risks to review before you install it. Oathe's behavioral security audit gave the damn-vulnerable-MCP-server skill by harishsg993010 a trust score of 73/100 with 9 findings (2 high). Report updated

https://github.com/harishsg993010/damn-vulnerable-MCP-server

73
CAUTION

Is harishsg993010/damn-vulnerable-MCP-server safe to install?

This is 'Damn Vulnerable MCP Server', an intentional security education and CTF platform analogous to DVWA, implementing 15 fully functional MCP attack demonstrations covering prompt injection, path traversal, command injection, remote code execution, supply chain attacks, and privilege escalation across easy/medium/hard difficulty tiers. Monitoring confirmed the repository itself is not malicious: no credential exfiltration occurred, all canary files remained intact, and no suspicious network connections were made beyond the GitHub clone. However, the challenge server.py files contain real, exploitable vulnerability implementations — not stubs — and naive deployment of these servers as production MCP tools would expose any connected LLM agent to the full spectrum of known MCP attack techniques.

What security issues were found in harishsg993010/damn-vulnerable-MCP-server?

Category Scores

Prompt Injection 80/100 · 30%
Data Exfiltration 70/100 · 25%
Code Execution 50/100 · 20%
Clone Behavior 95/100 · 10%
Canary Integrity 100/100 · 10%
Behavioral Reasoning 35/100 · 5%

Findings (9)

HIGH Functional RCE and Command Injection in Challenge Servers -30 ▶

Challenge 8 and challenge 9 implement fully exploitable remote code execution and command injection vulnerabilities respectively. The server.py files contain real vulnerable code paths, not stubs. If an LLM agent were connected to these MCP servers and an attacker or malicious tool call triggered the vulnerable path, arbitrary code could execute on the host. The startup.sh also writes challenge-specific config files (config.env, network.conf) containing fake-but-realistic secrets for exploitation.

Evidence: challenges/hard/challenge8/server.py; challenges/hard/challenge9/server.py; startup.sh: echo 'DVMCP{ch8_c0d3_3x3c_9af5}' > /tmp/dvmcp_challenge8/flag.txt; echo 'DB_PASSWORD=mysql_root_p@ssw0rd' > /tmp/dvmcp_challenge8/config.env

HIGH Intentional Attack Platform Covering Full MCP Threat Surface -65 ▶

This repository is an intentional security training CTF platform implementing 15 real, exploitable MCP attack demonstrations. All attack code is functional. If naively deployed as a production MCP skill, the connected LLM agent would be directly exposed to prompt injection, path traversal, command injection, code execution, supply chain attacks, privilege escalation, session hijacking, and more. The repository is not trying to be malicious — the CTF framing (leaderboards, solutions, smoke tests) is genuine — but the attack implementations are real.

Evidence: README.md ('Damn Vulnerable MCP Server'); 15 challenge server.py files across easy/medium/hard/supply_chain/identity; deploy/smoke_test.py: 'clients[0].tool(13, "admin_operation", {"operation": "list_secrets"})' and 'clients[0].tool(15, "install_package", {"name": "corp-analytics", "version": "latest"})' confirming attack paths are tested to work

MEDIUM Path Traversal to Read Private Files (Challenge 3) -20 ▶

Challenge 3 implements an intentional excessive-permissions file server that fails to restrict reads to the public/ directory, allowing traversal into private/. The startup.sh populates private/ with credentials.conf and secret.txt using realistic-looking secrets as CTF flags. This is a real traversal technique against real (albeit fake-credential) files.

Evidence: challenges/easy/challenge3/server.py; startup.sh: echo 'admin_password=SuperSecret123!' > /tmp/dvmcp_challenge3/private/credentials.conf; echo 'API_KEY=sk-dvmcp-admin-key-do-not-share' >> /tmp/dvmcp_challenge3/private/credentials.conf; echo 'DVMCP{ch3_3xc3ss1v3_p3rms_d4e1}' > /tmp/dvmcp_challenge3/private/secret.txt

MEDIUM Supply Chain Attack Simulation (Challenges 14-15) -20 ▶

Challenges 14 and 15 simulate MCP supply chain attacks via package installation. Challenge 15's show_installed tool is designed to leak state across player sessions (proving the attack works). The deploy/smoke_test.py confirms the exploit path: install a package as player 1, verify other players see it. The technique demonstrated — compromising the package registry path of an MCP tool — is a real supply chain vector.

Evidence: challenges/supply_chain/challenge14/server.py; challenges/supply_chain/challenge15/server.py; deploy/smoke_test.py lines: install_package corp-analytics, then iterate clients[1:] checking show_installed; solutions/challenge14_solution.md, solutions/challenge15_solution.md

MEDIUM Intentional Prompt Injection in Multiple Challenge Tool Descriptions -20 ▶

Several challenge servers implement prompt injection as the attack vector. Challenges 1-2 (Easy) are explicitly categorized as prompt injection challenges, with tool descriptions or resource content designed to redirect agent behavior. If a live LLM agent were connected, the injected instructions could suppress legitimate output, modify agent behavior, or escalate to tool calls the user did not authorize.

Evidence: challenges/easy/challenge1/server.py; challenges/easy/challenge2/server.py; challenges/medium/challenge4/server.py (tool poisoning variant); challenges/medium/challenge5/server.py; challenges/identity/challenge11/server.py (role confusion)

LOW Fake Credential Files Created as CTF Flags in /tmp -10 ▶

startup.sh writes credential-patterned fake secrets to /tmp paths that challenge servers expose: DB_PASSWORD, NETWORK_SECRET, and API_KEY values. These are CTF flags formatted to look like real credentials. While clearly educational, they represent the exfiltration target for the respective challenges and confirm the traversal/injection attacks have real-looking sensitive payloads to demonstrate.

Evidence: startup.sh: echo 'DB_PASSWORD=mysql_root_p@ssw0rd' > /tmp/dvmcp_challenge8/config.env; echo 'NETWORK_SECRET=internal-only-key-2024' > /tmp/dvmcp_challenge9/network.conf; echo 'API_KEY=sk-dvmcp-admin-key-do-not-share' >> /tmp/dvmcp_challenge3/private/credentials.conf

INFO Normal Clone Behavior — Only GitHub Traffic -5 ▶

The git clone produced only expected HTTPS connections to GitHub (140.82.121.3:443). No unexpected outbound connections were observed. The connection state before and after install is identical (no new listeners). No child processes from repository code ran during the clone phase.

Evidence: Network monitoring: sole external connection 140.82.121.3:443 (GitHub); connection diff BEFORE/AFTER: identical listening sockets; auditd EXECVE: git clone args point only to github.com/harishsg993010/damn-vulnerable-MCP-server

INFO All Honeypot Credential Files Intact 0 ▶

Canary files (.env, .ssh/id_rsa, .aws/credentials, .npmrc, .docker/config.json, .config/gcloud/application_default_credentials.json) were accessed at 23:41:50 (1795477310.460), which is 5.5 seconds before the git clone at 23:41:56. These accesses are from the audit monitoring initialization populating the honeypots, not from the cloned repository code. No credential content was sent to any external endpoint.

Evidence: Canary integrity check: ✅ All canary files intact; inotifywait timestamps 23:41:50 precede git clone at 23:41:56; no network traffic pattern matching credential exfiltration

INFO No SKILL.md Present — No System-Prompt Injection Vector 0 ▶

The repository contains no SKILL.md file. There is no attempt to inject instructions into an LLM agent's system prompt via the skill manifest mechanism. The repository is designed as a standalone Docker-deployed CTF server, not as an MCP plugin/skill intended to run inside an agent context.

Evidence: SKILL.md content: empty (no file); no prompt injection in repo root or manifest-equivalent files

Should I install harishsg993010/damn-vulnerable-MCP-server?

Oathe's verdict for harishsg993010/damn-vulnerable-MCP-server is CAUTION with a trust score of 73/100. Recommendation: Review before install.