How CodeMender pushes AI deeper into software security
Terminator Cybersecurity By What The Future Newsroom · October 7, 2025 · 4 min read

How CodeMender pushes AI deeper into software security

Google Deepmind's CodeMender is a research project built to detect, repair, and help prevent software vulnerabilities. It combines AI with code analysis, fuzzing, testing, and human review, and has contributed more than 70 security fixes to open-source projects.

Google Deepmind is testing a larger role for artificial intelligence in software security: not just spotting bugs, but helping repair them and reduce the chance that similar weaknesses appear again.

“AI is taking on more autonomous security work, but the story is mainly defensive and still includes human review.”Why it scores Terminator

Its research project, CodeMender, is designed to scan source code, identify security flaws, and suggest or apply patches. Deepmind says the system has already contributed more than 70 security fixes to open-source projects, with human researchers reviewing changes before release.

Why CodeMender matters

Finding software vulnerabilities has become a hard problem at scale. The source article notes that traditional techniques such as fuzzing and static analysis are no longer enough on their own to fully address the challenge of discovering and repairing flaws.

CodeMender is Deepmind's attempt to automate more of that work. The project looks for vulnerabilities, traces them back to their underlying cause, proposes repairs, and checks whether those repairs hold up.

That last part is important. A patch is only useful if it fixes the security issue without breaking expected behavior or introducing a different failure. Deepmind's approach therefore puts validation beside detection, rather than treating repair as a simple code-generation task.

The project also builds on earlier efforts. The source article points to Big Sleep and OSS-Fuzz as examples showing that AI can discover new bugs in established programs. CodeMender takes that direction further by aiming to combine bug discovery, repair, and review in one automated workflow.

How the system checks its own fixes

CodeMender is powered by the Gemini Deep Think language model. Around that model, Deepmind combines several technical methods used in software testing and formal analysis.

The system uses static and dynamic code analysis, differential testing, fuzzing, and SMT solvers. Those tools help it examine code from multiple angles: what the source appears to do, how it behaves when executed, how changes compare with the original version, and whether certain conditions can be proven or disproven.

Deepmind also uses an internal tool that compares original and modified code. If the tool finds a problem, it can trigger corrections before a patch moves further along.

According to Deepmind, this multi-stage review process is meant to ensure that only patches that are functionally correct and traceable advance. The source article is clear that human researchers still review all suggestions before they are merged into software projects.

In practical terms, CodeMender is not being presented as a fully unsupervised replacement for security engineers. It is being tested as an automated assistant that can do difficult analysis, generate candidate repairs, and support researchers who make the final call.

Examples from open-source work

The source article describes two cases where CodeMender moved beyond surface-level bug reports.

In one test project, Deepmind says the system identified the root cause of a heap buffer overflow in XML code. The issue involved faulty stack management, and the source article notes that this root cause could not have been found from the crash report alone.

In another case, CodeMender adjusted the lifecycle of C objects in a generative codebase to prevent memory errors. That example shows a different kind of repair: not only changing a faulty line, but modifying how objects are managed over time.

These examples point to the kind of work Deepmind wants the agent to handle. Security fixes often require understanding how data, memory, and control flow interact across a codebase. A useful automated system has to reason about those relationships, not merely match known vulnerability patterns.

Preventing classes of vulnerabilities

Deepmind is also using CodeMender for proactive security work. Instead of waiting for a crash or reported flaw, the system can help harden existing code against categories of memory access errors.

For this, Deepmind uses "-fbounds-safety" annotations. The source article says these annotations enable compiler checks against memory access errors and have already been applied to parts of the widely used libwebp library.

That detail matters because libwebp has been tied to a serious real-world security case. The source article notes that a previous vulnerability in libwebp, CVE-2023-4863, was exploited in a zero-click iOS attack by NSO Group in 2023.

Deepmind says the new compiler protections could mitigate or even prevent such vulnerabilities. The claim is limited but significant: the goal is not only to repair individual bugs, but to make software harder to exploit by adding checks that address a broader class of memory problems.

What comes next

Since launch, CodeMender has contributed more than 70 security fixes to open-source projects, including some with millions of lines of code. Every change is manually reviewed before release.

Deepmind plans to make the agent available as a tool for developers over the long term. It also plans to publish further research on CodeMender's results.

The project reflects a practical direction for AI in software engineering. The most valuable systems may be those that pair code generation with testing, analysis, traceability, and human oversight.

For developers and maintainers, the promise is straightforward: faster discovery of difficult vulnerabilities, more help with complex repairs, and stronger defenses built into existing code. The open question is how well that process scales as CodeMender moves from research project toward a broader developer tool.

← Back to the wire

Read next