AI Uncovers Software Vulnerabilities in Rust and Other Projects at Scale as Tech Giants Vie for the Automated Remediation Market
AI is uncovering long-hidden vulnerabilities at scale in software such as the Rust compiler and the Linux kernel. Claude helped researchers discover a soundness flaw in the Rust compiler that had existed for more than seven years. After Microsoft used a multi-model agent system to scan Linux, it turned 26,502 raw leads into 59 formal vulnerability reports, demonstrating that validation, remediation, and maintenance still require substantial professional expertise. Google, OpenAI, GitHub, and several Chinese cloud providers are integrating vulnerability validation, patch generation, and deployment into enterprise security services.
Why read this
AI score 77
Drawing on cases involving the Rust compiler, the Linux kernel, and open-source projects, the article shows how, as AI accelerates vulnerability discovery, validation, remediation, and maintenance are becoming new centers of cost and commercial focus.
Topics
Body · AI translation
A piece of Rust code containing no `unsafe` keyword somehow bypassed the compiler’s checks and accessed memory at runtime after it had already been freed.
By Rust’s design, this should never have happened. The code was able to compile because of a flaw in the compiler’s own borrow-checking logic.
Surprisingly, this bug had remained hidden for seven years. It was not reported to the Rust community until Claude helped researchers discover it.
In addition to finding dozens of type-safety issues in the Rust compiler, Anthropic’s research, published on December 2, uncovered more than 100 soundness flaws in Linux’s eBPF verifier, as well as previously undisclosed security vulnerabilities in macOS and the open-source chip-security project Caliptra.
Rust is only the beginning. A new software security race is unfolding.
In the past, some software vendors liked to promote security as a product feature, and Rust even made memory safety one of the language’s key advantages. But as AI begins uncovering, at scale, problems that have remained hidden for years despite prolonged maintenance and review, software security guarantees will need to be reassessed.
1 Rust Dared to Promise Safety, but Its Own Compiler Had a Bug
Rust has long been renowned for safety. Through its ownership, borrowing and lifetime mechanisms, Rust can prevent many common memory-safety problems in safe Rust code during compilation, without relying on garbage collection.
But this system rests on one assumption: the compiler must enforce these rules correctly. That is precisely where the bug discovered by Claude occurred.
The code presented by Anthropic was only a few lines long. The program created a two-dimensional array containing heap-allocated objects. Then, while calculating an array index, it transferred an object from the array to another variable and freed the memory it occupied using `drop`.
Under Rust’s ownership rules, after the object inside the array was moved into `row`, its original location no longer held a valid value. `drop(row)` then freed the `Box` and the heap memory to which it pointed. However, the borrow checker failed to recognize that the array’s dynamic index (`Index`) and constant index (`ConstantIndex`) could refer to the same location, and still allowed the program to create a reference through the original array location. Ultimately, the program dereferenced an invalidated `Box`, triggering a use-after-free issue.
This kind of problem is known as a soundness flaw, meaning that the compiler accepted a program that should have violated the language’s safety rules.
More notably, this was not a recent issue.
On August 4, 2026, a Rust developer filed Issue #160525 in the official GitHub repository. The community subsequently used bisection to trace the issue through historical versions and found that, under the default configuration, it had been present since the Nightly release of April 23, 2019. The previous day’s release still rejected the code. However, an Issue comment also noted that the same problem could be reproduced in the April 22 release by enabling the `-Zborrowck=migrate` parameter.
In other words, a compiler bug had remained hidden for more than seven years.
On August 5, when developers asked how the issue had been discovered, Anthropic researcher Nicholas Carlini revealed that he was testing a large-model agent framework designed to find program soundness issues. He had the bugs it discovered verified and submitted by developers familiar with Rust.
Carlini even acknowledged that he was not familiar with Rust and that another group of candidate issues still needed further verification to avoid flooding the community with low-quality reports.
The contrast is striking: a researcher unfamiliar with Rust used AI to find a long-standing flaw in the Rust compiler, yet ultimately still needed expert developers from the Rust community to help confirm and fix it.
Anthropic said Claude had found dozens of Rust type-safety issues, some of which had been fixed while others were still being addressed. This does not mean that Rust as a whole has become unsafe, but it does remind developers that even the strictest language-safety mechanisms cannot guarantee that the compiler implementing them will always be free of bugs.
In fact, the Rust community is no stranger to AI-assisted code security reviews.
In April this year, the Rust Foundation received access to Claude Mythos and used it to conduct a security review of the Rust standard library. By August, the Rust project had gone further by establishing rules for large language models’ involvement in code contributions. The policy was adopted by five teams within the Rust project and applies to designated code repositories such as `rust-lang/rust`; it does not represent a unified position on AI across the entire Rust ecosystem.
The policymakers explicitly acknowledged that the community had not reached a consensus on how AI should be used. Some developers believe that large models can help with learning, analysis and problem discovery, while others worry about their negative effects on community collaboration, the environment and code maintenance.
The policy draws fairly clear boundaries: developers may use large language models to answer questions, analyze code, identify issues and assist with reviews, but they may not allow models to replace human judgment. Using large language models to find bugs is permitted, but users must personally verify the findings and disclose the AI’s involvement.
The Rust project has set a stricter bar for AI-generated code. Related pull requests must have human review arranged in advance and meet quality, testing and disclosure requirements. As a rule, critical code affecting compiler soundness may not be generated directly by large language models; even project members with domain expertise are subject to strict restrictions. Meanwhile, AI code review may only provide supplementary feedback and cannot replace human review or authors’ own review of their work.
The official Rust Compiler Development Guide also specifically warns that large language models are prone to false positives and may focus excessively on trivial issues. Where more reliable tools already exist, such as linters or formatters, they should be used first or in combination with AI.
2 AI Is Finding Vulnerabilities Too Quickly for Open-Source Maintainers to Keep Up
The Rust compiler case is not an isolated one.
On November 11, Microsoft’s FORGE Lab announced the results of an AI scan of the Linux kernel. Researchers used MDASH, a multi-model agent system, to scan selected subsystems covering Linux networking, file systems and security modules. In just two weeks, the system generated 26,502 raw leads.
But there is a long filtering process between discovering an issue and confirming a vulnerability.
Microsoft first narrowed the leads down to 11,769 candidate issues, then attempted to reproduce them using automatically generated proofs of concept (PoCs), ultimately producing 621 cases supported by PoC evidence. After researchers manually analyzed, deduplicated and verified them, only 59 issues became formal upstream vulnerability reports. Of these, 33 received CVE identifiers, and eight were confirmed in controlled environments to enable local root privilege escalation. By the time the report was published, fixes for 38 issues had entered the mainline Linux kernel.
The entire project was led by one full-time researcher and one intern and lasted about three months.
These figures show that AI can already greatly increase the speed and breadth of vulnerability discovery, but moving from an initial lead to a reproducible vulnerability, then to a formal report and patch, still requires substantial professional work. Microsoft’s study lasted about three months, while subsequent verification, vulnerability analysis and coordination with Linux maintainers consumed months of expert time.
On November 17, GitHub and Microsoft announced a joint experiment with a blunt title: “Maintainers Don’t Need More AI Vulnerability Reports—They Need Fixes.”
With the consent of maintainers from six open-source projects, the two companies conducted scans that initially generated 9,791 potential issues. After GitHub used AI to triage, deduplicate and screen the findings for validity, seven Microsoft researchers manually verified them. Ultimately, 99 private vulnerability reports were submitted to maintainers, each accompanied by a PoC and a proposed fix.
As of November 15, maintainers had fixed 55 of the issues, with 14 fixes included in official releases. Out of nearly 10,000 raw leads, only 99 human-verified reports ultimately reached maintainers.
GitHub acknowledged in its report that many open-source maintainers are already being inundated with AI-generated security reports, including duplicates and erroneous findings that do not constitute vulnerabilities at all. One Netty maintainer put it bluntly: finding vulnerabilities is no longer the bottleneck; fixing them is, and that depends on maintainers.
In the past, vulnerability discovery required professional security researchers to invest a great deal of time, and many open-source projects did not even have enough resources to conduct systematic audits. AI can now scan vast amounts of code in a very short time, but verification, remediation and maintenance still require people.
3 Tech Giants Enter the Market and Compete for the AI Remediation Business
As vulnerability discovery becomes increasingly inexpensive, the parts of the process with real commercial value are shifting toward verification and remediation.
Google, OpenAI and GitHub have approached the market from different directions as they compete to become the gateway to enterprise software-security workflows.
Google is building on OSS-Fuzz, the open-source fuzzing platform it has operated for nearly a decade, integrating CodeMender into the vulnerability discovery and remediation process and offering enterprises code scanning, vulnerability verification and automated patching capabilities through Google Cloud.
OpenAI, meanwhile, is pursuing open-source collaboration and commercial products in parallel. Through Patch the Planet, it works with professional security organizations to find and fix vulnerabilities in open-source projects. At the same time, it has integrated related capabilities into Codex Security, which connects to enterprise code repositories to provide continuous scanning, threat analysis and patch-generation services, with usage billed by the token.
GitHub’s advantage lies in its direct access to developers. It embeds Copilot Autofix and Agentic Autofix into code review, security alerts and CI/CD workflows, monetizing them through security subscriptions, AI Credits and compute-resource usage.
The three companies are taking different paths, but their business logic is converging: Google wants to turn security fixes into a continuous workload on its cloud platform, OpenAI wants to transform its model capabilities into enterprise security services, and GitHub is leveraging its existing code repositories and developer ecosystem to make AI-powered remediation a standard feature of the development process.
OpenAI’s published cost breakdown also reveals a noteworthy shift: the exploit-development stage consumed about $776,000 in API credits, far more than the roughly $320,000 spent on vulnerability discovery. Dynamic validation and initial screening consumed approximately $73,000 and $44,000, respectively.
This means the cost center of AI security research is no longer limited to finding bugs. It also includes confirming issues through PoCs, determining whether attackers could exploit them, and generating fixes that maintainers can review. OpenAI stressed, however, that the experiment was primarily intended to validate the model’s capabilities rather than optimize costs, and that the $1.213 million figure is closer to the upper bound of the current process’s cost.
Starting in August, Alibaba Cloud gradually upgraded its Agentic agentless detection feature, adding AI sandbox analysis and AI vulnerability remediation. When a detection task ends and risks are identified, the system automatically triggers parallel AI sandbox analyses, dynamically detonating suspicious files and images and analyzing their runtime behavior. For certain application vulnerabilities, users can directly initiate AI remediation tasks. The system performs the fixes automatically and delivers them by generating new custom secure images, leaving existing assets and images unchanged while also supporting rollbacks.
More notably, Alibaba Cloud has already published clear pricing: Agentic agentless detection and analysis is charged according to the volume of data scanned, at RMB 1 per GB; AI vulnerability remediation is charged according to the number of vulnerabilities successfully fixed, at RMB 10 per vulnerability. No corresponding charge is incurred unless a remediation is initiated.
Tencent Cloud, meanwhile, launched CodeBuddy Security on July 28, combining AI security agents with its TCA-Xcheck code analysis engine to cover threat modeling, vulnerability scanning, PoC validation, automated remediation and other stages. Multiple agents cross-review vulnerability leads, and the system verifies in an isolated sandbox whether vulnerabilities are genuinely exploitable before generating targeted patches for developers to review manually. The product is already available for purchase and trial use.
Baidu has chosen to embed security capabilities into development tools. The enterprise edition of Comate supports scanning Java code and third-party dependencies for security issues and generating remediation code for vulnerabilities such as SQL injection, SSRF and remote code execution. Once developers approve the changes, they can replace the original code, moving security checks earlier into the everyday R&D process. The feature currently requires an enterprise account to apply for a trial, and the official documentation lists Java as the supported language for its code-security functionality.
It is clear that tech giants are competing for more than just a code scanner. They are vying to control the complete workflow, from vulnerability discovery and validation to patch generation, testing and deployment. For enterprises, this means ongoing model calls, cloud computing and security subscriptions; for platform providers, it means greater customer stickiness and an opportunity to enter enterprise R&D and security infrastructure.
Although vendors are pursuing different commercial paths, they are all competing for the same gateway: the enterprise software-security workflow. In the past, security vendors primarily charged for scanning tools, vulnerability intelligence and manual audits. In the future, they may increasingly charge based on model usage, ongoing subscriptions or even actual remediation outcomes. The ability to validate vulnerabilities accurately, generate reliable patches and ensure that fixes do not introduce new problems will become a new competitive advantage.
4 “Security” Can No Longer Be Treated as an Advertising Slogan
In the past, a software product could demonstrate its reliability by adopting a memory-safe language, passing security audits or obtaining security certifications. But none of these measures can guarantee that the software will not develop new vulnerabilities in the future, much less that its underlying dependencies, compiler and runtime environment will always function correctly.
AI is changing the rules of the game. It is automating more of the code-review work that previously could be performed only by professional security researchers, while also creating opportunities to uncover problems that have lain dormant for years. At the same time, however, the number of vulnerability reports, validation costs and remediation pressure are all increasing.
Software, of course, still needs to be secure, but simply writing “security” into a product description is no longer enough.
As AI begins to uncover previously undiscovered bugs at scale, what software vendors truly need to sell also includes the ability to fix problems after they are found.
Reference links:
Statement: This article is an InfoQ original. It does not represent the platform’s views or constitute investment advice. Reproduction without permission is prohibited.
This article is from the WeChat public account “InfoQ” (ID: infoqchina), written by Gao Peitao and Chu Xingjuan, and published by 36Kr with authorization.
AI Trends