Skip to content
Google Security·Indexed by this site · Originally published· Tools →SelectedAttention33

From discovery to fix: OSS-Fuzz automatically generates security patches with CodeMender

From Finding to Fixing: Reducing maintainer burden with automated patches

AI summary

Google combines OSS-Fuzz with Google DeepMind's code security AI Agent CodeMender, so that after OSS-Fuzz discovers a vulnerability, it not only reports the problem but also analyzes the root cause, generates a fix and delivers a patch. When OSS-Fuzz reports a vulnerability, the system hands the crash details and source code context to CodeMender, which explores multiple code paths and hypotheses in parallel to locate the root cause; each patch is verified in an isolated environment to confirm that it compiles cleanly, successfully resolves the crash and does not regress any functional tests. If a repository restricts AI-generated code, Google will comply with that rule and not submit patches at all; during the beta phase, patches are also manually reviewed by Google engineers. This feature currently applies to C/C++ projects in which OSS-Fuzz detects memory safety vulnerabilities; projects already integrated with OSS-Fuzz can receive patches without changing their configuration, and can also opt out in their configuration at any time.

Why it was selected

The original source explains how isolated verification and human review are used to control false positives when automatically generating security patches, which can help maintainers decide whether to adopt an automated remediation process.

Read originalblog.google