How it works · 25 of 34 Frontier

Can AI models find and fix security vulnerabilities?

Models that find and fix holes

AI bug hunters: AI models can now read code, flag likely security holes, and draft and test fixes; they find bugs that random fuzzing misses, but they also raise false alarms, so a person still checks every finding and every fix.

Loading the animation…

Say it like this AI models can now read code, flag likely security holes, and draft and test fixes; they find bugs fuzzing misses but also raise false alarms, so a person checks every finding and every fix.

Under the hood — for builders
Real example: what a rule-based scanner sees, run here
Before AI reviewers, teams ran pattern scanners. We ran one on the scene's six lines plus a second function that glues text into SQL (D1):
How an AI reviewer works
Both tools in our papers follow roughly the same loop, and both keep a person at the end:
Three hunters, three blind spots
Each kind of tool finds a different family of holes. None finds them all:
In our papers: the numbers, and their limits
Google's figures for Mantis (Gemini 3.8 Flash Cyber): over 70% of vulnerabilities found on its internal benchmark across 20 languages, a critical flaw found in under 2 hours, and 47.2% fixed on the first try on CWE-Bench, run externally by Collinear. Google labels Mantis "demonstration purposes only". OpenAI publishes no accuracy figures for Codex Security: no miss rate, no false-alarm rate.
Ask a vendor
What share of your findings did customers' engineers agree were real? Does the tool reproduce a finding before reporting it, and who approves its fixes?
Watch out
Trial on one codebase in report-only mode, count the false alarms against your own reviewers, and never let it merge its own fix.
Sources
Our Mantis (Google) and Codex Security (OpenAI) papers · Google Project Zero, Big Sleep (Nov 2024) · Bandit run for this card.

What happens in the AI bug hunters animation, step by step?

  1. Six lines of code from a customer portal. One of them lets a stranger in.
  2. Tap the line you'd fix. No rush.
  3. An AI reviewer walks the same code and stops at the hole: one customer can open another's records.
  4. It drafts the fix and checks the hole is closed. A person approves it: these tools also cry wolf.
  5. Google's figures for its security model: over 70% of vulnerabilities found in its benchmark, a critical flaw found in under two hours.
  6. No hunter, human or AI, finds every hole. So assume someone gets in, and build for that. Next: defence in depth and zero trust.

What everyday example explains AI bug hunters?

A sniffer dog that also mends the fence. It covers the whole perimeter faster than a guard, but someone checks its repairs.

Why should a team care about AI bug hunters?

You will be offered AI code review; trial it on one codebase, measure its false alarms against your own reviewers, and keep a person approving every fix it drafts.