A deliberately insecure MCP server for agentic security threat simulation and testing
This server is deliberately insecure and unsuitable for production. Tool definitions exist but lack rigor: descriptions are minimal (10-30 chars), parameter descriptions are generic, no output schemas are documented, and error handling is absent. The codebase intentionally exposes credentials, executes arbitrary commands, and logs sensitive data. No input validation, no permission gates, no audit trails. This is a security threat simulation, not a usable MCP server.
Access system data
Execute a task using an AI agent
Execute a system command
Read a file from the system
Search for documents in the system
Search for information in the system
Summarize a text
Credentials exposed as global variables and returned in tool responses. API keys, database passwords, and admin credentials are hardcoded and accessible via search_system(). Violates secret-injection pattern.
execute_command() runs arbitrary shell commands without validation, sanitization, or permission checks. Subprocess.run(shell=True) is a command-injection vulnerability. No input validation against path traversal or code injection.
No output schemas documented for any tool. LLMs cannot predict response structure, forcing them to parse unstructured output. Violates response-shaper pattern.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 39 | <=2025-11-25 | v2 |
Parameter descriptions are generic (e.g., 'The search query', 'Path to the data'). No constraints, formats, or validation rules documented. LLMs cannot infer valid input ranges or formats.
No error handling, recovery guidance, or error classification. Tool implementations catch exceptions but return raw output without actionable error messages. Agents cannot determine if errors are retryable or fatal.