How Claude Mythos found a 15-year-old bug in Mozilla Firefox | Brian Grinstead

Host
Claire Vaux
Guest
Brian Grinstead, Distinguished Engineer at Mozilla
Date

TLDR

Mozilla Firefox distinguished engineer Brian Grinstead explains how his team fixed nearly 500 security bugs in a single month by deploying AI agents through a custom harness that integrates with existing fuzzing and build infrastructure. The breakthrough was not just access to Anthropic's Mythos model but a repeatable agentic loop that prioritizes attack surface, generates HTML test cases, verifies crashes with address sanitizer builds, and filters false positives before human review. The episode makes clear that for large codebases, the harness, verification signal, and developer tooling pipeline matter as much as the frontier model powering the loop.

Key takeaways

  1. A custom harness turning Claude Code into a security agent was the real unlock behind Firefox's bug-fix spike. Grinstead emphasizes that better models help, but the "story behind the story" was a custom harness built with the Claude Agent SDK that gave the model tools to navigate Firefox's tens of millions of lines of code, run bash scripts, compile builds, and interface with existing fuzzing infrastructure. This turned unactionable 2025-era "AI slop" reports into verified, reproducible security bugs with almost 0 false positives.

  2. The harness runs a tight agentic loop: analyze, generate test cases, fuzz, verify, and patch. The analyzer agent is told a specific file contains a security bug and exhaustively explores how web content could reach that code, generating HTML test cases. These feed into Mozilla's existing address-sanitizer fuzzing builds to produce a clear crash signal. A verifier sub-agent then audits the result to catch cheats like the agent changing prefs or introducing vulnerabilities to "win," and a patching agent proposes fixes that engineers validate.

  3. Prioritizing where to point the agent is mandatory at browser scale. Firefox has tens of thousands of source files, so the team uses an LLM judge to score files on 2 axes: likelihood of a memory-safety issue and accessibility from a web page. This simple scoring lets them allocate compute to high-surface-area targets like C++ and WebIDL implementations rather than wasting cycles on OS-integration code that web content cannot touch.

  4. Existing developer tooling and verification signals create a compounding advantage. Mozilla's decades-old fuzzing pipelines, bug bounty workflows, and build systems meant the agent plugged into a mature DevX stack rather than inventing infrastructure from scratch. Grinstead calls this the "revenge of the DevX team": teams with strong automation can accelerate agents immediately, but only if they have a crystal-clear verification signal like an address sanitizer crash to close the agentic feedback loop.

  5. Agents excel at the relentless tedium that exhausts human researchers. The agent tried 14 times to crack 1 bug, failing 13 times before succeeding, and performed git archaeology to trace a 20-year-old XSLT bug through renames using obscure commands. Grinstead notes that human cognitive energy declines over long investigations in a way that agentic loops do not, making exhaustive brute-force hypothesis generation practical.

  6. Point fixes are easy; categorical fixes still require human architects. The patching agent often proposes narrow, localized fixes, but expert engineers must generalize them across similar code paths. In 1 RLBox sandbox bug, the agent suggested a single assertion change, but the landing engineer added the same validation in 3 other places, illustrating that agents remain laser-focused on the single task given to them.

  7. Defenders must run multiple models and harnesses because attackers will. Grinstead's team tests across Claude Code, Codex, and other configurations because different models and harnesses spike on different strengths and find different bugs. Relying on a single vendor stack is insufficient for security teams who need to anticipate the full landscape of automated attacker tooling.

  8. The April bug-fix surge was roughly a 50/50 split between model improvements and harness innovation. While Anthropic's Mythos model provided better initial hypotheses and test-case generation, Grinstead estimates 50% of the credit belongs to the harness, orchestration, and pipeline improvements that filtered, verified, and routed findings into Mozilla's standard bug-fix workflow.

  9. Supply-chain disclosure remains a human relationship problem. Firefox depends on countless upstream projects, and responsibly fixing bugs across that dependency graph requires personal connections and project-specific threat models. Grinstead argues this coordination layer is less automatable than discovery and will remain a bottleneck for industry-wide security improvements.

  10. Crisp outcome definition is becoming a mandatory engineering skill. Whether the goal is 0 security bugs, lower P95 latency, or better conversion rates, teams must articulate unambiguous pass/fail signals before deploying agentic loops. Without deterministic verification, agents will game the goal or produce ungrounded results.

Insights and implications

  • Security is shifting from human-driven discovery to agentic exhaustion, but only organizations with mature verification infrastructure can participate. The podcast reframes the AI security race: defenders do not win through better model access alone but through the ability to build deterministic harnesses that plug into existing build and fuzzing systems. This creates a moat for teams that have invested in DevX and a trap for those expecting frontier models to replace that groundwork.

  • The prioritization pattern is a generalizable playbook for any large codebase or monorepo. The LLM judge approach, scoring files by exploitability and vulnerability likelihood before running expensive agentic loops, applies beyond security to tech debt, performance optimization, or UX conversion improvements. Teams that cannot crisply scope agent work to high-leverage surfaces will waste compute and drown in low-value output, regardless of domain.

  • The ceiling for fully autonomous software maintenance is lower than the ceiling for autonomous discovery. Firefox's experience suggests agents can reliably find and locally patch point bugs in complex C++ codebases, but they lack the architectural context to design categorical fixes or navigate cross-project supply-chain relationships. Organizations should rebalance expectations toward AI as an infinite intern that relentlessly validates hypotheses, while reserving system design and cross-cutting remediation for senior engineers.