sqlmap
$ sqlmap Official High Risksqlmap (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.
brew install sqlmap sqlmap executes high-volume iterative HTTP SQLi payloads locally against target test environments, which belongs in an isolated CLI.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Interactive prompt-heavy by default unless --batch is supplied; emits verbose log lines and lacks native --json stdout.
--batchsuppresses interactive[Y/n]prompts- No native
--jsonoutput mode; verbose ANSI/log stdout
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
Python CLI available via brew, pip, uvx, and git clone across macOS, Linux, and Windows.
- Cross-platform Python package with minimal dependencies
Industry-standard automated SQLi verification engine, though slow and token-heavy for routine agent checks.
- Broad DBMS fingerprinting and payload coverage
Long-running open-source security project (sqlmapproject/sqlmap) under GPL-2.0 with frequent commits.
- Active
sqlmapproject/sqlmaprepository
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
Stores scan session SQLite caches and dumped data under ~/.local/share/sqlmap/output/; target HTTP auth is passed via --cookie or --headers.
GPL-2.0 open-source CLI; free to use on authorized targets.
# 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
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
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
- +
--batchprevents 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
--jsonstdout; logs are noisy and consume significant context tokens. - ! Active offensive tool—higher
--risklevels or--os-shellcan corrupt databases or trigger WAF/legal incidents.