Google DeepMind's CodeMender agent upstreamed 72 security fixes to open-source projects
CodeMender finds and fixes security flaws in code. In its first six months, DeepMind used it to send 72 security fixes to open-source projects, some with millions of lines of code. Humans review every patch.
- Organization
- Google DeepMind
- Industry
- Security Research
- When
- Oct 2025
- Evidence
- Company reported
- Agents and tools
- CodeMenderGemini Deep Think
Reported outcome
72 security fixes upstreamed to open-source projects in six months, including projects as large as 4.5 million lines of code.
- 72Fixes upstreamed
- 4.5M linesLargest codebase
Caveats
Stated by the company that uses the agent (blog, earnings call, interview). Not independently audited.
- CodeMender is a research project, not a product you can use.
- Human researchers review every patch before it is submitted. The count is of accepted human-reviewed patches, not fully autonomous work.
What the agent does
CodeMender looks for the root cause of a vulnerability, writes a patch, and checks it. It uses static analysis, fuzzing, differential testing, and SMT solvers. A separate critique step checks that the patch is correct and causes no regressions. It can also harden code before a bug is found, for example by adding bounds-safety annotations to libwebp.
Why this works
Fixing a bug is easier to verify than finding one. If the tests pass, the crash is gone, and a reviewer agrees, the patch is good. The critique step catches bad patches before a human spends time on them.
What to copy
- Add a "critic" step that must approve every change before a human sees it.
- Feed the agent real tool output (sanitizers, fuzzers, test results), not just code.
- Keep human review for anything you send to another project.
Starter prompt
Written by us. Use only on code you own or maintain.
Crash report: {sanitizer_output}
Relevant code: {files}
1. Explain the root cause in 2 sentences. Do not just guard the symptom.
2. Write the smallest patch that fixes the root cause.
3. Write a regression test that fails before and passes after.
4. Review your own patch as a security reviewer. List any way it could
break existing behavior.
Sources
- Introducing CodeMender: an AI agent for code security — Google DeepMind, Oct 2025
- Google DeepMind unveils CodeMender AI agent that autonomously patches software vulnerabilities — SiliconANGLE, Oct 2025
Added Oct 16, 2026. Spotted an error? Send a correction.
Get new use cases weekly
One short email. Sources included.
Related use cases
Google's Big Sleep agent found an exploitable SQLite bug that fuzzing missed
Found a previously unknown, exploitable memory-safety bug in SQLite; developers patched it the same day, before any release.
XBOW's autonomous pentesting agent reached #1 on HackerOne's US leaderboard
#1 on the HackerOne US leaderboard, with 1,000+ reports in a few months and 130+ confirmed and fixed by program owners.
Aider, the open-source coding agent, writes most of its own code
Aider's release notes report that Aider wrote up to 88% of the code in a release (v0.86.0, August 2025).