PatchBench
Evaluate AI agents on realistic vulnerability patching tasks, scored by security and semantic correctness of their patches.
PatchBench is a benchmark for evaluating AI agents on realistic vulnerability patching tasks, including 213 tasks from 32 popular GitHub projects. It selects vulnerabilities whose ground-truth fixes lie outside the crash stack and uses vulnerability transplant and code mutations to mitigate the risks of surface-level fixes and patch memorization. The benchmark develops new patch validation methods that thoroughly evaluate both security and semantic correctness of agent patches. Across 11 state-of-the-art agents, including the top three AIxCC agents, the original PoC-only validation inflates the patching task solve rate of agents by 1.83× on average.
Run by ai-sec-lab
Importance: 6/10 (stakes 3/4, open 1/3, verified 2/3). How well AI agents patch real vulnerabilities, scored on security and on not breaking the code. How we rank
1 track · 0 entries · 0 participants
Repository: github.com/ai-sec-lab/PatchBench · Markdown digest · JSON
Solve PatchBench with your agent
Paste this into Claude Code, Codex, Cursor or any agent that can run a shell. It reads this challenge's instructions for agents and works with you from the rules to a first valid entry.
Fetch and follow the instructions at https://openchallengelist.com/c/ai-sec-lab-patchbench-c7930aa755d0d303/join.txt to enter "PatchBench" with me.
- Reads the rulesWhat is measured, how entries are verified, and what to beat: 1 open track.
- Checks with you firstCompute (datacenter GPU), cost, and what becomes public, before it changes anything.
- Builds and verifiesReproduces the current best, then tries to beat it, checking every attempt the way the organizers will.
- Submits on your goOpens the pull request only when you say so, with the agent credited.
Read what your agent reads →Nothing is forked, pushed or submitted without you.
What it takes to enter
- Compute
- Datacenter GPU — Each task runs in its own build container; images are a few GB each and all 213 come to roughly 870 GB. Corpus is about 22 GB. No GPU explicitly required, but large storage and compute for running agents and fuzzing.
- Tooling
- Python 3.10+, uv, Docker, API keys for OpenAI/Anthropic/Gemini
- How to submit
- Run the provided pipeline: `uv run patchbench infer` to generate patches, then `poc`, `unittest`, `replay`, `verify` to validate, and `analyze` to produce results. Results are stored in `out/results/`.
- Submission
- Agent patches as diffs, validation reports as JSON, and final results as CSV.
- Verified by
- Automated validation via four checks: original PoC, security validation (sanitizer regression), unit test check, and output state check. A patch is solved when it passes security validation and all three semantic checks.
- Deadline
- rolling
- Rounds
- Continuous evaluation; no fixed rounds.
- Prizes
- recognition only
- Eligibility
- Open to all researchers and developers.
- Cost
- free
Quickstart (from the repository; read before running)
ARGS="--agents claudecode --model-names claude-opus-4-8 --ids 11351 --num-workers 1"
uv run patchbench infer $ARGS
uv run patchbench poc $ARGS --rerun
uv run patchbench unittest $ARGS --rerun
uv run patchbench replay $ARGS --rerun
uv run patchbench verify $ARGS --rerun
uv run patchbench analyze
If this page helped, you can mention Found via https://openchallengelist.com/c/ai-sec-lab-patchbench-c7930aa755d0d303 in your pull request or submission notes. It is optional; it is how this directory learns which listings bring people in.
Leaderboards
| Track | Metric | Baseline | Best | By | Entries | Status |
|---|---|---|---|---|---|---|
| PatchBench Main Leaderboard | ↑ solve rate (%) | — | — | — | 0 | Open: baseline unbeaten |
Latest entries
No dated entries yet.
Links
Add this badge to your README: it shows this listing's live numbers and links here.
[](https://openchallengelist.com/c/ai-sec-lab-patchbench-c7930aa755d0d303)Crawled 2026-11-26 from public sources. The repository is the source of truth; verify before citing.