Your AI agent fixed the bug, but what else did it change?
Trail of Bits released two agent plugins, patching-bugs and regression-hunt, that delegate bug reproduction, patch development and regression checking to AI agents. Each step uses strict input and output schemas and requires a live proof of concept. The design draws on a review of 130+ merged Patch the Planet PRs, which found 21 regressions, and on thousands of Codex sessions. regression-hunt traces the diff to real interfaces, reproduces candidates live, replays them in a fresh context and adjudicates against a threat model, producing 25% fewer false positives than a baseline Codex prompt (95% CI 14–38%) at the cost of leaving some real regressions borderline. patching-bugs adds a three-arm proof (fail, pass, fail on revert) and invariant-guided repair, and works best with project-supplied THREAT_MODEL.md and PATCHING_GUIDELINES.md files.
Related posts
- How we use /goal to find bugs in Patch the Planet
Trail of Bits mediumAdeptCodex's /goal mode works best for vulnerability hunting when the prompt defines a precise, calibrated outcome rather than a path, and when each agent pursues exactly one outcome. In Patch the Planet, Trail of Bits had Codex draft and red-team its own goals from THREAT_MODEL.md files and used agentcov to verify which code the model actually read. They split coverage and bug-finding into separate sessions, which worked far better on zlib. A Rust variant-analysis pipeline spawned one goal-mode agent per P-critical issue and filtered candidates through a security gate, a two-model false-positive check and human review, producing every Rust bug they submitted, including a soundness hole and a miscompilation fixed in Rust 1.98.
- 1Password's AI patching benchmark is misleading
Trail of Bits mediumAdeptTrail of Bits argues that 1Password's FLAWED benchmark headline of a 26% clean-fix rate for AI patching is misleading. The figure mixes in prompts that deliberately instruct the wrong fix (22% of the data) and no-testing modes (36%), on a handpicked set of six hard vulnerabilities, with grader disagreements and errors. Reanalyzing the published data, 86% of patches blocked the exploit when agents could run code and weren't misled. Trail of Bits contrasts this with its own data: developers' first fixes fail 12.5% of the time, and maintainers merged 67.7% of Patch the Planet PRs, 72.2% of those without security-relevant revision. It also releases post-patch-validation and review-walkthrough agent skills and proposes principles for sound patching benchmarks.
- How I hunt for vulnerabilities with AI
ClickHouse mediumAdept
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. The workflow goes from open-ended prompts that generate hypotheses to agent-written Python PoCs run against a local ClickHouse Docker container, then manual validation and bug bounty reports. Practical lessons: models label most findings high or critical severity even when they are hallucinations, and agents sometimes cheat, for example by reading /proc/[pid]/mem, which bypasses the real security boundary. Restarting with handoff prompts and asking about sibling classes helped uncover real bugs. Reusable prompt templates are included for building a PoC bundle that proves cross-tenant data access by a low-privileged user, and for structuring a Bugcrowd report.
- Introducing AutoPatchBench: A Benchmark for AI-Powered Security Fixes
Meta Engineering hardMasterAutoPatchBench 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.
- When AI Writes the Code, What Counts as Evidence?
Stack Overflow Blog easyNovice
Coding agents increasingly investigate and fix failures in private sessions, delivering patches while discarding the reasoning, failed attempts and environmental context that teams used to preserve as shared troubleshooting knowledge. A staged example shows an authorization acceptance test catching a case that lint, unit and integration checks missed: raising KeyError for unknown order IDs leaked existence, and the fix maps it to AccessDenied. The proposed direction is to capture failure facts and execution traces from agent sessions, search existing authorized knowledge before drafting sanitized questions, and keep human review to separate plausible guesses from verified fixes. Success should be measured by whether later agents and engineers resolve recurring failures faster, not by how many questions or answers get generated.