SQLMap Lab Verification MCP Server
Isolated lab-CIDR-gated parameterized query verification tool preventing unauthorized external execution.
Prerequisites & Step-by-Step Installation
Copy & run inside isolated labBefore You Start (Prerequisites)
- + Isolated Docker training range or local QA app container
- + SQLMap installed inside non-routed lab container (--network lab_isolated)
- + Strict RFC1918/loopback CIDR lock (--lab-only-cidr)
Create an internal-only Docker range network before running lab verification
docker network create --internal lab_isolated
Hardware-isolates the verification runner so no external host can ever be touched.
Register SQLMap Lab MCP bound strictly to loopback/lab CIDRs
claude mcp add sqlmap-lab-mcp -- sqlmap-lab-mcp --lab-only-cidr 127.0.0.1/32,172.18.0.0/16 --level 1 --risk 1
Refuses any non-RFC1918 IP or public domain at the validation layer.
sqlmap --version
Client Integration & Configuration Files
Review scope limits before wiringclaude mcp add sqlmap-lab-verification-mcp-server -- sqlmap-lab-mcp --lab-only-cidr 127.0.0.1/32,172.18.0.0/16 --level 1 --risk 1 --batch
{
"mcpServers": {
"sqlmap-lab-verification-mcp-server": {
"command": "sqlmap-lab-mcp",
"args": [
"--lab-only-cidr",
"127.0.0.1/32,172.18.0.0/16",
"--level",
"1",
"--risk",
"1",
"--batch"
],
"env": {
"TOOLWAR_SAFE_MODE": "strict",
"AUTH_TOKEN": "YOUR_SCOPED_TOKEN_HERE"
}
}
}
}
{
"mcpServers": {
"sqlmap-lab-verification-mcp-server": {
"command": "sqlmap-lab-mcp",
"args": [
"--lab-only-cidr",
"127.0.0.1/32,172.18.0.0/16",
"--level",
"1",
"--risk",
"1",
"--batch"
]
}
}
}
services:
sqlmap-lab-verification-mcp-server:
image: toolwar-sandbox/mcp-runner:latest
read_only: true
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
How to Use & Defensive Workflow
Authorized assessment protocolTypical Scenario: Verify that an engineering patch migrating raw SQL strings to prepared statements completely blocks time-based and boolean checks in QA.
- 01. Boot the patched QA app inside your isolated Docker network.
- 02. Run level-1 / risk-1 verification against the specific repaired route.
- 03. Confirm 0 injectable parameters remain and archive the pass transcript with your PR.
Verify on http://127.0.0.1:8088/search?q=test inside our local QA lab that our new prepared-statement patch rejects SQL injection probes cleanly.
Bind the MCP server exclusively inside a read-only workspace or isolated container (`read_only: true`, `--cap-drop=ALL`). Enforce strict CIDR/directory allowlists and never expose local MCP stdio or SSE ports on untrusted network interfaces without mutual authentication.
Technical Architecture & Deployment Brief
Overview & Role in Security Engineering
SQLMap Lab Verification MCP Server (Security MCP Server) is engineered to support practitioners focused on regression verification of parameterized SQL fixes inside isolated local DVWA/staging containers. Within the ToolWar ecosystem, it serves as an explicit bridge between AI reasoning layers and verifiable cybersecurity telemetry.
Technical Architecture & Data Flow
The Model Context Protocol (MCP) separates the language model reasoning layer from privileged binary execution. Rather than letting an AI assistant invoke unconstrained shell commands, this server exposes typed, schema-validated read/inspection tools with explicit scope boundaries.
Unlike ad-hoc prompt wrappers that execute unconstrained strings directly in a shell, structured integration enforces typed parameter validation, bounded scope allowlists, and explicit separation between untrusted analyzed artifacts (source files, telemetry logs, network banners, or binary samples) and system-level control instructions.
Recommended Deployment Practice
- Isolate the Execution Boundary: Deploy integrations inside ephemeral containers or dedicated analysis VMs so untrusted repositories, binaries, or HTTP responses cannot affect primary workstations.
- Enforce Least-Privilege Scoping: Use read-only filesystem mounts, non-privileged service tokens, and target CIDR allowlists before enabling interactive assistant sessions.
- Verify Outputs Deterministically: Pair this connector with least-privilege runtime profiles and inspect every returned JSON schema before forwarding findings into automated tickets or dashboards.
Integration & Operational Caveats
- Treat all external content ingested by an LLM (including code comments, HTML titles, log lines, and MCP responses) as potential prompt-injection vectors.
- Review configuration JSON and
SKILL.mdmanifests carefully before binding credentials or running inside automated CI/CD pipelines.