nealbridges/VulnHunter
Agentic AI security scanner that hunts exploitable vulnerabilities like an adversary, proves them with executable PoCs, and fixes them test-first. A maintained fork of Capital One's VulnHunter, rebuilt for any agent harness.
VulnHunter — What It Is
VulnHunter is an open-source AI security tool that analyzes source code the way an attacker would. Instead of just flagging suspicious code patterns (which often produces false alarms), it tries to actually exploit potential weaknesses to see if they're real. It then proposes fixes backed by evidence.
This project is a maintained fork of Capital One's original VulnHunter. The fork's main goals are:
- Run on any AI agent harness (not just one specific tool).
- Validate exploits in sandboxed containers (Docker) rather than just static analysis.
- Measure the real impact of a vulnerability (e.g., how many rows leaked, how many requests amplified) instead of just describing it.
Why It's Different
- Attacker-first thinking: Starts from entry points (APIs, file uploads) and reasons forward to see if an attacker can actually break in.
- Falsification engine: After finding a potential issue, it actively tries to disprove it — looking for assumptions that don't hold or security controls that block the attack. Only findings that survive this challenge are reported.
- Proof-of-concept required: Every confirmed finding must come with an executable proof-of-concept (PoC). If a PoC can't be made, the finding is labeled as unproven.
- Measured impact: The PoC must show concrete numbers (e.g., "3,000 rows exposed") rather than just saying "data leak possible."
The Closed Loop: Hunt → Fix → Verify
VulnHunter ships as three composable skills that form an automated remediation cycle:
/vulnhunt— Hunt: Scans code, maps entry points to dangerous functions, filters through a multi-stage falsification pipeline, and outputs only verified issues with an exploit and a proposed fix./vulnhunter-fix— Fix: Developer-led, test-driven remediation. It writes an exploit demo, creates a failing security test (RED), implements the fix (GREEN), verifies the exploit is blocked, and creates a pull request./vulnhunt-fix-verify— Verify: A separate, read-only agent that independently checks whether a fix actually worked. It gives a per-finding verdict.
Repository Components
| Path | Purpose |
|---|---|
vulnhunt/ |
Core scanner skill (prompt-only) |
vulnhunter-fix/ |
Fix skill + Python helpers |
vulnhunt-fix-verify/ |
Verification skill (prompt-only) |
vulnhunter-agent/ |
Headless runtime for CI/CD – runs scans and files GitHub issues |
harness/ |
Developer tooling for batch scanning and benchmarking |
vh/ |
A deterministic command-line tool that handles mechanical steps around a single scan (clone, find results, write manifest) |
Installation & Requirements
Prerequisites:
- An AI agent harness (e.g., Claude Code, omp, Codex) with access to a capable reasoning model. You supply your own model access.
- Python 3.12+ (only needed for the runtime agent and benchmarking).
- You must be authorized to scan the code you're analyzing.
Install:
git clone https://github.com/nealbridges/VulnHunter.git
cd VulnHunter
./install.sh # or .\install.cmd on Windows
The installer copies skill files into your harness's directories. It does not guess where those are — you must set environment variables like VULNHUNT_SKILLS_DIR or rely on GROK_HOME if set. It fails loudly if the location isn't clear.
Usage
- Scan: Invoke
/vulnhuntin your harness session. - Fix: Invoke
/vulnhunter-fix(requiresgit, GitHub CLI, and Python helpers installed). - Verify: Invoke
/vulnhunt-fix-verifywith arguments likerepo=<path> report=<path> fixed=VULN-001,... out=<path>.
Automation & Scale
- Headless runtime agent (
vulnhunter-agent/): For non-interactive or CI/CD use. It clones targets, runs/vulnhunt, publishes results, and opens GitHub issues. - Local harness (
harness/): For batch scanning many repositories and benchmarking detection accuracy against a known-vulnerable corpus. - Operator CLI (
vh/): A model-free tool that sequences the mechanical steps of a single scan (clone, find results, write/validate manifest).
Testing
Each Python component has its own test suite. Run with pytest as shown in the README.
Important Notes
- Dual-use caution: This tool performs vulnerability discovery and exploitation. Most commercial AI models have guardrails that may limit aggressive exploitation behavior. The project was developed using open-weight, community-provided models that are less restricted. Use only on code you own or are authorized to audit.
- Model requirement: A capable reasoning model is essential. The methodology works with any strong model, but the best results come from the most capable one your harness offers.
The Numbers Behind the Fork
The README reports benchmark results from six scans of the same production Go service:
- 14× spread in confirmed findings across runs — showing the need for more deterministic execution.
- 42/42 confirmed findings had executable exploit tests, all passing.
- 55% of candidate findings were eliminated or downgraded by the adversarial verification pass.
- 315 attacker-controlled inputs were inventoried in a single scan.
- 20/20 adversarial payloads executed against a live server in one run.
These numbers illustrate why the fork focuses on making exploit validation sandboxed and impact-measured.
This explanation is based solely on the provided README. No external features or facts were added.
Related
- Project
- Project
- Project
- Project
- Project