OpenAI Releases Software for Finding & Fixing Vulnerabilities

@openai/codex-security is a CLI and TypeScript SDK for finding, validating, and fixing security vulnerabilities in your code. Scan repositories, review changes, track findings over time, and run security checks in CI.

https://github.com/openai/codex-security

2 Likes

Prompt:

Why don’t we hear more about AI patching? Everybody would buy that so vulnerabilitiies would get fixed really fast

Reply from Gemini:

While every engineering team would buy a magic button that instantly fixes vulnerable code, the reality is that generative AI is currently much better at breaking things than fixing them.

Here is why automated remediation is hitting a massive wall:

1. It Introduces New Vulnerabilities

Recent 2026 research testing frontier models on complex vulnerabilities found that more than half of AI-generated patches are broken. The overall success rate for fully patching a flaw without creating new problems was less than a coin flip (47%). Even worse, in many tests, the AI didn’t just fail to fix the original bug—it actually introduced brand-new, exploitable flaws (like OWASP Top 10 vulnerabilities) into the codebase.

2. The “Band-Aid” Problem

When AI does manage to write a patch, it often creates what security researchers call “fragile guard code”. Instead of understanding and fixing the root architectural cause of a vulnerability, the model simply slaps a filter on the specific line of code that triggered the alert. This might pass an automated test, but it leaves other exploit paths wide open.

3. Context Decay

To patch a complex bug—like cross-site scripting or a kernel flaw—a developer needs to understand how data flows through the entire application. AI models have finite context windows. As they analyze massive codebases, they can lose context, forget how different modules interact, and start hallucinating fixes that technically compile but break the application’s actual business logic.


The Bleeding Edge: DARPA AIxCC

This is recognized as such a massive hurdle that the U.S. government is running a two-year, $29.5 million competition called the DARPA AI Cyber Challenge (AIxCC). The entire goal of the program is to figure out if autonomous systems can actually be trusted to discover and remediate vulnerabilities in real-world open-source software. Even among the best engineering teams in the world, getting an AI to reliably write production-grade patches without human oversight remains an unsolved problem.

Right now, if you deployed a fully autonomous AI patching agent into a production environment, you wouldn’t necessarily get a secure application—you would likely get a catastrophic system outage.

1 Like

xert7 reports success using chatGPT to fix security holes:

@vikr00001

NOTE: Also other AI can fix security issues, OpenAI Codex ChatGPT is NOT the only one. Most AI is trained with same code from Internet. Also Claude has fixed many security issues already.

1 Like

Updated for October 2026:

Prompt: We hear about AI finding ways to hack into servers. Why don’t we hear more about AI patching? Everybody would buy that so vulnerabilities would get fixed really fast

Response from Claude: Exploring how AI tools help patch software vulnerabilities.

Actually, AI patching is happening, it just makes for less dramatic news. DARPA’s AI Cyber Challenge had teams build systems that found and fixed vulnerabilities automatically, and several major labs have defensive efforts, such as Google’s work on automated fixes and Anthropic’s Project Glasswing, where select organizations use frontier models to find and fix flaws in critical software. “Attacker breaks in” is a story. “Bug quietly fixed before anyone exploited it” is not.

But even when the AI works well, fast, universal fixing runs into several real obstacles.

Fixing is harder than finding. A found vulnerability can often be verified automatically: the program crashes or the exploit works. A good patch has to stop the bug without breaking anything else, which means understanding what the code is supposed to do. A sloppy patch can introduce new bugs or silently change behavior.

The bottleneck is people and process, not patch-writing. Even a correct patch needs maintainer review, testing, a release, and then every user or company has to actually install it. Many organizations take weeks or months to deploy patches, and plenty of devices (routers, medical equipment, industrial systems, old IoT gear) never get updated at all. Faster patch generation doesn’t help much there.

Maintainers are already overwhelmed. Many critical open-source projects are run by a few volunteers. When AI floods them with reports or patches, especially low-quality ones, it can make their jobs harder. Some projects have publicly complained about AI-generated junk reports.

Nobody wants to auto-apply AI patches to production. If an automated fix breaks a payment system or hospital software, who’s liable? So companies keep humans in the loop, which brings back the speed limit.

Attackers and defenders have different success conditions. An attacker needs one working exploit and can tolerate lots of failures. A defender has to fix everything, everywhere, without breaking anything.

So the optimistic version of your point is probably right over time: AI should tilt the balance toward defenders if the patch-and-deploy pipeline keeps up. The hard part is that the weak links are mostly organizational, not technical.

1 Like

This is the first time I’ve seen a model – in this case an open-weight one – described by its lab as having strong defensive capabilities. Are there others?

Mistral Large 4 scores 51% on the Artificial Analysis Cyber Index, which measures a model’s ability to discover vulnerabilities in a codebase, reproduce and validate them, and patch them without breaking existing functionality. Crucially, Mistral Large 4 handles these legitimate defensive security tasks without unnecessary refusals.

1 Like

Some Ubuntu users in a hurry

Or alternatively, living on the edge?

sudo add-apt-repository ppa:cappelikan/ppa -y
sudo apt update
sudo apt install mainline -y
mainline check
mainline install 7.3.1
sudo apt -f install
reboot

So where to Go today…