Trail of Bits Unveils AI Plugins for Automated Patch Development and Regression Testing
Trail of Bits has released two AI-powered plugins, patching-bugs and regression-hunt, designed to automate the creation and verification of security patches for open-source projects.

Trail of Bits has introduced two new plugins, patching-bugs and regression-hunt, aimed at revolutionizing the process of developing and testing security patches for open-source software. Developed in collaboration with OpenAI as part of their "Patch the Planet" initiative, these tools leverage AI to automate critical aspects of the patching workflow, from bug reproduction to regression analysis.
The patching-bugs plugin is designed to take a reported bug, engineer an environment to reproduce it, develop a fix, and then test that fix. This significantly reduces the manual effort required from developers and maintainers. Complementing this, the regression-hunt plugin focuses on verifying that the applied patches do not introduce new defects or break existing, previously functional behavior. This dual approach addresses both the creation of fixes and the assurance of stability.
These plugins are built upon extensive analysis of merged patches and thousands of AI coding sessions. Trail of Bits emphasizes that maintainers can guide the AI agents by supplying specific security assumptions and patching requirements, ensuring that the automated fixes adhere to project-specific rules and best practices. This structured workflow aims to improve overall patching hygiene and increase the signal-to-noise ratio in bug disclosures, a growing challenge in the current landscape of rapid vulnerability reporting.
In preliminary evaluations, the regression-hunt plugin demonstrated a notable improvement over baseline AI agents. It reportedly produced 25% fewer false-positive findings when tasked with identifying regressions compared to a standard Codex agent prompted for general regression review. This enhanced precision is crucial for efficiently managing security updates and reducing the burden on human reviewers.
The development was spurred by observations of regressions introduced in some of their own "Patch the Planet" efforts. A review of over 130 merged pull requests identified 21 regressions (16 functional, 1 performance, and 4 build/test), none of which compromised security protections. The manual review process for these candidates was described as noisy, with a precision of around 36%, highlighting the need for more standardized and efficient detection methods.
To address this, Trail of Bits established four core principles for plugin design: opinionated guidance with minimal input, modular steps for flexibility, strict input/output schemas for consistency, and a live proof-of-concept for every claim. The regression-hunt plugin, for instance, traces code changes through to interfaces, reproduces candidates on live deployments, and uses a fresh-context agent to validate results against defined regression criteria, incorporating threat models where available.
By standardizing both patch creation and regression checking, these plugins aim to make the entire patching process more repeatable and comparable. The feedback loop, incorporating agent trajectories and past failures, continuously refines the AI's ability to generate and validate patches, ultimately contributing to a more secure open-source ecosystem.