---
title: "Introducing AutoPatchBench: A Benchmark for AI-Powered Security Fixes"
description: "AutoPatchBench is a benchmark of 136 fuzzing-found C/C++ vulnerabilities from real projects, curated from the ARVO/OSS-Fuzz dataset, for evaluating AI program repair agents."
url: "https://swe.quest/articles/introducing-autopatchbench-a-benchmark-for-ai-powered-security-fixes-f107d000a04ddc7d"
canonical: "https://engineering.fb.com/2025/04/29/ai-research/autopatchbench-benchmark-ai-powered-security-fixes/"
source: "Meta Engineering"
published: "2025-04-29"
difficulty: "hard"
kind: "Research"
reading_minutes: 17
tags: ["evals","vulnerability-research","ai-coding","c-cpp","testing"]
---

# Introducing AutoPatchBench: A Benchmark for AI-Powered Security Fixes

A post on [Meta Engineering](https://swe.quest/sources/meta.md), published 2025-04-29, 17 min read, Research. Original: [https://engineering.fb.com/2025/04/29/ai-research/autopatchbench-benchmark-ai-powered-security-fixes/](https://engineering.fb.com/2025/04/29/ai-research/autopatchbench-benchmark-ai-powered-security-fixes/)

## Summary

AutoPatchBench is a benchmark of 136 fuzzing-found C/C++ vulnerabilities from real projects, curated from the ARVO/OSS-Fuzz dataset, for evaluating AI program repair agents. It is part of Meta's CyberSecEval 4 suite. Samples were kept only if they had reproducible crashes, valid stack traces, building vulnerable and fixed containers, and ground-truth patches that survive further fuzzing. A 113-sample Lite subset covers bugs whose root cause sits in a single function. Generated patches are checked by rebuilding, re-running the crashing input, fuzzing again, and LLDB-based white-box differential testing that compares program state against the ground-truth fix at the lowest common ancestor of the patched call stacks, with heuristics to handle nondeterminism and timeouts.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Evaluation](https://swe.quest/tags/evals.md) (AI & ML)
- [Vulnerability research](https://swe.quest/tags/vulnerability-research.md) (Security)
- [AI for coding](https://swe.quest/tags/ai-coding.md) (AI & ML)
- [C & C++](https://swe.quest/tags/c-cpp.md) (Languages)
- [Testing](https://swe.quest/tags/testing.md) (Engineering practices)

## Prerequisites

- fuzzing basics ([easy posts on Vulnerability research](https://swe.quest/tags/vulnerability-research.md?difficulty=easy))
- C/C++ memory bugs ([easy posts on C & C++](https://swe.quest/tags/c-cpp.md?difficulty=easy))
- LLM-based code generation ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))

## Keywords

AutoPatchBench, CyberSecEval 4, ARVO, OSS-Fuzz, LLDB, SWE-Bench, GITS-Eval

## Related posts

- [GPT-5.5-Cyber built a zlib fuzzing lab in a day](https://swe.quest/articles/gpt-5-5-cyber-built-a-zlib-fuzzing-lab-in-a-day-34216d52ce035220.md): Trail of Bits · 2026-07-02 · Medium · 5 min read · Vulnerability research, AI agents, Testing, Open source, C & C++
  GPT-5.5-Cyber, driven through Codex's /goal command, independently chose dynamic testing over static review of heavily audited zlib and built a full fuzzing campaign in a day.
- [1Password's AI patching benchmark is misleading](https://swe.quest/articles/1password-s-ai-patching-benchmark-is-misleading-fef916b39e218263.md): Trail of Bits · 2026-09-15 · Medium · 11 min read · Evaluation, AI for coding, Vulnerability research, Open source, AI agents
  Trail of Bits argues that 1Password's FLAWED benchmark headline of a 26% clean-fix rate for AI patching is misleading.
- [Behind the Scenes Hardening Firefox with Claude Mythos Preview](https://swe.quest/articles/behind-the-scenes-hardening-firefox-with-claude-mythos-preview-5cd30e8aafae42d9.md): Mozilla Hacks · 2026-05-07 · Medium · 11 min read · Vulnerability research, AI agents, Browsers, LLMs
  Mozilla fixed 271 latent security bugs in Firefox 150 found by Claude Mythos Preview, and 423 security bugs overall in April, using an agentic harness built on its existing fuzzing infrastructure.
- [Your AI agent fixed the bug, but what else did it change?](https://swe.quest/articles/your-ai-agent-fixed-the-bug-but-what-else-did-it-change-4b4967c8420473e1.md): Trail of Bits · 2026-10-21 · Medium · 8 min read · AI agents, AI for coding, Security, Testing, Open source
  Trail of Bits released two agent plugins, patching-bugs and regression-hunt, that delegate bug reproduction, patch development and regression checking to AI agents.
- [How I hunt for vulnerabilities with AI](https://swe.quest/articles/how-i-hunt-for-vulnerabilities-with-ai-3d82bb1020f483da.md): ClickHouse · 2026-06-26 · Medium · 23 min read · Vulnerability research, AI agents, AI for coding, C & C++
  AI coding agents (GitHub Copilot in agent mode with Claude Opus and Gemini, later Claude and ChatGPT) can drive vulnerability research in a large C++ codebase like ClickHouse.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
