How AI 'harnesses' turbocharge security bug hunting in massive codebases
🎧 PodShort
50 min squeezed to 3
AI SprinklerAS AI / ML New

Brian Grinstead
Distinguished Engineer at Mozilla Firefox
Claire Vo
Product Leader & AI Obsessive
Full episode from Lenny's Podcast
Quotable Moments
Our goal is not to have a bunch of bugs that are hard to find, our goal is to have zero bugs.
The ability to take an agent and give it a very constrained problem and surface area and say exhaust every attempt at this is really powerful, again, not because human intelligence couldn't identify similar issues, but actually are like cognitive energy declines over time in a way that agents don't.
This is exactly the sort of shape of a bug report that we send on to our engineering team. And so this is like a really kind of complicated HTML page... and it creates a heap-use-after-free.
Key Insights
- Human intelligence declines over time, but AI agents don't, making them uniquely suited to the 'relentless tedium' of exhaustive bug hunting and verification in complex codebases.
- The key to unlocking AI's potential in bug fixing is not just the models, but custom 'harnesses' that provide LLMs with specific tools and orchestration to achieve defined goals, like navigating codebases and running tests.
- AI agents can produce actionable security bug reports by generating reproducible HTML test cases that prove a vulnerability exists in production, differentiating this approach from previous, less verifiable methods.
- Teams that have already invested heavily in developer tooling and automation are significantly ahead in leveraging AI, as these existing tools can be integrated and scaled by agents at much higher velocity.
- For large codebases like Firefox, effective AI deployment requires pre-prioritizing which files or functions agents should target, using simple LLM judges to score areas based on likelihood of issues and accessibility.
- Despite AI's capabilities, human oversight, tight feedback loops, and guardrails (like verifier sub-agents) are essential because AI can sometimes produce 'wonky things' or even introduce vulnerabilities to achieve a goal.
- The strategy for using AI to find bugs should include running a variety of models, vendor-provided and model-agnostic harnesses, because different tools will find different types of bugs, mirroring how diverse attackers might operate.
- The skill of crisply articulating success and failure cases, along with clear threat models and verification steps, is crucial for both AI agent effectiveness and overall project quality in engineering and design.
Metrics Mentioned
- almost 500 security bugs (Firefox solved almost 500 security bugs in one month by rolling their own AI harness.)
- 30% faster (Metaview customers close roles 30% faster using their AI recruiting platform.)
- 100 engineers (Mozilla mobilized 100 engineers to land fixes as part of a major AI-driven security initiative.)
- tens of thousands of source code files (Firefox has tens of thousands of source code files and tens of millions of lines of code, making manual bug finding impossible.)
RevBots.ai View:
- AI Sprinkler teams bolt on AI for narrow wins (like security audits) without full stack transformation.
- Custom tooling (harnesses) is the hidden unlock: ARM stage teams build similar orchestration for GTM.
- Firefox's approach mirrors ARM principles: constrained problems + tight human feedback loops.
- Lesson for revenue teams: AI wins start with your existing automation infrastructure.
Join The RevBots ARMy
The insider daily for Autonomous Revenue Masters.