OpenHack turns whitebox security review into a checkpointed agent workflow
Lightweight, file-based workspace for source-guided whitebox security review.
At a glance
- What is it?
- Hadrian open-sourced the file-based workspace its research team uses for source-guided vulnerability review: recon feeds a router that scopes testing scenarios, expert agents prove or reject each one, and an independent triage stage decides what becomes a finding.
- Who is it for?
- OpenHack is a template for how AI-assisted security work should be structured: durable state in plain files, a narrow validated chain from recon item to final finding, expert verification separated from independent triage, and a human approving every phase transition. By running inside existing harnesses rather than shipping another autonomous agent, Hadrian turned its internal review methodology into something a team can adopt, inspect, and cost-control.
- Can I use it commercially?
- Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository last received commits 177 days ago.
- What is it written in?
- Mainly Python, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.
Star history
- hadriansecurity/OpenHack755 ★ · +13
| Repository | 2026-09-21 | 2026-11-25 |
|---|---|---|
| hadriansecurity/OpenHack | 742 | 755 |
13 Stars in the last 65 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
A workspace, not another scanner
Security tooling for AI agents tends to promise autonomous hacking, and most of it delivers unreliable autonomy. OpenHack from Hadrian Security takes a different position: it is a lightweight, file-based workspace for source-guided whitebox review, packaging the methodology the Hadrian research team uses for automated vulnerability research so it can run inside a common model harness such as Claude Code, Codex, Cursor, or a custom runner.
The division of labor is explicit. The harness provides model execution, terminal access, repository access, and human-in-the-loop approval. OpenHack provides the durable workflow and the review artifacts: the cloned source, recon items, scenario prompts, scenario results, finding candidates, triage decisions, findings, and logs, all kept as plain files. Nothing important lives inside a model context window, which means a review can be paused, inspected, resumed, or handed to another person or another model at any checkpoint.
Checkpointed, scenario-first review
The core idea is checkpointed, scenario-first review. Reconnaissance discovers attack surfaces, a router agent turns those surfaces into scoped testing scenarios, expert agents attempt to prove or reject each scenario, and an independent triage agent decides which verified candidates become final findings. The human approves every phase transition, so the system never rolls from recon to exploitation without a person in the loop.
That structure attacks the two failure modes of agent-driven security work. First, scope creep: because scenarios are scoped and individually approved, the agent cannot wander across a codebase on its own initiative. Second, false confidence: because verification and triage are separated from discovery, a finding has to survive two independent review stages before it lands in the report. The workflow reads less like an exploit framework and more like a peer-review pipeline with adversarial participants.
The durable chain
Every artifact in a run connects into one narrow chain: recon item, then routing unit, then scenario, then scenario result, then finding candidate, then triage decision, then finding. Each command advances the run to the next durable state, an agent answers the exact prompt for that state, and the next recorder command validates the answer before any new work is created. State is only ever written through validated recorder steps, not by free-form agent output.
The chain widens only where evidence demands it. One routing unit may fan out to several experts, one scenario may emit several finding candidates, and each candidate receives its own independent triage decision. Because the whole chain is files on disk, the state at any moment is auditable: you can diff two runs, count scenarios by category, or extract the exact prompt that produced a finding. For teams that need to justify why something was reported or why something was not, that audit trail is the point.
Running a review
The intended entry point is conversational. Open the repository in a coding harness and ask it to initiate a whitebox pentest against a target repository URL; the harness follows the AGENTS.md file to initialize a run, summarize each checkpoint, and ask before moving on. For direct control, an editable install exposes the CLI, and each command prints a checkpoint summary plus the next command to run:
# Create a run from a fresh git checkout
openhack init-run demo https://github.com/example/app.git --run-id demo-001
# Choose expert scope, then run reconnaissance
openhack run-recon demo demo-001 --all-agents
# Or scope the run to selected experts
openhack run-recon demo demo-001 \
--expert injection \
--expert broken-access-control
# Optional: enrich recon with bundled Semgrep rules
openhack run-recon demo demo-001 --all-agents --semgrep
# Generate the scenario backlog from routing units in one approved routing phase
openhack create-scenarios demo demo-001
# After the router answers the prompt, record the selected backlog
openhack record-scenario-backlog demo demo-001 router-result.json
# Render a scenario prompt for an expert agent
openhack render-scenario-prompt demo demo-001 S001
# Record an expert's verified result (materializes finding-candidates/)
openhack record-scenario-result demo demo-001 S001 result.json
# Render and record independent triage before final findings are created
openhack render-finding-triage-prompt demo demo-001 S001-F001
openhack record-finding-triage demo demo-001 S001-F001 triage-result.json
# Resume or hand off: prints current counts + next checkpoint
openhack summarize-run demo demo-001Resuming a run, or handing it off, starts with summarize-run, which prints current counts and the next checkpoint command without executing anything.
Cost control is part of the design
The README carries an unusual warning at the top: running OpenHack against an entire codebase with the full expert scope can use a lot of model tokens. The project treats that as a design input rather than a footnote. Cheaper models can run the workflow, though frontier models produce the best results, and the recommended cost lever is review: after the router produces the scenario backlog, a human reads the generated testing scenarios and runs only the ones worth prioritizing.
That fits the checkpointed philosophy. Because every phase pauses for approval anyway, the expensive expert phases are naturally gated behind a human decision about where the risk actually is. A team can run full recon cheaply, spend serious tokens on the three scenarios that matter for their codebase, and skip the rest. The alternative, one giant autonomous sweep, would either burn budget indiscriminately or produce shallow coverage, and OpenHack chooses neither.
Install model and versioning
OpenHack is distributed as a workspace-first repository rather than a pip package to drop into any environment. The root-level agents, config, and templates directories plus a writable runs directory are runtime data, so the supported install model is a cloned checkout with an editable install through pip. If the CLI is invoked from outside the checkout, the OPENHACK_ROOT environment variable points at the repository root.
Versioning follows a simple rule: the version in pyproject.toml is the package source of truth, GitHub releases are tagged with the same version in vX.Y.Z format, and the installed CLI reports its version with a flag. The current release is v0.1.0, which combined with the MIT license makes the project easy to evaluate: clone it, read the AGENTS.md and the templates, run it against a repository you are authorized to test, and decide whether the checkpointed methodology fits how your team reviews code.
Editorial conclusion
OpenHack is a template for how AI-assisted security work should be structured: durable state in plain files, a narrow validated chain from recon item to final finding, expert verification separated from independent triage, and a human approving every phase transition. By running inside existing harnesses rather than shipping another autonomous agent, Hadrian turned its internal review methodology into something a team can adopt, inspect, and cost-control. For source-guided whitebox review where the audit trail matters as much as the findings, it is one of the most considered open approaches available.
Frequently asked questions
What is OpenHack?
OpenHack is Hadrian Security's open-source workspace for source-guided whitebox security review. It packages the team's automated vulnerability research methodology as a set of agents, tools, and plain-file artifacts that run inside model harnesses like Claude Code, Codex, or Cursor, with recon, scenario routing, expert verification, and independent triage as checkpointed phases.
Is OpenHack safe to run on your own code?
The workflow is built around human control: every phase transition requires approval, scenarios are individually scoped, and all state lives in reviewable files. It is intended for codebases you are authorized to test, and the checkpoint design means you always see what the agents plan to examine before any expert phase runs.
Does OpenHack replace manual penetration testing?
No. It structures and accelerates the source-review portion of security work by proposing scoped scenarios and verifying them with expert agents, but a human approves every phase, reviews the scenario backlog, and makes the final triage decisions. Think of it as a disciplined assistant for whitebox review rather than an autonomous tester.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/hadriansecurity-openhack)Star history chart for your README
[](https://hysenlabs.com/projects/hadriansecurity-openhack)Was this useful?