BehiSecc/HuntProxy
Sobre
A web security workbench built for AI agents.
Segurança e privacidadeCrescimento medido de estrelas
- em 24 h
- 0
- em 7 dias
- +3
- em 15 dias
- +3
- em 1 mês
- Coletando histórico
Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.
README.md
OriginalA web security workbench built for AI agents.
Introduction
Every time I wanted to hunt on a program, I had to fire up Burp Suite, make sure Burp MCP was alive, and then ask Claude or Codex for assistance.
It was straightforward, but doing the same thing on my VPS was painful. So I was stuck with my local setup, but I didn't want project data on my main Mac, didn't want to hurt its battery, and didn't want to worry about RAM usage.
And the whole flow still felt way too manual.
I had to browse and explore the target myself. I had to run plugins myself. I had to keep everything alive and connected myself.
Hell, even having to turn on my Mac just to continue hunting started to feel like a problem.
I kept thinking: this is too much work. In the age of AI agents, it shouldn't be done this way.
So HuntProxy was born to let me (and you) keep hunting from anywhere: locally or on a VPS, from a laptop or a phone, just by typing what we want in plain English, without having to do absolutely anything else.
📚 Table of Contents
- Introduction
- Installation
- Your First Project
- Features
- Example Prompts
- CLI Reference
- Plugins
- Don't Be Afraid of CAPTCHAs
- Troubleshooting
- FAQ
- Update & Uninstall
- Contribution
- Contact
📥 Installation
HuntProxy supports Linux and macOS:
curl -fsSL https://raw.githubusercontent.com/BehiSecc/HuntProxy/master/install.sh | bash
The installer sets up HuntProxy, its browser runtime, and a private data directory at ~/.huntproxy. The managed browser supports Debian 12/13, Ubuntu 22.04/24.04/26.04, and macOS 14+ on Intel or ARM64.
Connect HuntProxy to Your Agent
HuntProxy speaks MCP over standard input/output. When your agent connects, the bridge starts the local HuntProxy daemon automatically and keeps the project available across prompts.
Tool results are compact JSON capped at 24,000 bytes, so MCP clients never clip them mid-JSON. A result that had to be shortened carries an output_truncated note naming each cut and how to narrow the request.
Set HUNTPROXY_MCP_DISABLE_LIFECYCLE=1 on the MCP bridge to hide and reject huntproxy_stop and huntproxy_restart. The operator's HuntProxy stop command remains available.
Codex
Add this to ~/.codex/config.toml:
[mcp_servers.huntproxy]
command = "/path/to/HuntProxy"
args = ["mcp"]
Restart Codex, then ask it to create a HuntProxy project.
Other Clients
Use this standard JSON configuration in any client that supports local stdio MCP servers:
{
"mcpServers": {
"huntproxy": {
"command": "/path/to/HuntProxy",
"args": ["mcp"]
}
}
}
Replace /path/to/HuntProxy with the absolute path to the binary. It is usually located at ~/.local/bin/HuntProxy—for example, /home/you/.local/bin/HuntProxy.
Check the installation at any time with:
HuntProxy doctor
Run with Docker
Build the image and keep HuntProxy's project data in a named volume:
docker build -t huntproxy:local .
docker volume create huntproxy-data
docker run -d \
--name huntproxy \
--network host \
--shm-size=1g \
--security-opt seccomp=./docker/seccomp_profile.json \
-v huntproxy-data:/data \
huntproxy:local
Keep the image's non-root user and the supplied seccomp profile, which Chromium needs for its sandbox.
Connect your AI agent to the running container:
{
"mcpServers": {
"huntproxy": {
"command": "docker",
"args": ["exec", "-i", "huntproxy", "HuntProxy", "mcp"]
}
}
}
For Docker updates, rebuild the image and recreate the container with the same huntproxy-data volume. Reconnect MCP clients that use docker exec after recreating the container.
Optionally, open the web interface at http://127.0.0.1:17890.
🚀 Your First Project
After connecting HuntProxy, give your agent a target and an objective:
Use HuntProxy MCP. Create a project named "First Hunt" for
https://example-target.com/. Start a browser, explore the
application, and show me its sitemap and state-changing requests.
That single prompt begins the workflow. The agent creates a project, launches a persistent Chromium session, explores the target, records the resulting traffic, and builds a map it can use in later prompts.
🧰 Features
HuntProxy gives agents a complete hunting loop: build context → investigate → test a hypothesis → keep the proof.
Build and Preserve Context
| Capability | What your agent can do |
|---|---|
| Projects | Keep a target's traffic, browser state, cookies, notes, and test results together. |
| Capture proxy & History | Record HTTP/HTTPS traffic and search it by host, path, method, status, source, labels, request content, and Boolean expressions. |
| Persistent browser profiles | Run separate named Chromium identities in one project for cross-account testing. Each profile keeps its own cookies and site storage across restarts. |
| Browser actions | Click, fill, upload, use tabs and events, take screenshots, act inside iframes, click, hover and drag at any point, type real keystrokes, run JavaScript in the page or one of its frames, send same-origin requests with the live session, and hand control to a person through CDP; up to two profiles can be open per project by default. |
| Sitemap | Turn saved traffic into a host-and-route tree with methods, statuses, parameters, content types, and exchange counts. |
| JavaScript & page discovery | Find JavaScript and the pages that loaded it, extract endpoints, URLs, emails, and request parameter names, and build target-specific wordlists. |
| WebSockets | Inspect captured connections and messages, then inject text or binary frames into a live connection. |
Test Hypotheses
| Capability | What your agent can do |
|---|---|
| Reply | Reuse and modify captured requests over HTTP/1.1 or HTTP/2, or preserve exact HTTP/1.1 bytes for advanced framing tests. |
| Fuzzer | Run sniper, battering ram, pitchfork, or cluster bomb jobs with wordlists, number ranges, and regex-bypass payloads; group responses to spot meaningful differences. |
| Request rules | Apply ordered URL, header, and body rewrites across Proxy, Browser, Reply, Fuzzer, the crawler, and semantic plugin requests. |
| Compare & utilities | Diff saved exchanges, transform encodings, inspect large bodies in pages, and copy requests as runnable cURL or Python. |
Keep the Proof and Extend the Hunt
| Capability | What your agent can do |
|---|---|
| Findings & annotations | Attach titles, labels, notes, and findings directly to the exchange that proves them. |
| Portable projects | Create sanitized project exports by default, opt into complete sensitive exports when needed, transfer HAR history, and back up the database. |
| Credential handling | Keep credentials locally usable for authenticated work without exposing them through routine inspection tools. |
| Bounded plugins | Add focused testing workflows while HuntProxy retains control of network access, credentials, limits, cancellation, History, and evidence. |
[!TIP] The cool part? You do not need to learn or explore every feature before you start. Just ask your agent to use HuntProxy MCP for the hunt. It can discover the available tools, choose what it needs, and keep the workflow moving.
💬 Example Prompts
Just describe what you want to investigate. HuntProxy keeps the browser, traffic, and results connected while your agent works.
Map the target:
Browse the application, then show me its sitemap, loaded JavaScript files, and
state-changing requests.
Review interesting traffic:
Show me the recent POST and PUT requests in project 1. Highlight
requests containing object IDs, roles, or permission-related parameters.
Replay a request:
Replay exchange 42 with the id changed from 123 to 124, then compare the new
response with the original.
Fuzz a parameter:
Fuzz the id parameter in exchange 42 with numbers 1 through 50. Group similar
responses and show me the results that differ from the baseline.
Inspect the JavaScript:
Analyze the JavaScript files loaded by this project and show me the API routes,
parameter names, and URLs that have not appeared in History yet.
Work inside the page:
In the open dashboard tab, read the app's client-side state, then list the
message event listeners on the page and inside its preview iframe.
Compare two accounts:
Store /tmp/member.json and /tmp/admin.json as cookie profiles named member and
admin in project 1. Start matching browser profiles with cookie_profile set to
the same names, then use their session IDs to compare the accounts. On later
starts, omit cookie_profile to resume each browser's latest saved state.
Test for request smuggling:
Use the Request Smuggler plugin on exchange 42. Generate a unique marker,
choose the most relevant techniques, and show me confirmed findings separately
from diagnostic signals.
Save a finding:
Mark exchange 42 as a finding, add a short description and reproduction steps,
and generate a cURL command.
Search Saved History
Pass a query in history_search's q argument. Keep each field, operator, and value together: status>=400, not status:>=400 or status >= 400.
| Query | Matches |
|---|---|
host:example.com method:GET status>=400 |
GET requests to this host with status 400 or higher |
path:~"monthly report" |
Paths containing the literal phrase |
request:~"monthly report" |
Request target, headers, or decoded body containing the phrase |
response:~"access denied" |
Response headers or decoded body containing the phrase |
query:~"page=2" |
URL query strings containing the text |
url:~/api/v2/ |
Full URLs (scheme, host, path, and query) containing the text |
(status:200 OR status:304) NOT path:~.js |
Either status, excluding paths containing .js |
time>2026-10-12T00:00:00Z time<=2026-10-13T00:00:00Z |
Exchanges within these timestamp bounds |
duration>=1000 response_size>1024 |
Duration of at least one second and response body larger than 1 KiB |
Each page of rows fits one tool result; pass the returned next as cursor for the following page. When a query with several terms matches nothing, no_match_terms names the terms that match nothing on their own.
Call overview with a project_id for exchange counts by source, captured replies sent, findings, distinct hosts, and the last exchange time.
💻 CLI Reference
MCP handles day-to-day hunting; the CLI handles setup, diagnostics, project maintenance and data transfer.
| Command | Purpose |
|---|---|
HuntProxy init |
Create the data directory, configuration, database, and local CA. |
HuntProxy serve |
Keep the local daemon, inspector, and capture proxy running manually. |
HuntProxy mcp |
Start the stdio MCP bridge and auto-start the daemon if needed. |
HuntProxy doctor |
Check paths, browser dependencies, daemon state, and recent startup diagnostics. |
HuntProxy status |
Show whether the daemon is running. |
HuntProxy stop |
Gracefully stop HuntProxy and its managed browsers. |
HuntProxy restart |
Restart or recover the daemon while preserving saved testing state. |
HuntProxy project … |
Create, list, rename, export, import, view usage, reconcile, or delete projects. |
HuntProxy har … |
Import or export HAR 1.2 HTTP history. |
HuntProxy backup <file> |
Create a consistent SQLite backup. |
HuntProxy history clear … |
Remove saved exchanges older than a chosen timestamp. |
HuntProxy browser cdp … |
Hand an active browser to Chrome DevTools or return it to the agent. |
CDP handoffs use the lowest available loopback port in 9222–9321. browser_cdp status accepts an optional session_id; without it, active_sessions lists the project’s handoffs. resources.cdp_port_in_use is true when no CDP port in the range is free.
Use HuntProxy --help or HuntProxy <command> --help for the complete command reference.
Project Maintenance Examples
HuntProxy project create demo https://example.com
HuntProxy project list
HuntProxy project rename 1 "Acme Portal"
HuntProxy project usage 1
HuntProxy project export 1 ./acme-project.huntproxy
HuntProxy project import ./acme-project.huntproxy
HuntProxy har export 1 ./acme-history.har
HuntProxy backup ./huntproxy-backup.sqlite3
Sanitized project exports are for sharing, not recovery: they omit credentials, bodies, replay state, and browser state. For the most complete export, add --include-secrets --include-chromium-profile and protect the result like credentials.
🧩 Plugins
HuntProxy plugins give the agent focused workflows for parameter discovery, authorization analysis, race conditions, request smuggling, cache behavior, JWTs, CSRF, uploads, bypasses, IP rotation, and more.
Explore the maintained collection or learn how to build your own in HuntProxy-Plugins.
🛡️ Don't Be Afraid of CAPTCHAs
How Can I Reduce CAPTCHAs and Bot Detection?
For browser runtime settings and manual installation, see Browser configuration.
For targets with untrusted or invalid TLS certificates, see the verify_upstream_tls setting. Certificate verification is enabled by default; changes require a restart.
CAPTCHAs and bot checks are common when hunting from a VPS because datacenter IP addresses are easier to recognize. Routing HuntProxy through a reputable residential proxy is usually the most effective fix.
Choose one configuration and add it to ~/.huntproxy/config.toml. Then run HuntProxy restart (or call huntproxy_restart from the connected agent) and verify with HuntProxy doctor.
For all traffic:
[upstream_proxies]
default = "http://127.0.0.1:8080"
With authentication:
[upstream_proxies]
default = "http://username:[email protected]:8080"
For selected HuntProxy projects only:
[upstream_proxies]
[[upstream_proxies.project_rules]]
project_id = 41
proxy = "socks5h://username:[email protected]:1080"
Project rules route all traffic for that project and take priority over host rules and the default.
For selected hosts only:
[upstream_proxies]
[[upstream_proxies.rules]]
host = "*.example.com"
proxy = "socks5h://username:[email protected]:1080"
[[upstream_proxies.rules]]
host = "api.example.org"
proxy = "http://127.0.0.1:8080"
*.example.com matches its subdomains, not example.com itself. Exact host rules take priority over wildcard rules.
To change a project's proxy without restarting, use the projects action set_upstream_proxy or PUT /api/v1/projects/{id}/upstream-proxy. Set proxy to a URL for an override, "direct" to bypass configured proxies, or null to inherit config.toml. New connections use the setting immediately.
What If the Agent Still Faces a CAPTCHA?
If a CAPTCHA still appears:
- Give the agent a logged-in session.
- Ask the agent to hand you the browser through CDP, solve the CAPTCHA yourself, then return control so it can continue.
🩺 Troubleshooting
Browser sandbox error on Ubuntu 24.04+
On Ubuntu 24.04 and newer, AppArmor can block the user namespaces Chromium's sandbox needs. To keep the sandbox enabled, allow the reported Chromium executable in an AppArmor profile, then load it with sudo apparmor_parser -r /etc/apparmor.d/huntproxy-chromium:
abi <abi/4.0>,
include <tunables/global>
profile huntproxy-chromium "/home/*/.huntproxy/runtime/playwright-core-*/.local-browsers/chromium-*/chrome-linux64/chrome" flags=(unconfined) {
userns,
}
Daemon did not become ready or something else looks wrong
Run HuntProxy doctor and check ~/.huntproxy/runtime/daemon-startup.log.
MCP tools look outdated after an update
Reconnect your MCP client.
💡 FAQ
Can HuntProxy replace Burp Suite for agent-driven testing?
HuntProxy is designed to be the primary web security workbench for an AI agent. It covers the capture, history, browser, replay, fuzzing, discovery, plugin, and evidence workflows agents need.
Which AI agents can use HuntProxy?
Any AI agent with MCP support on Linux or macOS.
Can I do bug hunting from my phone?
Yes. Run HuntProxy and your agent on a VPS, connect from your phone with Tailscale and SSH, and use tmux or Herdr to keep the session alive.
Do I need to keep HuntProxy running?
Not necessarily. HuntProxy mcp starts the daemon automatically. By default, an MCP-started daemon shuts down after one hour without MCP or UI control activity. While it runs, a project's browsers stop after 30 minutes without activity in that project, unless a call, a CDP handoff, or a Fuzzer or plugin job is still using them; browser_start resumes the saved profile. The next tool call automatically recovers an idle or unexpectedly terminated daemon. After an explicit huntproxy_stop, call huntproxy_restart on the same connection. Run HuntProxy serve when you want the workbench to stay active until explicitly stopped.
What survives between sessions?
Projects, captured traffic, findings, managed cookies, Reply and Fuzzer state, and every named Chromium profile's cookies and site storage are persisted locally. Starting a profile again resumes its saved workspace. Active browsers and running Fuzzer/plugin jobs are interrupted by a restart.
Where is my data stored?
By default, HuntProxy stores its database, configuration, browser profiles, CA, logs, plugins, and exports in ~/.huntproxy. Use --data-dir or HUNTPROXY_DATA_DIR to choose a different location.
How can I give the agent a logged-in session?
There are three common ways:
- Load existing cookies: Save a raw
Cookieheader value or browser-export JSON cookie array to a UTF-8 file and load it into the project for HTTP tools. To import it into a persistent browser, store a named cookie profile and explicitly start its matching browser withcookie_profileset to that name. Starting or restarting a browser withoutcookie_profilepreserves its own jar, including Google accounts, without importing project or named cookies. - Log in through the browser: Ask the agent to hand you the project's Chromium browser through CDP. Complete the login, CAPTCHA, or two-factor authentication yourself, then tell the agent to take control back and continue.
- Provide the credentials: Give the agent the username and password and ask it to sign in through the managed browser.
The cookie file must be on the same machine as HuntProxy and can be up to 4 MiB. A raw cookie file should contain only the value, for example sid=...; csrf=..., without the Cookie: prefix.
For apps that keep their tokens in browser storage, the file can instead be a session object, which is Playwright's storageState plus an optional per-origin sessionStorage:
{
"cookies": [],
"origins": [{
"origin": "https://app.example",
"localStorage": [{"name": "token", "value": "..."}],
"sessionStorage": [{"name": "csrf", "value": "..."}]
}]
}
cookies may be empty, and each origin must be an exact http(s) origin without a path. Storage requires a named profile (profile_name), because project cookies have no browser to seed. browser_start(cookie_profile=...) writes it on the main tab before the first navigation, without any request to the target, so the app's JavaScript sees the tokens on first load. Unchanged storage is not rewritten on later starts unless refresh_cookies=true, and cookies(action="list") reports only an origin count. sessionStorage is seeded on the main tab only; tabs opened later start without it. browser_cdp enable and disable relaunch the browser, and the saved sessionStorage is written back into each tab before control returns, so a helper that navigates a tab on about:blank to the app is still authenticated; a tab's own live values win for its origin. Credentials shared directly in a prompt pass through your AI client, so prefer a temporary or test account when possible.
Can the agent see my credentials?
Sensitive headers are redacted from ordinary inspection tools but remain available locally for authenticated browsing, replay, and fuzzing. Explicit reveals are audited. The copy_as tool includes sensitive headers by default so its output is runnable; set include_secrets: false for a redacted copy. Protect ~/.huntproxy, full exports, and backups because they can contain sensitive data.
Does HuntProxy send my data to the cloud?
HuntProxy has no HuntProxy-hosted cloud backend: project data is stored locally and its services listen on loopback by default. It still sends traffic to targets you direct it to, through any upstream proxy you configure, and IpRotate communicates with AWS when enabled. Your AI client and model provider may process content returned through MCP under their own privacy terms.
Does project scope stop out-of-scope requests?
No. Capture scope is not a general outbound allowlist: Proxy, Browser, Reply, and Fuzzer can send requests that are not saved to History. The built-in crawler and plugin host apply tighter scope checks, but you should still give the agent explicit authorization boundaries and monitor the hunt.
Can I take over the agent's browser?
Yes. Just ask your agent to hand you the browser. When you are done, ask it to take control back and continue.
🔄 Update & Uninstall
Update
Update HuntProxy to the latest release:
HuntProxy update
The updater keeps your projects and data and restores the previous installation if the update fails. It installs v0.2.0 and newer releases only; older releases are no longer supported.
HuntProxy backup copies only the SQLite database; for a full backup, stop HuntProxy and copy ~/.huntproxy and any configured external paths.
See update details and the release notes.
Uninstall
Stop HuntProxy and remove the executable:
HuntProxy stop
rm "$HOME/.local/bin/HuntProxy"
This keeps your projects and configuration in ~/.huntproxy.
🤝 Contribution
If you have suggestions, improvements, or new resources to add:
- Fork this repo
- Make your changes
- Submit a Pull Request
You can also open an Issue 🐛 if you spot something that needs fixing.
📬 Contact
If you want to contact me, you can reach me on X.
Explore projetos relacionados
Carregando…