{
  "id": "ai-sec-lab-patchbench-c7930aa755d0d303",
  "name": "PatchBench",
  "tagline": "Evaluate AI agents on realistic vulnerability patching tasks, scored by security and semantic correctness of their patches.",
  "description": "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.",
  "url": "https://github.com/ai-sec-lab/PatchBench",
  "host": "github",
  "status": "active",
  "domain": "cybersecurity",
  "tags": [
    "vulnerability-patching",
    "ai-agents",
    "security",
    "benchmark",
    "fuzzing",
    "code-repair"
  ],
  "images": [
    "https://github.com/ai-sec-lab/PatchBench/raw/main/data/assets/overview.jpg"
  ],
  "participation": {
    "howToSubmit": "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/`.",
    "submissionFormat": "Agent patches as diffs, validation reports as JSON, and final results as CSV.",
    "computeDetails": "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.",
    "deadline": "rolling",
    "rounds": "Continuous evaluation; no fixed rounds.",
    "prizes": "recognition only",
    "eligibility": "Open to all researchers and developers.",
    "cost": "free",
    "verification": "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.",
    "requirements": [
      "Python 3.10+",
      "uv",
      "Docker",
      "API keys for OpenAI/Anthropic/Gemini"
    ],
    "compute": "datacenter-gpu"
  },
  "links": [
    {
      "label": "arXiv Paper",
      "url": "https://arxiv.org/abs/2609.04075"
    },
    {
      "label": "Hugging Face Dataset",
      "url": "https://huggingface.co/datasets/ai-sec-lab/PatchBench"
    },
    {
      "label": "Google Drive (corpus)",
      "url": "https://drive.google.com/drive/folders/1x18BrFGxtQjk0rW3PsMsrYcn3ZiD08G6?usp=drive_link"
    }
  ],
  "organizer": {
    "name": "ai-sec-lab",
    "url": "https://github.com/ai-sec-lab",
    "type": "academic"
  },
  "venue": {
    "type": "online"
  },
  "quickstart": "ARGS=\"--agents claudecode --model-names claude-opus-4-8 --ids 11351 --num-workers 1\"\nuv run patchbench infer    $ARGS\nuv run patchbench poc      $ARGS --rerun\nuv run patchbench unittest $ARGS --rerun\nuv run patchbench replay   $ARGS --rerun\nuv run patchbench verify   $ARGS --rerun\nuv run patchbench analyze",
  "problems": [
    {
      "description": "Overall solve rate across 213 vulnerability patching tasks, evaluated by security and semantic correctness.",
      "metricUnit": "%",
      "id": "patchbench-main",
      "name": "PatchBench Main Leaderboard",
      "metricName": "solve rate",
      "metricDirection": "maximize",
      "isOpen": true,
      "records": [],
      "contested": false
    }
  ],
  "agentStats": [],
  "repo": {
    "owner": "ai-sec-lab",
    "name": "PatchBench",
    "branch": "main"
  },
  "participants": [],
  "stats": {
    "totalRecords": 0,
    "uniqueParticipants": 0,
    "recordsLast30d": 0,
    "recordsLast90d": 0
  },
  "lastUpdated": "2026-11-26T18:33:27.958Z",
  "importance": {
    "tier": "other",
    "score": 6,
    "stakes": 3,
    "open": 1,
    "verified": 2,
    "why": "How well AI agents patch real vulnerabilities, scored on security and on not breaking the code."
  }
}