Open-source AI pentest agent for authorized security testing.
hunt-agent helps security engineers move through recon, enumeration, validation, evidence collection, and reporting while keeping the analyst in control at every step.
SAFETY WARNING
hunt-agent is designed exclusively for authorized penetration testing, bug bounty work (within program scope), and security research on systems you have explicit permission to test. Using it against systems without authorization is illegal and unethical. Always confirm scope before testing.
$ hunt-agent
╭────────────────────────────────────────────────╮
│ Hunt-agent │
│ local agent · tools ready · analyst approved │
╰────────────────────────────────────────────────╯
› /target https://app.example.com
target set to https://app.example.com
› test the orders API for broken access control
⏺ Skill webvuln
⎿ loaded skill: webvuln
⏺ http GET https://app.example.com/api/v1/orders/1043
⎿ 200 OK
⏺ BashTool(curl -s -H "Authorization: Bearer $USER_B" ...)
⎿ cross-account response confirmed
⏺ Confirmed Finding (high) IDOR on /api/v1/orders/{id}
⎿ written to ./findings/idor-orders.mdhunt-agent is an open-source terminal assistant designed specifically for authorized offensive-security work. It connects to local or hosted LLMs, plans against a scoped target, uses real pentesting tools, asks for approval before sensitive actions, and learns from each engagement.
Key features:
- Works with any OpenAI-compatible LLM (Ollama, LM Studio, Groq, Gemini, Kimi, etc.)
- Human-in-the-loop: every shell command and HTTP request requires approval
- Built-in tools: http, shell, file ops, web search, MCP, Burp integration
- Skill system: load task-specific playbooks with
/skill-name - Continuous learning: compacts sessions into reusable intelligence scenarios
- YOLO mode for lab environments (auto-approves all tool calls)
curl -fsSL https://raw.githubusercontent.com/hunt-agent/hunt-agent/main/install.sh | shirm https://raw.githubusercontent.com/hunt-agent/hunt-agent/main/install.ps1 | iexnpm install -g @hunt-agent/cligit clone https://github.com/hunt-agent/hunt-agent.git
cd hunt-agent
npm install
npm run build
node dist/cli.js --version# Start hunt-agent (first run: choose a tooling profile)
hunt-agent
# Or use the alias
huntOn first launch, hunt-agent asks whether to use curl-only mode (recommended) or enable specialized scanners (ffuf, nuclei, sqlmap, etc.). You can change this later via config.
/target https://app.example.com
test the login endpoint for credential stuffing protections
/sqli
/jwt
/webvuln
/provider
/help
hunt-agent covers the full authorized engagement workflow:
- Recon — enumerate endpoints, headers, JS bundles, GraphQL schemas
- Mapping — build coverage state (which endpoints have been tested for what)
- Testing — targeted probes via curl / http tool, two-account BAC/IDOR checks
- Evidence — reproduce and document findings with exact curl one-liners
- Reporting —
confirm_findingwrites markdown reports under./findings/ - Coverage review —
/nextsuggests what to test next based on coverage state
After each session, /compact summarizes the conversation into persistent
session memory. hunt-agent also extracts intelligence scenarios — reusable
patterns about what worked, what failed, and what to check in similar contexts.
Intelligence is stored at:
.hunt-agent/intelligence/scenarios.jsonl(project-scoped)~/.hunt-agent/intelligence/scenarios.jsonl(personal)
Start a local bridge that accepts traffic from the Burp Suite extension:
/burp
/burp 9999
The bridge ingests requests, responses, and tasks from the Hunt-agent Burp extension, letting you combine manual Burp testing with AI-assisted analysis.
Config lives at ~/.hunt-agent/config.json. Key environment variables:
| Variable | Description |
|---|---|
HUNT_AGENT_CONFIG |
Override config file path |
HUNT_AGENT_LOG_LEVEL |
Log level (info, debug, warn, error) |
HUNT_AGENT_DEBUG_SESSION |
Enable session debug JSONL logging |
HUNT_AGENT_DEBUG_SESSION_PATH |
Path for session debug log |
- No auto-approve by default. Every tool call — shell commands, HTTP requests, file writes — shows a permission prompt. The analyst approves each one.
- YOLO mode (
/yolo onor--dangerously-skip-permissions) auto-approves everything. Use only in isolated lab environments. - Scope enforcement. The system prompt hard-limits the agent to authorized security work. Out-of-scope requests are refused.
- Config is 0600. The config file and all session files are written with owner-only permissions.
- No telemetry. hunt-agent does not send any data to external services beyond the LLM provider you configure.
See SECURITY.md for vulnerability reporting.
See docs/migration.md for the full migration guide.
See CONTRIBUTING.md.
Apache-2.0 — see LICENSE.