×
Google DeepMind’s CodeMender AI fixes 72 security bugs automatically
Written by
Published on
Join our daily newsletter for breaking news, product launches and deals, research breakdowns, and other industry-leading AI coverage
Join Now

Google DeepMind has unveiled CodeMender, an AI agent that automatically fixes software vulnerabilities and proactively rewrites code for better security. Over the past six months, the system has already contributed 72 security fixes to open-source projects, including some with up to 4.5 million lines of code, demonstrating AI’s growing capability to address the mounting challenge of software security at scale.

How it works: CodeMender leverages Gemini Deep Think models to create an autonomous debugging agent equipped with sophisticated validation tools.

  • The system uses advanced program analysis including static analysis, dynamic analysis, differential testing, fuzzing, and SMT solvers (mathematical problem-solving tools) to identify root causes of security flaws.
  • Multi-agent systems enable CodeMender to tackle specific aspects of problems, including a critique tool that highlights code differences to prevent regressions.
  • All patches undergo automatic validation across multiple dimensions before human review, ensuring they fix root causes without introducing new issues.

Key capabilities: The AI agent demonstrates both reactive and proactive security approaches that go beyond traditional automated methods.

  • Reactive patching: CodeMender can identify complex root causes, such as discovering that a heap buffer overflow was actually caused by incorrect XML element stack management during parsing.
  • Proactive rewriting: The system applies security annotations like -fbounds-safety to existing codebases, which would have prevented vulnerabilities like the CVE-2023-4863 libwebp exploit used in zero-click iOS attacks.
  • Self-correction: When compilation errors or test failures occur, CodeMender automatically corrects them and validates changes using LLM judge tools.

In plain English: Think of CodeMender as a highly skilled security expert that can both fix existing problems in software and strengthen code to prevent future attacks. It’s like having a tireless specialist that can examine millions of lines of code, spot weaknesses that humans might miss, and apply protective measures—all while double-checking its own work to avoid creating new problems.

What they’re saying: The research team emphasizes their cautious approach to deployment and reliability.

  • “Software vulnerabilities are notoriously difficult and time-consuming for developers to find and fix, even with traditional, automated methods like fuzzing,” the researchers noted.
  • “As we achieve more breakthroughs in AI-powered vulnerability discovery, it will become increasingly difficult for humans alone to keep up.”

Current deployment: Google DeepMind is taking a measured approach to rolling out CodeMender’s capabilities.

  • All patches are currently reviewed by human researchers before upstream submission.
  • The team is gradually reaching out to maintainers of critical open-source projects with CodeMender-generated patches.
  • Technical papers and reports detailing the system’s techniques and results will be published in coming months.

Why this matters: CodeMender represents a significant advancement in AI-powered software security, addressing the growing gap between vulnerability discovery and patching capabilities while helping developers focus on building rather than constantly fixing security issues.

Google DeepMind introduces new AI agent for code security

Recent News

Alibaba CEO Eddie Wu unveils roadmap to artificial superintelligence

The announcement challenges assumptions that China focuses only on practical AI applications.

Botting the midnight oil: Aramark deploys 24/7 auto-kitchens to feed hospital staff overnight

The compact system prepares four personalized meals simultaneously from 80 fresh ingredients, operating 24/7.