Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

sqlmap

$ sqlmap Official High Risk
sqlmapproject · Security & Secrets · GPL-2.0 · macos / linux / windows

sqlmap (sqlmap) automates detection and exploitation of SQL injection flaws across MySQL, PostgreSQL, MSSQL, Oracle, and SQLite backends. By default it asks interactive yes/no questions and prints noisy banner logs, so agents must always pass --batch and restrict scope/risk explicitly.

FCRS-1.0 Score
65 /100
Usable w/ Caveats
Medium Confidence
Zero-Friction Install
brew install sqlmap
CLI vs MCP Decision CLI Only

sqlmap executes high-volume iterative HTTP SQLi payloads locally against target test environments, which belongs in an isolated CLI.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 14 / 25

Interactive prompt-heavy by default unless --batch is supplied; emits verbose log lines and lacks native --json stdout.

  • --batch suppresses interactive [Y/n] prompts
  • No native --json output mode; verbose ANSI/log stdout
Trust & Safety 14 / 25

High-risk offensive scanner capable of heavy HTTP traffic, data extraction, and OS command execution (--os-shell) if misconfigured.

  • Supports destructive/exploitative flags (--risk=3, --os-shell)
  • Generates high-volume active payloads against targets
Setup & Portability 12 / 15

Python CLI available via brew, pip, uvx, and git clone across macOS, Linux, and Windows.

  • Cross-platform Python package with minimal dependencies
Utility & Efficiency 11 / 15

Industry-standard automated SQLi verification engine, though slow and token-heavy for routine agent checks.

  • Broad DBMS fingerprinting and payload coverage
Maintenance & Lineage 8 / 10

Long-running open-source security project (sqlmapproject/sqlmap) under GPL-2.0 with frequent commits.

  • Active sqlmapproject/sqlmap repository
Docs & Verifiability 6 / 10

Extensive wiki and -hh advanced help, though hundreds of flags make safe subset selection non-trivial.

  • Large flag surface documented in GitHub wiki

Security, Auth & Guardrails

Auth Modes
No Auth Config File
Credential Storage

Stores scan session SQLite caches and dumped data under ~/.local/share/sqlmap/output/; target HTTP auth is passed via --cookie or --headers.

Side Effects
Read-Only Local Write Remote Write Destructive
Cost & Quotas

GPL-2.0 open-source CLI; free to use on authorized targets.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# sqlmap Agent Rules
- NEVER run `sqlmap` against third-party or production URLs without written authorization.
- Always pass `--batch` and cap `--level=1 --risk=1`; forbid `--os-shell`, `--sql-shell`, and `--tamper` escalation without human approval.

Agent-Ready Command Recipes

Safe Read-Only Queries

Non-destructive baseline parameter check
sqlmap -u "https://staging.example.com/item?id=1" --batch --level=1 --risk=1 --answers="follow=N" --output-dir=/tmp/sqlmap

Tests only basic --level=1 --risk=1 boolean/error SQLi probes with --batch so it never prompts or uses heavy payloads.

Controlled Writes & Previews

Enumerate database names on a confirmed target
sqlmap -u "https://staging.example.com/item?id=1" --batch --dbs --output-dir=/tmp/sqlmap

Enumerates accessible --dbs on an authorized staging endpoint while saving session logs in /tmp/sqlmap.

Strengths for Agents

  • + --batch prevents interactive [Y/n] hangs in CI/agent shells.
  • + Unmatched coverage of SQLi techniques and DBMS dialects when verifying authorized pentest findings.

Caveats & Pitfalls

  • ! No structured --json stdout; logs are noisy and consume significant context tokens.
  • ! Active offensive tool—higher --risk levels or --os-shell can corrupt databases or trigger WAF/legal incidents.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI