# Capital One’s VulnHunter: From Source Code to Live Testing · Rob Hunter

Source: https://robhunterworks.com/writing/vulnhunter-crapi/
Author: Rob Hunter
Published: 2026-10-27
Updated: 2026-11-20

One AI security tool, one controlled target. What the tool carried, what I had to supply, and what a person still had to check.

## What I tested

An AI agent can read a repository. The harder question begins when that understanding has to leave the code.

I run a penetration-testing practice, and I keep asking what happens to it when agents explore more paths than people can check. [Capital One's VulnHunter](https://github.com/capitalone/vulnhunter) was the most complete open-source attempt I'd seen at carrying an agent from source code into live testing, and Capital One released it under the Apache 2.0 license for anyone to run and question. It's *agentic*: it plans and carries out connected steps, uses tools, inspects what happened and adjusts. I ran it once, from an approved source revision, against a pinned local deployment of [OWASP crAPI](https://github.com/OWASP/crAPI), the Completely Ridiculous API, an intentionally vulnerable application from the Open Worldwide Application Security Project, built for API security practice. My rule for the run: machine output stays candidate material until a named human reviews it.

The caveat that matters most comes first: the example I'll walk through, an authorization flaw, is one of crAPI's documented challenges, and public crAPI solution material was readable during the run. It shows reproduction of a known flaw, not discovery.

**Where I've landed: the agent carried real work from code into a live application, but its output becomes findings only as fast as people can check it.**

## Source understanding reached a live target

The first half is the easier one to show. VulnHunter's Hunt workflow started from the pinned crAPI source. It mapped exposed entry points, traced attacker-controlled data toward sensitive operations, formed hypotheses and had focused subagents challenge weak ideas before packaging what survived.

Then the work left the code. Generated tests registered fresh crAPI users, logged in through the application's own API, obtained JSON Web Tokens and exercised the live local target, with no preloaded accounts behind the selected examples. My read, within the limits below: for a source-led application and API test, VulnHunter carried a material part of the path from code analysis into live authenticated testing.

**A test that builds its own accounts and sessions gives the next reviewer something to rerun; a note that a path looks reachable leaves them to prove it by hand.**

## A reproduced behavior isn't a finding yet

The review set held **46 candidate packages**, each a lead with a hypothesis, code path, proof material and machine test state, not a confirmed finding. Generated tests observed the predicted behavior for **39**; **7** remained conditional.

That example was **Broken Object Level Authorization (BOLA)**: the application confirms that a user is logged in but not that the user owns the specific record named in the request. It works like a coat check that accepts any genuine ticket and hands over whichever coat number you call out. The retained test confirmed that one account could see location data belonging to a different account. As I said up top, that's a documented crAPI challenge: the start of a finding, not the whole thing.

Before reading on, try calling it yourself. On a deliberately vulnerable lab target, is that a valid finding, and at what severity?

The package had the technical parts: endpoint, request shape, source location, classification, proof-of-concept material and a runnable test. The record didn't yet name a reviewer or settle the business impact, Common Vulnerability Scoring System (CVSS) score, asset owner, ticket routing, approved fix or validation plan, and its proof was split across a proof document, a test and a shared helper instead of one intake record.

Each blank is work someone in the program would still owe. Without a named reviewer, nobody has vouched for the result; without impact or severity, nobody can set a fix deadline or a place in the backlog; without an owner or routing, even an accepted finding has nowhere to go; and three files mean assembling before judging. In a real program, that cost would ride on every package that arrived this way. **The expensive part of a finding is everything still blank when the agent hands it over: who vouched for it, what it means to the business, how urgent it is and who owns the fix.**

## Keep the tool, the harness and the person apart

Those blanks are easy to miss when the tool, the harness and the person blur together. In this run all three could be called "the harness": VulnHunter analyzed, a custom experiment harness controlled and recorded, and a human decided what the evidence meant. (VulnHunter's repository has its own batch and benchmark harness; I didn't use it here.)

The separation keeps the numbers honest. Read the tool's test state as the verdict and "39 observed" could become 39 findings in someone's report, though no person had accepted or rejected any of them. An airport scanner's beep isn't a search; someone still opens the bag. **Never let machine state stand in for a human decision; the record should show which layer said what.**

## More candidates move the queue, not the work

The run didn't make manual penetration testing irrelevant; it made the handoff easier to see. VulnHunter suited fast, repeatable work close to the source: mapping the application, tracing many candidate paths, generating tests and preserving material for review. A human tester still owned the judgment across systems and organizations: whether the scenario matters and is realistic, how attacks chain, what the business impact is, whether the evidence clears the finding bar and what deserves priority.

Bringing a tool like this into a practice, I wouldn't start with the agent. I'd start with the room it has to fit into: how many validated findings the team can realistically review, what a candidate must contain before a tester will look at it, and where an accepted finding goes next. Whatever the room can't hold piles up at the door. If [human validation remains the narrowest point](/writing/when-the-machine-finds-more/), an agent that triples candidate volume into a practice with no added validation capacity has moved the queue, not the work. **Size the review capacity before the agent: the hard questions are about staffing, intake and ownership as much as models.**

## What an enterprise proof of concept would need to show

This run showed a tool capability and an experiment system, not an enterprise integration. Before a system like this works inside a program, it would help to know whether it can:

1. accept an approved source revision, running target, rules of engagement, test identities, and explicit time and cost limits;
2. execute inside a controlled boundary with observable startup, health, progress, refusal, and teardown behavior;
3. normalize tool output into a review record with enough evidence, context, and lineage for efficient human triage;
4. keep machine state separate from named-human disposition;
5. route accepted work into the organization's existing vulnerability-management system rather than creating a competing queue;
6. support remediation and independent retest without allowing the testing authority to change production or close its own findings; and
7. measure reviewer effort, repeatability, integration burden, and total operating cost, not merely how many candidates the agent can generate.

That's where the investment decision gets real. A fast, capable tool can still be expensive to use, because every package that arrives with the blanks above is review time the team pays for. A narrower one may fit the intake, review, remediation and audit path better. A mixed approach may win. **Judge a tool like this by the full cost of turning its output into owned findings, not by how many candidates it produces.**

## What the repository gives the field

This run tested one slice of a much larger repository, which Capital One released on the view that application security at this scale is not a challenge one organization will solve alone. Several of its design choices are worth borrowing whatever a program decides about the tool: start from an attacker's path through the code, not a checklist; have a separate phase try to disprove weak hypotheses; keep phase outputs as files another process can inspect; keep verification nonmutating and apart from the fix it checks; expose a stable scan manifest for downstream systems; and never report a failed agent run as a clean bill of health. That deserves credit. **The one I'd take first: unknown coverage should remain unknown, because a failed run reported as clean would tell a program something was tested when it wasn't.**

## The honest limit

This is one independent field study: one controlled Hunt against pinned crAPI source and a live local target, and not blind. VulnHunter's Fix and Verify workflows didn't run. The 39/7 counts are machine-test states with no locked ground truth, so they aren't an accuracy or false-positive rate. Human disposition wasn't completed. Nothing here establishes repeatability, production readiness, net labor saved, enterprise integration or what the tool can do without source. It isn't a product comparison or a claim of superiority, and none of the tools, products or projects named here sponsored, reviewed or approved this piece.

The [public field-study companion](https://github.com/robhunter-labs/vulnhunter-crapi-field-study) opens the actual experiment-control source, architecture diagrams, method and runnable review-boundary tests. The historical engine and controller are provided for inspection and adaptation, not as a one-command reproduction of the private run.

## Next credible question

*What would you need to see before writing up a reproduced BOLA as a finding, and at what severity?*

I'd like to hear how you'd call it, and, if you've run VulnHunter or a tool like it against your own targets, what held and what didn't. [Write to me](mailto:hello@robhunterworks.com).

---

## Appendix: notes on the sources

**The tool.** Capital One's [VulnHunter repository](https://github.com/capitalone/vulnhunter) is the source for the Hunt workflow, its disprove phase, the separate Fix and Verify workflows and the Apache 2.0 license. The run used one approved source revision, and the repository may have changed since, so check the current code before relying on a detail here.

**The target.** [OWASP crAPI](https://github.com/OWASP/crAPI) is the intentionally vulnerable API the run was pointed at. The challenge list in that repository names "Access details of another user's vehicle" as its first BOLA challenge, which is why the walk-through counts as reproduction, not discovery.

**The run.** The [public field-study companion](https://github.com/robhunter-labs/vulnhunter-crapi-field-study) holds the experiment-control source, method and review-boundary tests. The 46, 39 and 7 counts are machine-test states, as the honest limit says.

*Revised November 20, 2026: shortened and reorganized around its lessons, with the study's limits gathered into one section, and a notes appendix was added. No finding or figure changed.*
