Mozilla's AI agents find 271 Firefox security bugs
Mozilla built an agentic harness on its fuzzing infrastructure that lets Anthropic's Claude models hunt for security bugs in Firefox and prove each one with a test case they write and run.
MozillaUnited StatesInternet platforms and advertisingIn production since Feb 2026Who built it Built in-house (Anthropic)Human oversight Assists peopleKind of solution Software engineering assistantScale 271 vulnerabilities found with Claude Mythos Preview for Firefox 150Scenario AI-assisted vulnerability discoveryBusiness function Software engineeringOrganization EnterpriseAI types Generative AI, Agentic AITeam size Over 100 people
- Who built it
- Built in-house (Anthropic)
- Human oversight
- Assists people
- Kind of solution
- Software engineering assistant
- Scale
- 271 vulnerabilities found with Claude Mythos Preview for Firefox 150
- Scenario
- AI-assisted vulnerability discovery
- Business function
- Software engineering
- Organization
- Enterprise
- AI types
- Generative AI, Agentic AI
- Team size
- Over 100 people
tl;drFirefox 150 shipped fixes for 271 vulnerabilities that AI agents found with Claude Mythos Preview.See the results
Mozilla uses an agentic harness on its fuzzing infrastructure to let Anthropic’s Claude models hunt for security bugs in Firefox1. Each agent has to prove a bug with a test case that it writes and runs1.
The Firefox team started the work in February 2026, after Anthropic’s Frontier Red Team sent it bugs that Claude Opus 4.6 had found1, 2. In April 2026, Firefox 150 shipped fixes for 271 vulnerabilities that the pipeline found with Claude Mythos Preview2. Mozilla fixed 423 security bugs in its April releases, against a previous record of 76 in March1, 6.
Before the deployment
Firefox’s security team paired defense-in-depth engineering with an internal red team that relied mostly on dynamic analysis such as fuzzing2. Firefox runs each website in a separate process sandbox, and much of it is decades-old C++ code that Mozilla can’t afford to rewrite in Rust2.
- Uneven fuzzing coverage: Some parts of the code are harder to fuzz than others2.
- Scarce human expertise: Elite researchers find the bugs that fuzzers miss by reasoning through the source code, which is slow and depends on a few people2.
- Noisy LLM audits: Earlier attempts to have models like GPT 4 or Sonnet 3.5 statically analyze high-risk code gave too many false positives to scale1.
- Unwanted AI bug reports: AI-generated security reports to open source projects were mostly known as unwanted slop1.
In February 2026, Anthropic’s Frontier Red Team brought Mozilla security bugs found with a new AI-assisted method, each with a reproducible test3. Mozilla’s engineers validated them and landed fixes ahead of Firefox 1483.
What was built
The pipeline points a Claude model at one file of Firefox’s code and asks it to find a bug and build a test case that triggers it1. Only findings that reproduce move on to deduplication, triage and a fix1, 5.
- Model: Claude Mythos Preview, and before it Claude Opus 4.6, reasons over the code, writes a proof-of-concept test case and describes the bug’s cause and impact1.
- Harness: Runs the model’s test cases so that the model can test its own hypotheses. For a memory bug, an AddressSanitizer report is the success condition1, 5.
- Pipeline: Deduplicates the findings against known issues, then tracks, triages and classifies them1, 5.
- Security team: Chooses where the system looks, from a mix of human judgment and automated signals1.
- Firefox engineers: More than 100 people wrote and reviewed patches, triaged bugs, tested fixes and managed each release1.
“This pipeline is extremely reliable at filtering out false positives, so long as you have a clearly defined success condition to validate against.”
Rollout
The pipeline found serious bugs with publicly available models first, so Mozilla could swap in Claude Mythos Preview as soon as it had access1. Mozilla plans to run the analysis in its continuous integration system, to scan each patch as it lands1.
Technology and architecture
The harness is an agent loop that Mozilla built itself, atop its existing fuzzing infrastructure1. Engineers first supervised it in the terminal to tune the prompts and logic, then parallelized the jobs across ephemeral VMs, each assigned one target file1.
| Layer | What they used | Role | Source |
|---|---|---|---|
| Language model | Claude Mythos Preview | Reasons over a target file, writes proof-of-concept test cases and describes each bug’s cause and impact | 1, 2 |
| Language model | Claude Opus 4.6 | Ran the first small-scale sandbox-escape experiments in the harness, after Anthropic’s own scan of Firefox | 1, 4 |
| Task agent | Agentic harness | Prompts the model to find a bug in a target file and lets it create and run reproducible test cases | 1 |
| Tools and actions | Fuzzing infrastructure | Existing Mozilla test infrastructure that the harness is built on and that runs the test cases | 1 |
| Tools and actions | AddressSanitizer | Reports the memory errors that serve as the success condition for a memory corruption finding | 1, 5 |
| Compute and servers | Ephemeral VMs | Run one isolated job per target file on a local copy of the codebase and are destroyed afterward | 1, 5 |
| Workflow engine | Security bug lifecycle pipeline | Deduplicates findings against known issues, tracks, triages and classifies them, and moves fixes to release | 1, 5 |
| Business or operational system | Bugzilla | Mozilla’s issue tracker, which holds the bug reports and the only copy of the agents’ code changes | 4, 5 |
Data inputs
- Firefox source code: Each VM holds a local copy of Firefox’s open source codebase, and each job targets one file1, 5.
- Sanitizer reports: AddressSanitizer tells the agent whether its test case triggered a memory error, and the agent keeps working until it does5.
- Known issues: The pipeline compares each finding with known issues to remove duplicates1.
- Harness logs: Engineers audit the logs to see which attacks the agents tried1.
- Prior Firefox CVEs: Before the collaboration, Anthropic built a dataset of earlier Firefox CVEs to test whether Claude could reproduce them4.
Integrations
- Fuzzing infrastructure: The harness runs on it, and it runs the agents’ test cases1.
- Findings database: Each VM writes its findings to a bucket, an internal database, before the VM is destroyed1, 5.
- Bugzilla: Bug reports go into Mozilla’s issue tracker, the only place the agents’ code changes appear4, 5.
How one bug moves through the pipeline
- The security team picks a target file from human judgment and automated signals1.
- The pipeline starts a job on an isolated VM with a local copy of the Firefox codebase1, 5.
- The model gets the core instruction: there is a bug in this part of the code, find it and build a test case1.
- The model writes a test case, and the fuzzing infrastructure runs it. If AddressSanitizer doesn’t fire, the agent keeps working5.
- For a sandbox escape, the model is allowed to patch Firefox code that runs only in the sandboxed process, to act as an attacker who already controls it1.
- The VM writes the finding to the internal database and is destroyed5.
- The pipeline deduplicates, triages and classifies the finding, and files it in the bug tracker1, 5.
- Firefox engineers write and review a patch, test the fix and ship it in a release1.
One report that Mozilla unhid describes a 20-year-old XSLT bug in which reentrant key() calls free a hash table’s backing store while a raw entry pointer is still in use1.
Results
| Metric | Before | After | Scope and timeframe | Reported by |
|---|---|---|---|---|
| Mythos Preview bugs fixed in Firefox 150 | Not disclosed | 271 vulnerabilities | Firefox 150, April 2026 | Mozilla, measured1, 2 |
| Security bugs fixed in a month | 76 in March 2026 | 423 security bugs | All April 2026 releases, every discovery method | Mozilla, March figure via The Decoder, measured1, 6 |
| Sec-high bugs among the 271 | Not disclosed | 180 sec-high bugs | Firefox 150, April 2026 | Mozilla, measured1 |
| False positives in total | Not disclosed | fewer than 15 | Pipeline findings to May 2026 | Brian Grinstead of Mozilla, via Help Net Security, measured5 |
- 271 vulnerabilities: The bugs from the initial evaluation of Claude Mythos Preview that Firefox 150 fixed in April 2026. More fixes from the same work shipped in 149.0.2, 150.0.1 and 150.0.21, 2.
- 423 security bugs: Every security fix in the April 2026 releases. Besides the 271, it counts 41 external reports and 111 other internal finds, split roughly in thirds between Mythos Preview, other models in the pipeline, and fuzzing1.
- 180 sec-high bugs: Bugs that normal browsing could trigger. Among the rest, 80 were sec-moderate and 11 were sec-low1.
- Fewer than 15 false positives: Findings that looked valid but weren’t, counted across the pipeline’s runs to May 20265.
The earlier phase with Anthropic gave 22 CVEs, 14 of them high-severity, and 90 other bugs3. The 14 were almost a fifth of all high-severity Firefox vulnerabilities remediated in 20254.
Lessons learned
A success condition that a machine can check made the pipeline work. Grinstead calls the pipeline reliable at filtering false positives when such a condition exists, while earlier static audits with GPT 4 and Sonnet 3.5 failed on false positives1, 5.
The false positives that did occur came from the agent changing a precondition, such as enabling a testing preference or using a private API5. The team updates the harness after each one to prevent similar cases5.
The model finds the bugs, but people still fix them. Every bug needs care, and the volume meant long days for more than 100 contributors1. TechRadar’s security writer adds that the model needs direction and guidance from humans to work at this scale7.
Past hardening held. The harness logs showed many sandbox-escape attempts that a past change to freeze prototypes thwarted1. Brian Honan of BH Consulting reads this as support for building security into design, development and deployment5.
The counts need care. A sec-high rating rests on AddressSanitizer crash symptoms, not a working exploit, and one high bug alone usually can’t compromise Firefox1. The Firefox 150 rollup CVEs hold 316 bugs because they include other discovery methods1. In Anthropic’s own test, Opus 4.6 turned a bug into a crude exploit in two cases, in an environment without the sandbox4.
The figures are Mozilla’s own counts, published on its blogs1, 2. Bobby Holley warns that more AI in development could make codebases harder for people to understand, raising bug complexity along with discovery2. TechCrunch notes that AI tools also bring open source projects a flood of bad merge requests8.
Case study scorecard
- 271 vulnerabilities Vulnerabilities found with Claude Mythos Preview and fixed in Firefox 1501, 2
- 423 security bugs Security bugs fixed in Firefox releases in one month1, 6
- 180 sec-high bugs Bugs rated sec-high among the 271 found with Claude Mythos Preview1
- fewer than 15 False positives from the pipeline in total5
Sources by publication date
- Organization 3
- Vendors and partners 1
- Press, academic, and regulators 4
Build this solution yourself
Analysis
What you need
- A machine-checkable success condition: The harness relies on sanitizers and reproducible test cases to separate real bugs from speculation, so you need tests that fail clearly1, 5.
- Existing fuzzing infrastructure: Mozilla built the harness on top of it, so you need a way to build and run your code at scale in isolated machines1.
- A team that can absorb the volume: Deduplication, triage and fixes took more than 100 contributors, so check that your security and release process can take a surge of valid bugs1.
Reference architecture
Software engineering assistant
A software engineering assistant writes, reviews, tests, or migrates code in the tools that developers already use, and a developer approves its output. A language model writes a change, a test, or a review comment from the code for a task, and automated checks and a checker model build, test, and filter it. A reviewer approves each checked proposal in code review before it merges, and developers do the work that fails the checks by hand.
- Developer tools
- Assistant platform
- Code repository (documented in this case study)
- Code index
- Deterministic code analysis
- Standards and guidelines
- Code and platform map
- Prompts and context
- Language model (documented in this case study)
- Automated checks
- Checker model
A check mark shows a building block that this case study's sources document.
Open the reference architectureOthers who built it
- CGI: How CGI uses Codex and AI coding tools to build its own IP. AI tools lift coding productivity by up to 40% to 50% on new releases of CGI's own software.
- LinkedIn: LinkedIn's AI coding agents migrate ML models to PyTorch. Teams estimate a model migration now takes about 2 weeks instead of about 8 weeks.
- OpenAI: How OpenAI researchers hand AI research work to Codex agents. Agents now complete an estimated 46% of two-to-four-hour research tasks without human help.
- Stripe: Stripe's unattended AI coding agents write 1,300 PRs a week. Over 1,300 merged pull requests a week at Stripe are written entirely by minions.
- Meta: LLM-generated unit tests land in production at Meta. Meta engineers accepted 73% of the test improvements TestGen-LLM offered at three test-a-thons.
- Airbnb: How Airbnb used LLMs to migrate its React tests in six weeks. Airbnb migrated nearly 3,500 React test files in 6 weeks instead of an estimated 1.5 years.
Cite this case study
Enterprise AI Case Studies. "Mozilla's AI agents find 271 Firefox security bugs." Updated Nov 30, 2026. https://case-studies.ai/case-studies/engineering-and-research/ER-080-ai-vulnerability-discovery-mozilla-firefox/
@misc{csai-er-080,
author = {{Enterprise AI Case Studies}},
title = {{Mozilla's AI agents find 271 Firefox security bugs}},
year = {2026},
note = {Updated 2026-11-30},
url = {https://case-studies.ai/case-studies/engineering-and-research/ER-080-ai-vulnerability-discovery-mozilla-firefox/}
}Sources
The following reporting, and every passage quoted from it, belongs to its publisher, not to this site. Sources and ownership
- Source 1:
Behind the Scenes Hardening Firefox with Claude Mythos Preview
Supporting excerpts (28)
Two weeks ago we announced that we had identified and fixed an unprecedented number of latent security bugs in Firefox with the help of Claude Mythos Preview and other AI models.
Just a few months ago, AI-generated security bug reports to open source projects were mostly known for being unwanted slop.
We've experimented internally with LLM code audits over the past few years, with early attempts using models like GPT 4 or Sonnet 3.5 to statically analyze high risk code for vulnerabilities. These experiments showed some promise, but the high rate of false positives made them impractical to scale.
These can find real bugs and dismiss unreproducible speculation. The key feature of such a harness is that, given the right interfaces and instructions, it can create and run reproducible test cases to dynamically test hypotheses about bugs in code. After fixing the initial set of issues that Anthropic sent to us in February, we built our own harness atop our existing fuzzing infrastructure.
We began with small-scale experiments prompting the harness to look for sandbox escapes with Claude Opus 4.6.
At first, we supervised the process in the terminal to observe the process in real-time and tune the prompts and logic. Once this was working well, we parallelized the jobs across multiple ephemeral VMs, each tasked to hunt for bugs within a specific target file and write its findings back to a bucket.
A discovery subsystem is necessary but not sufficient. In order to scale the effort, we needed to integrate it with our full security bug lifecycle: determining what to look for, where to look, and how to handle what it produces. This last part includes deduplicating against known issues, tracking bugs, triaging them, and getting fixes shipped.
Standing this up required significant iteration, with a tight feedback loop alongside the Firefox engineers who were fielding the incoming bugs.
Once the end-to-end pipeline is in place, it's trivial to swap in different models when they become available. Building this pipeline early helped us find a number of serious bugs using publicly-available models, and it also helped us hit the ground running when we had the opportunity to evaluate Claude Mythos Preview.
the system gets simultaneously better at finding potential bugs, creating proof-of-concept test cases to demonstrate them, and articulating their pathology and impact.
In addition to fixing the 271 bugs identified by Claude Mythos Preview in the 150 release, we've shipped more of these fixes in 149.0.2, 150.0.1, and 150.0.2.
Ultimately, every bug requires care and attention to properly fix. Staying on top of this unprecedented volume has led to a lot of work and long days over the last few months
Over 100 people contributed code to this effort to ship the most secure Firefox yet. In addition to writing and reviewing patches, others have been building and scaling this pipeline, triaging, testing the fixes, and managing the release process for each bug.
You can start with very simple prompting, then observe and iterate.
the essence of the inner loop remains the same: there is a bug in this part of the code, please find it and build a testcase.
Today, our scanning is largely focused on specific areas of the code (files, functions) where we instruct the system to look, based on a mix of human judgement and automated signals. In the near future, we intend to integrate this analysis into our continuous integration system to scan patches as they land in the tree.
When crafting a sandbox escape, the model is permitted to patch the Firefox source code, so long as the modified code is restricted to run only in the sandboxed process
Rather than fixing these problems one-by-one, we made an architectural change to freeze these prototypes by default. While auditing logs from the harness, we saw many attempts to pursue this line of escape that were thwarted by this design.
20-year-old XSLT bug in which reentrant key() calls cause a hash table rehash that frees its backing store while a raw entry pointer is still in use
Ordinarily we keep detailed bug reports private for several months after shipping fixes and issuing security advisories
We fixed a total of 423 security bugs in releases in April. In addition to the 271 bugs announced two weeks ago, there were 41 externally reported bugs, with the remaining 111 discovered internally and split roughly in third between:
In Firefox 150, there were three internal rollups: CVE-2026-6784 (154 bugs), CVE-2026-6785 (55 bugs), and CVE-2026-6786 (107 bugs).
Astute readers will notice the number of bugs in those internal rollups adds up to 316, which is more than the 271 we announced finding with Claude Mythos Preview.
Note that we also directly credited 3 CVEs to Anthropic separate from this latest effort
Of the 271 bugs we announced for Firefox 150: 180 were sec-high, 80 were sec-moderate, and 11 were sec-low.
sec-critical and sec-high are assigned to vulnerabilities that can be triggered with normal user behavior, like browsing to a web page.
In most cases, a single critical/high bug is not actually enough to compromise Firefox.
We classify sec-high based on predictable crash symptoms such as use-after-free or out-of-bounds memory issues being reported by AddressSanitizer, and our threat model assumes that any of them could be exploitable with sufficient effort. This reduces the risk of a false negative during exploitability analysis, and more importantly it allows us to focus our resources on finding and fixing more vulnerabilities.
- Source 2:
Supporting excerpts (9)
Since February, the Firefox team has been working around the clock using frontier AI models to find and fix latent security vulnerabilities in the browser.
This week's release of Firefox 150 includes fixes for 271 vulnerabilities identified during this initial evaluation.
Firefox runs each website in a separate process sandbox
We've led the industry in building and adopting Rust, but we still can't afford to stop everything to rewrite decades of C++ code
We pair defense-in-depth engineering with an internal red team tasked with staying on the leading edge of automated analysis techniques. Until recently, these have largely been dynamic analysis techniques like fuzzing. Fuzzing is quite fruitful in practice, but some parts of the code are harder to fuzz than others, leading to uneven coverage.
Elite security researchers find bugs that fuzzers can't largely by reasoning through the source code. This is effective, but time-consuming and bottlenecked on scarce human expertise.
So far we've found no category or complexity of vulnerability that humans can find that this model can't.
Encouragingly, we also haven't seen any bugs that couldn't have been found by an elite human researcher.
There's a risk that codebases begin to surpass human comprehension as a result of more AI in the development process, scaling bug complexity along with (or perhaps faster than) discovery capability.
- Source 3:
Hardening Firefox with Anthropic's Red Team
Supporting excerpts (6)
A few weeks ago, Anthropic's Frontier Red Team approached us with results from a new AI-assisted vulnerability-detection method that surfaced more than a dozen verifiable security bugs, with reproducible tests. Our engineers validated the findings and landed fixes ahead of the recently shipped Firefox 148.
Critically, their bug reports included minimal test cases that allowed our security team to quickly verify and reproduce each issue.
In total, we discovered 14 high-severity bugs and issued 22 CVEs as a result of this work.
In addition to the 22 security-sensitive bugs, Anthropic discovered 90 other bugs, most of which are now fixed.
However, the model also identified distinct classes of logic errors that fuzzers had not previously uncovered.
AI-assisted bug reports have a mixed track record, and skepticism is earned.
- Source 4:
Partnering with Mozilla on Firefox security
Supporting excerpts (10)
In this post, we share details of a collaboration with researchers at Mozilla in which Claude Opus 4.6 discovered 22 vulnerabilities over the course of two weeks.
almost a fifth of all high-severity Firefox vulnerabilities that were remediated in 2025
So we built a dataset of prior Firefox common vulnerabilities and exposures (CVEs) to see if Claude could reproduce those.
Our first step was to use Claude to find previously identified CVEs in older versions of the Firefox codebase.
We then filed a bug report in Bugzilla, Mozilla's issue tracker
they encouraged us to submit all of our findings in bulk without validating each one, even if we weren't confident that all of the crashing test cases had security implications. By the end of this effort, we had scanned nearly 6,000 C++ files and submitted a total of 112 unique reports
We ran this test several hundred times with different starting points, spending approximately $4,000 in API credits. Despite this, Opus 4.6 was only able to actually turn the vulnerability into an exploit in two cases.
The exploits Claude wrote only worked on our testing environment, which intentionally removed some of the security features found in modern browsers.
Task verifiers give the agent real-time feedback as it explores a codebase, allowing it to iterate deeply until it succeeds.
the key point is that giving the agent a reliable way to check both of these properties dramatically improves the quality of its output.
- Source 5:
What Mozilla learned running an AI security bug hunting pipeline on Firefox
Supporting excerpts (7)
This pipeline is extremely reliable at filtering out false positives, so long as you have a clearly defined success condition to validate against.
Memory corruption issues are especially easy to validate: either you trigger Address Sanitizer or you don't (in which case you tell the agent to keep working until it does)
We did see a small handful of false positives, primarily caused by changing some precondition in order to trigger an issue that would otherwise be valid (e.g., enabling a testing preference or using a private API). We've seen fewer than 15 of these total, and when we see them we update the harness to prevent similar issues in the future
Findings were written to a bucket, then fed into a security bug lifecycle covering deduplication, triage, classification, and patch management.
Any source code changes made to craft sandbox escapes are only used to generate bug reports. They never land in the upstream Firefox source code, nor are they published anywhere outside of the bug tracker. Scanning happens entirely within isolated VMs that have a local copy of Firefox's open source codebase, with no means to publish their changes. After completing the analysis, any findings are written into an internal database and the VM is destroyed
What stood out to me in the report was how Mozilla's past architectural decisions to apply layered defences within Firefox resulted in Mythos repeatedly failing to exploit vulnerabilities.
This reinforces what many cybersecurity professionals have advocated for years that cybersecurity needs to be included in all software at the design, development, and the deployment stages
- Source 6:
Supporting excerpts (1)
In total, Mozilla resolved 423 security issues in April - a massive jump from the previous record of just 76 in March.
- Source 7:
Supporting excerpts (2)
In terms of the bugs coming out on the other side, there are almost no false positives
It needs direction and guidance from humans to perform at such a scale.
- Source 8:
Anthropic's Claude found 22 vulnerabilities in Firefox over two weeks
Supporting excerpts (2)
Most of the bugs have been fixed in Firefox 148 (the version released this February), although a few fixes will have to wait for the next release.
even if they bring a flood of bad merge requests alongside the useful ones.
Comments
Start the conversation.
Invited members of the library comment here. Sign in to join the conversation.