Hardening Firefox with Anthropic's Red Team
TL;DR Highlight
Claude Opus 4.6 found 22 Firefox vulnerabilities in two weeks, 14 rated high-severity by Mozilla
Who Should Read
A developer who wants to point an LLM agent at open-source or in-house C++/backend code for security review
Core Mechanics
- 22 vulnerabilities in two weeks
- Claude Opus 4.6 found 22 vulnerabilities in Firefox over two weeks.
- Mozilla rated 14 as high-severity, almost a fifth of all high-severity Firefox vulnerabilities fixed in 2025.
- The 22 found in February 2026 exceeded the count reported in any single month of 2025.
- Started with the JS engine, scanned 6,000 files
- They began with the JavaScript engine because it can be analyzed in isolation and has a wide attack surface.
- After 20 minutes Claude reported a Use After Free, a memory bug that reuses freed memory.
- In total they scanned nearly 6,000 C++ files and submitted 112 unique reports.
- Finding is easy, exploiting is hard
- Several hundred exploit attempts cost about $4,000 in API credits.
- Only 2 attempts produced a working exploit.
- Finding vulnerabilities is an order of magnitude cheaper than building exploits for them.
- Exploits only worked without a sandbox
- The test environment intentionally removed security features such as the sandbox.
- The exploits were crude, and Firefox's defense in depth would have mitigated them.
- Let the agent check itself with a task verifier
- A task verifier is a trusted tool that confirms whether the agent's output achieved its goal.
- It gives real-time feedback so the agent can iterate until it succeeds.
- A patching agent must verify two things: the vulnerability is gone and the intended functionality is preserved.
- Three things Mozilla trusted in reports
- Minimal test cases were attached.
- Detailed proofs-of-concept were included.
- Candidate patches were provided.
Community Reactions
- Maintainers should run audits too, one commenter says
- One commenter urged open-source maintainers to ask Claude Code for a security audit, saying it likely costs about $3 in tokens for most projects.
- In Zulip audits, asking the model to carefully self-review each finding removed most false positives, they said.
- They handled the rest by adding comments explaining the intended security model, and most did not reappear on a second audit.
- Don't trust the model's safety verdicts, one user says
- A commenter said Claude explicitly claimed a security boundary existed when it didn't, even calling it extremely safe.
- They found models do better on local bugs with obvious patterns and miss vulnerabilities that arise from combined features.
- Firefox developer: better than usual fuzzing reports
- A Mozilla developer who fixed some of these bugs said the minimal test cases were well-commented.
- The AI's root-cause explanations were about 80% right and 20% off, but still a useful starting point.
- They also doubted that simply asking Claude to find security bugs in Firefox would work and said it would likely produce AI slop.
- Missing prompt and false-positive details
- Several commenters wished the post disclosed the actual bugs, the false-positive rate and the prompt used.
- One commenter found it odd that the team could not confirm whether the historical CVEs were in the training data.
How to Apply
- Run a security-audit prompt on your repo
- Pick one small module today and paste the prompt below into Claude Code.
- Require a reproducing input and a candidate patch for every finding, and make the model self-review.
- Attach a task verifier to your vulnerability agent
- Write a script that automatically checks the agent's output.
- Run a test that confirms the original bug no longer reproduces and your existing test suite to catch regressions.
- Include minimal repro, PoC and patch in security reports
- Attach a minimal test case before submitting any LLM-generated report.
- Add a detailed PoC and a candidate patch so maintainers can verify it.
Try It
# Paste into Claude Code as-is (simplified version of the article's method: reproducible evidence + self-verification)
Find security vulnerabilities in the code under {{path}}.
Rules:
1. For each vulnerability, give the file path and line number, severity, and a root-cause explanation.
2. For each vulnerability, build a minimal reproducing input (test case) and actually run it to confirm it reproduces. If it does not reproduce, do not report it.
3. For each vulnerability, propose a minimal-scope candidate patch, then confirm the same input no longer reproduces and the existing tests pass.
4. At the end, re-review every finding yourself and flag likely false positives with reasons.
5. Separately list places where the documented security behavior differs from the actual code.Terminology
Related Papers
Frostbite: A new CPU architecture discovered, designed and verified by AI
AI agents designed a CPU from scratch, claiming 4.59x perf/W over a traditional core
Restricting AI agents in mobile operating systems platforms from capturing data
Signal now blocks OS-level AI agents from reading its screen on iOS 27 and Android
Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Agents' link choices alone let attackers rebuild user queries at F1 0.89; SOR cuts it to 0.39.
Tracking and Limiting Unsupported Claim Propagation in Multi-Agent LLM Systems: A Provenance-Aware Framework
Passing claims with source, evidence and history kept equivalence at 5 agent stages at 96% versus 31%.
LLM assisted reverse engineering
Pointing an agent at binaries with skills and MD notes made years-long hacks feasible
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Injecting per-turn complexity reports into coding agents cut code erosion without changing correctness
Why is Gemini 4 Carbon taking so long?
Carbon took nearly an hour on bug fixes that Astra and Opus finished in minutes, mostly from extra unrequested work.
Weight-Space Programming builds neural networks like a 1990s researcher
LLM hand-wrote MNIST weights to 91.3%, using 1990s-style techniques