News Security

Google Open-Sources Mantis Bug-Finding and Patching Harness

Google open-sourced Mantis, an AI harness that finds, triages, reproduces, and patches software vulnerabilities automatically.

Google Cloud has open-sourced Mantis, an AI-powered harness designed to automate the discovery, triage, reproduction, and patching of software vulnerabilities at what the company calls machine speed. Detailed in a Google Cloud blog post by security engineers Nick Galloway and Yulong Zhang, Mantis is framed as part of Google's internal strategy for using agentic AI to defend codebases rather than just attack them.

The tool also mines a repository's commit history to learn from past security fixes and builds its own architectural and threat-model documentation, condensing files into a hierarchical security summary tree that Google says cuts token overhead by more than 85% while retaining structural context across large codebases.

Mantis is available now on GitHub, and Google's post describes starting it by cloning the repository and pointing a coding agent at a target codebase with a simple setup prompt, the same approach the company says it has used internally to surface real vulnerabilities. Sample sandboxing configurations ship with the project, alongside a mantis-advise skill meant to help coding agents write more secure code from the outset.

Source: Google Cloud announcement.