Mozilla 如何用 GPT-6 Cyber 发现并修复 Firefox 漏洞
原题How Mozilla uses GPT-6 Cyber to find and fix Firefox vulnerabilities
推荐理由Mozilla 用风险选靶、动态复现、独立复核和人工补丁审核构成漏洞治理闭环,把模型发现转为可交付的安全修复。访谈还介绍重复漏洞回查与本地工作台,帮助安全团队识别发现能力提升后真正需要扩容的工程环节。
看前速览
Mozilla 介绍如何把 GPT-6 Cyber 接入 Firefox 模糊测试与工程师复核流程,发现、验证、排序并修复浏览器漏洞。
沿用浏览器现有的测试工具
Mozilla 结合代码风险与扫描记录选择目标,并让智能体在独立虚拟机里读取源码、运行模糊测试,检验漏洞假设。
在可重复验证之后再加一道复核
能使浏览器崩溃的测试可作为验收条件,第二个智能体还会检查有没有通过改动代码人为制造崩溃。
扫描旧漏洞的变体,把判断交回工程流程
变体扫描寻找同类漏洞,疑似重复的发现可以在相关补丁合入后复测。工程师审查证据、完善补丁并推动合入。
完整摘要
Mozilla 的漏洞处理流程建立在多年漏洞赏金计划、模糊测试和可调试的 Firefox 构建之上。团队先对高风险代码排序,再把智能体放进独立虚拟机,要求提供可重复验证的漏洞样例。第二个智能体专门检查第一个智能体是否通过修改代码制造崩溃来通过测试。工程师在本地 SQLite 工作台复核重复报告,并把分诊结果反馈给扫描流程。团队称,2025 年到 2026 年,漏洞发现和修复数量都约增至原来的 8 倍,生成的补丁仍需浏览器工程师审查并合入。
章节
文字稿
简要说明Brief Description
Mozilla 如何利用 GPT-6 Cyber 查找并修复 Firefox 漏洞How Mozilla uses GPT-6 Cyber to find and fix Firefox vulnerabilities
目录Table of Contents
- Pwn2Own 与 Firefox 的安全准备工作Pwn2Own and Firefox's security preparation
- 目标选择、复现与验证Target selection, reproduction and verification
- 分诊、严重程度和变体扫描Triage, severity and variant scanning
- 补丁审查与漏洞工作台Patch review and the vulnerability workbench
Pwn2Own 与 Firefox 的安全防护准备Pwn2Own and Firefox's security preparation
嘿,Brian,感谢你来访 OpenAI。Hey Brian, thanks for stopping by OpenAI.
很高兴来到这里。Happy to be here.
最近举办了一场 Pwn2Own 竞赛。能不能跟我们聊聊你们这次的参赛情况?另外,Pwn2Own 究竟是什么?There was recently a Pwn2Own competition. Could you tell me a little bit about how that went for you all and also like what is Pwn2Own?
所以,Pwn2Own 是一年一度的黑客竞赛,浏览器是其中的重点攻击目标之一。当然,每年我们都会借此机会进行一次演练,模拟如果现实中出现一个已知正被利用的重大安全漏洞,情况会是什么样。我们知道研究人员会来攻击 Firefox,而这是一个很好的可控环境,可以让我们练习应对此类情况。我们也知道,今年也就是 2026 年,许多研究人员都在使用智能体扫描工具,而且还有很多漏洞有待发现。今年早些时候,有不少人登记了针对 Firefox 的攻击,因此我们一阵手忙脚乱,赶在最后关头集中修复了一批漏洞;也正是在那时,我们和你们团队建立了联系。So Pwn2Own is an annual hacking competition and browsers are one of the top targets. Of course, every year we use that as an opportunity sort of as a fire drill for what it would be like if there were a real security critical bug in the wild that we knew to be exploited because we know that researchers are going to show up and attack Firefox. And it's a great controlled environment for us to practice that. And we knew coming into it this year in 2026 that many researchers are using these agentic scanning tools and there's a lot of bugs to find. Earlier in the year, we had a number of people who had registered attacks on Firefox and so we had a scramble and a kind of a last-minute crunch to try to get a bunch of bug fixes in and that's actually where we connected with your team.
是的,在 Pwn2Own 前的那段时间,我们非常期待能和你们合作。你知道,有些团队声称他们已经找到了针对它的漏洞利用。那是什么情况?后来最后一刻又发生了怎样的紧急忙乱?这次的结果非常好:没有人成功攻破 Firefox。嗯,这件事背后的部分情况是,OpenAI 的网络安全团队在活动开始前不久提交了几个漏洞报告。我们修复这些问题并迅速将修复补丁合入之后,结果发现有好几个参赛提交用的正是那些漏洞。所以,这也让我们意识到,不同模型会发现不同的漏洞,即使你已经多次扫描过代码。Yeah, we were very excited to partner with you in the days leading up to Pwn2Own. You know that some teams claimed that they have exploits for it. What was that like? And then what was the last minute scrambling that happened? We had a great outcome at this which was nobody was able to pwn Firefox. Uh part of that story actually was the OpenAI cyber team filed a few bugs shortly before the event and after we fixed those and quickly uplifted them, it actually turned out that a number of the submissions were using that exact bug. And so that was what kind of pointed us in this direction of okay different models find different bugs even if you've scanned the code multiple times.
能否请您简单介绍一下,Mozilla 多年来一直在构建什么?这些积累又如何让这个全新的智能体安全流水线更具价值、更加有效?Could you tell us a bit about what has Mozilla been building over the years which makes this new Agentic security pipeline even more valuable and effective?
我们之所以能够充分利用这套新工具链,其中一个原因是我们为此准备了几十年。我们一直在运行外部漏洞赏金计划,接收外部提交,并请人们检查我们的代码、尝试攻击它。呃,我们很早就在内部红队中使用地址消毒器和模糊测试工具。因此,我们其实相当习惯于接收大量外部报告,也对此很适应。另一方面,我们的工程师非常擅长修复这些问题、跟踪发布进度,并迅速将修复推送给用户。我认为你们在模糊测试、可调试构建以及许多基础工具上也投入了大量精力。正是这些工具让智能体能够启动一个 Firefox 实例,测试潜在的漏洞利用,然后快速迭代。One of the reasons that we've been able to really take advantage of this new tool chain is that we've done decades of preparation for it. We've been running an external bug bounty program where we get external submissions and ask people to poke at our code and try to attack it. Uh we've been early on address sanitizers and fuzzers within our internal red team. And so we're actually quite used to and comfortable with receiving, you know, pretty large volume of external reports. And on the other side, our engineers are really adept at getting those fixed, tracking the release, and getting it out to users quickly. And I think you also have invested a lot in fuzzing as well and debuggable builds and a lot of the primitives that enable for example an agent to spin up an instance of Firefox test a potential exploit and then sort of iterate rapidly.
是真的吗?Is that true?
没错。事实证明,既然我们已经为模糊测试器、内部研究人员和外部研究人员构建了这些工具链,智能体也可以直接使用同样的工具。好,那我们深入了解一下你们打造的这个非常酷的系统吧。That's right. It turns out that having built out these tool chains for both fuzzers and internal researchers, external researchers, agents can just use those same tools. Okay, so let's dive into the very cool system you all have built.
目标选择、复现与验证Target selection, reproduction and verification
这就是我们整体的架构。我会把它称为一个整体的智能体式安全流水线,其中有一个智能体式安全测试框架的内循环,负责发现漏洞。但整个流程实际涉及的远不止这些。从宏观来看,最关键的问题是:你要让智能体从哪里着手,尝试寻找漏洞?我一开始想的是,按字母顺序排列文件,然后逐个遍历整个目录树。很快你就会发现,这样行不通。So this is the overall architecture that we have and I would call this an overall agentic security pipeline with a sort of inner loop of an agentic security harness which is in charge of discovering the bugs. But it's actually a lot more than that which goes into it. From the big picture, at the very top there's a question of what you point the agent at to try to find a bug. What I thought we might do at first is sort the files alphabetically and go one by one through the entire tree. You realize really quickly that's not going to work.
所以我们做的第一件事,就是加入一个评分机制:让 LLM 根据文件内容给文件打分,判断它看起来有多大风险、是否会暴露于网页内容、有哪些内存安全特征或其他风险模型,等等。最初的版本基本上会接收一份带有评分的文件列表,以及一些历史信息,比如你运行过它多少次,然后用一个非常简单的模型直接给出结果,说:“以下是接下来最值得运行的 50 个目标。”So the very first thing that we did is add a scoring mechanism by asking an LLM to grade a file based on the contents of the file you know how risky does this look is it exposed to webpage content what's some of the memory safety characteristics or other risk models and so on. And so the initial version basically takes that list of files with scores and some sense of the history like how many times have you run it and in a really simple model would just spit out and say here's the next 50 targets that are important to run.
而在一开始,这种做法确实效果很好,因为我们处理了这些系统中许多容易解决的问题。但随着时间推移,我们不得不在这方面变得更巧妙一些。And that actually worked great at the start as we were picking a lot of the low-hanging fruit in these systems. But we had to start to get a little more clever with it over time.
是的。关于基于 LLM 的优先级排序,你在提示词中加入了一些领域专业知识,比如作为浏览器时可能面临的特定风险或威胁。能否简单介绍一下这种评分机制是如何运作的?Yeah. And for the LLM based prioritization including in that prompt you had some domain specific expertise in terms of the maybe specific risks or threats if you're a browser. Can you say a little bit about how that scoring worked?
是的,没错。这其实又回到了一个理念:专业知识需要经过多年的积累。我们的代码库有技术文档,这些文档是我们编写并分享给编写代码的工程师的。在这波 AI 浪潮到来之前,我们还为研究人员准备了相关资料,并进行了内部扫描。因此,我们可以把这些内容接入进来,确保获得的评分是恰当的,并且与我们实际的威胁模型相关。Yeah, that's right. And this actually goes back to the idea of having expertise built up over many years. Our codebase has technical documentation that we've written and shared with you know engineers writing code. We've written artifacts for researchers and our own internal scans ahead of all of this AI wave, and so those we're able to plug in and make sure that we are getting the right scores that are relevant based on our actual threat model.
好,接下来会发生什么?Okay, what happens next?
好,一旦进入内循环,这就是许多安全工程师都熟悉的一种循环。我们会把一个智能体放进它自己的虚拟机中,让它访问 Firefox 源代码和我们的整套模糊测试工具链,再给它某个目标或任务,然后告诉它:“去找一个漏洞。”让它能够使用动态测试工具非常重要,因为我们发现,它会提出许多关于漏洞的猜想,然后用我们的模糊测试工具验证,最终发现猜想是错的。因此,这里会形成某种内循环:它通常通过静态分析提出一些漏洞猜想;有时也会编写小型模糊测试器,或者进行其他动态测试,还会做各种有意思的事情。Okay, so once we enter into the inner loop, this is a loop that a lot of security engineers will be familiar with. We're putting an agent inside of its own VM. We're giving it access to the Firefox source code and all of our fuzzing tool chain and we're giving it some sort of target or goal and we tell it, you know, go find a bug. It's really important that it has access to the dynamic testing tool because what we see is it will come up with many bug theories and then it will test it in our fuzzing tools and realize that it was wrong. And so there's there's sort of an interloop happening here where it's coming up with some theories about bugs usually by static analysis. Sometimes it will write little mini fuzzers or do other dynamic testing and all sorts of interesting things.
但它会在这个循环中持续运行,直到我们能确定性地验证它确实找到了我们关心的那类 bug。例如,确定性验证可以是一个 HTML 文件,它在 Firefox 中加载时会导致崩溃。But it continues in this loop until we have a deterministic verification that it succeeded at finding the sort of bug that we care about. And the deterministic verification is for example an HTML file that when loaded by Firefox causes a crash.
没错。我们已经开始着手开发更复杂的验证器,用来捕捉各种逻辑错误,还有沙箱测试之类的。不过从根本上说,最简单的理解方式是:浏览器漏洞的主要来源仍然是测试用例触发的内存安全漏洞。我很想再多了解一点这些验证器,因为我觉得这其实是个关键环节:你们把源代码开放给模型,模型就会提出一大堆潜在漏洞,但到头来,按照你们的工作规模,还是需要某种自动化方式来判断:好吧,这到底是不是真的漏洞?基本上,要走出这个内循环,就得证明它确实造成了某种后果,比如崩溃。不过,我们也见过智能体做出各种有意思的事。That's right. And we've started to work on more complex verifiers for catching different sorts of logic errors and you know sandbox testing but at its core it's the easiest way to think about it and that is still the primary source of browser bugs is looking for a memory safety bug caused by a test case. I'm curious to hear a little bit more about the verifiers because I think that's actually a key point where you, you know, give the model access to source code. It's coming up with a bunch of potential bugs, but then yeah, ultimately at the scale that you're doing things, you need some automated way to say like, okay, what is this a real thing or not? Basically, to get out of this inner loop, it has to have proven that it caused, for example, a crash. However, we've seen agents do all sorts of interesting things.
因此,我们的做法是,在问题得到证实后,将其交给一个独立的智能体,由它判断是否发生了什么异常。举例来说,我见过这样的情况:它编写了一些代码来修补代码库,结果引入了一个崩溃;它导致了崩溃,而这个崩溃随后通过了确定性门槛。我们发现,这正是需要第二个智能体来检查结果的地方。根据我们的威胁模型,它还会对严重程度以及其他信息进行评分。因此,经过这两个智能体处理后,我们的误报率实际上非常低。过程中会出现各种奇怪的情况,我们也需要不断改进报告,还会遇到重复的漏洞,诸如此类,这些都可以聊。但我们从未被这个问题坑过:比如,有个 Markdown 文件解释某个函数出了什么问题,工程师花一个小时读它,读到 80% 时才发现报告是错的。And so what we do is after it's proven that it gets handed off to a separate agent that's meant to judge whether it did something funny. So for example, I've seen cases where it wrote some code to patch the codebase to introduce a crash caused the crash which then passes the deterministic gate and we found that's where we need to have the second agent to basically check the work. It also does some grading on severity and other you know other information given our threat model. And so coming out of those two agents, we actually have a tiny false positive rate. So there's all sorts of weird stuff that happens and ways that we've needed to improve the the reports and we have duplicate bugs and all sorts of things we can talk about, but we have not been burned by this problem of you know, you know the markdown file that explains what's wrong with a function and then an engineer is spending an hour reading through it and gets 80% of the way through and realizes it's wrong.
由于这些检查,在我们的系统中这并不是问题。是的,说到测试,当然,在我们拿到经过验证的报告后,就会尝试修复问题。因此,我们支持工程师的一种方式是:在整个流程中,我们会让一个代理编写代码来修复它发现的问题,其中既包括代码补丁,也包括测试。所有这些都由一个相当简单的云编排环境统筹:我们把结果写回存储桶,再将其取回到本地工作台,最后接入更广泛的流程——我认为最重要的是,更广泛的缺陷修复流水线。That's not been a problem in our system because of those checks. Yeah. And speaking of, you know, tests, of course, after we have a verified report, we want to try to fix it. And so, one of the things that we do to support our engineers is inside of the loop, we have an agent actually write code to fix the problem that it found, which includes both a patch to the code and a test. All of this is wrapped up in really a pretty simple cloud orchestration environment where we're writing the results back into you know storage buckets and we pull that back in to you know the local workbench and then the broader you know I think you know most importantly the broader bug fix pipeline.
分诊、严重程度与变体扫描Triage, severity and variant scanning
好的。我们运行这条流水线后,末端会冒出一大堆漏洞。你觉得该如何确定它们的优先级?这原本并不是瓶颈。过去,我们收到的安全漏洞报告少到足以让我们立刻处理每一条。所以,只要出现那些熟悉的信号,表明这是个高危漏洞,它基本上就会自动被定为 P1。随着我们开始扩大漏洞发现规模,我们不得不让系统中的这些新瓶颈更多地实现自动化,同时结合团队的反馈。有件事我之前没意识到,那就是光是对漏洞去重,其实就非常困难。Okay. So we're running this pipeline a bunch of bugs are popping out the other end. How do you think about prioritizing them? This is an area that didn't used to be a bottleneck. Like it used to be that we received few enough security bug reports that we would immediately jump on every one. And so there as long as you had these familiar signals that it was a high severity bug, it was automatically a P1 essentially. And as we've started to scale up the discovery, we've actually had to make all of these new bottlenecks in the system a little more automated with feedback from our team. So, something that was not obvious to me is that it's actually really hard to even deduplicate bugs.
如果你有 100 次扫描,每次都有发现,你可能会觉得,这很简单:看看测试用例,如果它们相同,那就是重复项。但实际情况有各种细微差别:崩溃堆栈相似,实际却是不同的漏洞;或者堆栈相同,实际也是不同的漏洞。我认为,这确实需要借助智能体工具来做初步判断。但你还需要与工程团队保持紧密的反馈循环,对吧?如果提交漏洞报告前把关太松,就会把工程团队——他们已经非常忙碌,而且能力出众——淹没在一堆他们不需要处理的问题中。但如果把关太严,又会有漏洞漏进漏洞跟踪系统。因此,要在两者之间找到平衡,事实证明比直觉上难得多。我很好奇,在一个漏洞由多个不同部分构成的情况下,你们如何对漏洞去重?这些部分可能是复现脚本、漏洞说明,甚至是概念验证漏洞利用代码。If you have 100 scans with findings, you might think, well, it's very easy. Look at the test cases and if they're the same, they're a duplicate. But you have all sorts of nuances where it has a similar crash stack, but it's actually a different bug or it's the same stack and it's different bug. And it actually requires I think agentic tools to help make a first shot. But you need a tight feedback loop with the engineering team. Right? If you're too lenient before filing a bug, then you're spamming the very busy and very talented engineering team with things they don't need to look at. But if you're too tight, then you're missing bugs in your bug tracker. And so balancing that has proven to be unintuitively hard. I'm curious how you deduplicate vulnerabilities in a world where there's a number of different parts of it, whether that's the reproduction script or the writeup or even the proof-of-concept exploit.
实际上,所有这些因素都可能出现相当大的差异。所以我很好奇,你会如何看待这件事。Like all of these can actually vary a meaningful amount. So I'm curious how you think about doing that.
目前我们找到的最佳做法,是把它们全部导入本地数据库,让一个智能体访问数据库并判断情况。我们会给它一些指导,但它们确实很聪明,能够把线索联系起来。当然,我们也会遇到它判断错误的情况。想办法把这些反馈纳入提示词,一直以来都很有帮助,但我确信这套方法并不完美。因此,我们一直在尝试的一件事是:如果有一条发现被标记为另一个漏洞的重复项,就设置一个提醒,等那个漏洞合入代码库后,再回头检查最初的发现,确认它是否已经不再复现。The best thing we found so far is we ingest them all into a local database and give an agent access to it and ask it to figure it out. we give it guidance, but they're actually quite clever at being able to connect the dots. Of course, we then get cases where it was wrong and finding a way to feed that back into the prompts and the tool has been helpful, but I'm certain that it's not perfect. And so some one of the things that we've been trying is to say if we have a finding that was marked as a duplicate to another bug basically have a reminder that when that other bug lands in tree we need to go back to that original finding and confirm that it doesn't work anymore
对,基本上是在找这样的情况:我们误把某个问题认定为重复项,因此没有提交报告。你之前提到过某个漏洞的严重程度,有时会出现报告,或者有些漏洞你原本认为严重性较低,后来却发现严重性很高;也许网络安全模型确实帮你区分了这两种情况。是的,我们以前见过这种情况:最初发现漏洞的扫描,或发现漏洞的外部报告者,所用的具体测试用例及其呈现出的信号,按我们的说法可能属于 sec-moderate 或低级别。你知道,这可能令人担忧,但需要一系列不寻常的步骤或配置,或者看起来并不真的能进一步升级。所以,我们一直在自己的环境中有意测试的一件事,同时也确实观察到的情况是,更强大的网络安全模型(比如 GPT6 cyber)会再次发现同一个漏洞,但这次呈现出的信号实际上达到了 sec-high。right basically looking for cases where we falsely identified something as a duplicate and didn't file it. You mentioned like the severity of a given vulnerability before where sometimes there were reports or sometimes there were vulnerabilities that you thought were low severity that ended up being high and that perhaps a cyber model actually helped you distinguish between those two. Yeah, we've seen this before where the initial scan that found a bug or the external reporter who found the bug, the the exact test case and the signals from it were what we might call sec-moderate or low. You know, it could be concerning, but it requires some unusual set of steps or configuration or it didn't really appear to be something that could be escalated. So, one of the things that we've both, you know, intentionally been testing in our environment, but also have just seen happen with, you know, more powerful cyber models like GPT6 cyber is that it will uncover the same bug as before, but it actually has signals of being sec-high.
所以,它找到了一些办法,绕过了某些现有的架构加固措施——我们原以为这些措施固若金汤——并成功证明给我们看:不,这个漏洞实际上属于高安全级别,需要重新确定优先级。这对我们来说是个很有价值的反馈,让我们知道自己把精力放在了正确的地方;而且,这通常也能指出我们在哪些方面可以进一步完善纵深防御和架构加固。就安全投资回报而言,这似乎相当可观:你投入资源做出某项架构选择或部署某种安全控制,认为它能消除某类漏洞,或降低其影响;随后收到反馈,得知这道防线实际上并未提供你所期望的安全保障,而你确实需要重新加固它——这就是一个不错的结果。So it found some way to you know work around some existing architectural hardening that we thought was bulletproof and managed to show us no this bug actually is sec-high; it needs to be reprioritized and so that's a great data point for us so that we know that we are putting attention in the right places and it also typically might highlight areas that we can actually improve our defense in depth and architectural hardening. And that seems like quite a big security ROI in terms of you've invested in this architecture choice or security control that you think is eliminating or reducing the impact of classes of vulnerabilities and then to have feedback that that guardrail isn't actually providing the security properties you want it to and that you actually need to reharden that that that's a good outcome.
这是个很棒的结果。我觉得我们在搭建整条流程时,努力实现的目标之一就是让目标选择非常灵活,这样如果我们看到这样的例子,就能迅速运行测试任务,尝试在其他 bug 上复现这种情况。能在目标选择阶段拥有这种灵活性,而不必为了做到这一点对测试框架本身做一大堆代码修改,确实很棒。是的,我们内部也做过类似的事:我们有一批积压的问题,比如 P2,或者一些我们知道存在、但可能还没严重到需要马上优先处理的问题。于是我们就有了这样一份积压清单,列着一些优先级较低的问题,然后把我们最新的模型指向这些问题,问它们能不能把这些问题组合起来,变成一个 P0 级别的问题,或者其他更严重的问题。It's a great outcome and I think one of the things that we've tried to set this whole pipeline up to do is to have very flexible targeting so that if we see an example like that we can quickly run test jobs that try to replicate that against other bugs and it's it's great to have the flexibility at sort of the the targeting stage versus needing to make a bunch of code changes to the harness itself to do that. Yeah, we've actually done a similar thing internally where we had a backlog of say P2s or things that we know about but maybe not critical enough to focus on immediately. And so we had this like backlog here's a number of sort of low priority issues and then we pointed our latest models at it and asked essentially can you combine these into like a P0 or something more serious.
你之前还谈到了变异分析这个概念。能解释一下它是什么,以及你们是如何利用它的吗?Another thing you were talking about previously is this idea of variant analysis. Could you explain what that is and then also how you all are leveraging it?
变体扫描的思路是,我们拿一个已知的漏洞——无论是已经修复的漏洞,还是尚未解决的漏洞——把它打包成一个包交给智能体,然后让它在整个代码库中搜寻相同的模式。事实证明,这种方法最近非常有效。比如,我们可以拿出 2025 年修复的所有安全漏洞,让智能体去寻找类似的问题,对吧?这些问题可能就在相关代码附近,也可能远在代码库的其他地方,但它们都具有某种相似模式,而智能体能够识别出来。The idea behind a variant scan is we take a bug that we know about either a bug that we've already fixed or an open bug and we bundle that up into a package that we give to the agent and then we ask it to go hunt for the same pattern across the codebase. that's proven to be really effective recently where we could take bugs, say every security bug that we fixed in 2025, go try to find things that look kind of like that, right? And it could be is it close by the code, is it all the way across the code, but it's sort of a similar pattern that the agents picked up on.
这其实有点令人惊讶。你可以往前追溯很久,仍然能在代码库中找到这种模式的实例,而且它们已经存在相当长时间了。还有一种类似的做法,就是简单的提交扫描:有新提交合入后,就检查该提交,看看能否在其中发现漏洞。我认为这两者属于相似的一类,因为它们关注的提交范围都很窄。你看的就是这组具体代码,而变体的范围则更广。我们基本上是拿一份报告和一个提交,去更广泛地寻找类似的问题。It's actually kind of surprising. You can go back pretty far and still find instances of that pattern living in the codebase for quite a long time. There's a sort of version of that which is just a simple commit scan which is a new commit landed go look at that commit and see if you can find a vulnerability within it. I think of both of them and as sort of a similar family where commits are very narrow in scope. You're looking at this exact set of code whereas variants are more broad. We're taking essentially a report and a commit and looking more generally for things like it.
过去几个月里,这方面的变化相当惊人,主要是因为我们开始搭建并部署这套扫描系统。这就是为什么我们开始看到变体扫描和提交扫描发现了这么多漏洞。按月来看发现的漏洞占比,9 月份变体扫描发现了大多数漏洞。原因之一是,不知为何,它们发现的重复漏洞往往较少。我们已经开始看到它取得成效,因此把精力转向了这个方向。它确实已经成为当前策略中的关键部分。It's pretty amazing how this has changed in the last few months, largely because we've started to stand this scanning up. That's why we're starting to see variant and commit scanning find so many bugs. If we look at the percent of bugs found per month, in September variant scans found the majority of bugs. One reason is that they've tended to find fewer duplicate bugs, for whatever reason. We've started to find success with it, so we've pointed energy in that direction. It's really become a key part of the strategy right now.
补丁审查与漏洞工作台Patch review and the vulnerability workbench
所以,你们有一套能够发现许多漏洞的流程。显然,修复这些漏洞需要投入大量工作。我很好奇,你能否分享一下你们是如何帮助开发者大规模应用自动修复的?So you have this pipeline that's finding many bugs. Obviously this is a lot of work to fix them. So I'm curious, could you share a bit about how you are helping scale autofixes for developers?
所以当然,在这个循环过程中,我们会创建一个修复 bug 的补丁。这是很有用的材料,可以和 bug 描述一起放到 bug 报告里。我们通常发现,单靠这些补丁还不能原样合入。有时可以,或者已经非常接近;有时则不行。原因可谓五花八门。So of course in the loop we create a patch that fixes the bug and that's a helpful asset to put on the bug report along with the description of it. We've typically found that those those patches alone are not able to be landed as is. Sometimes they are or they're very close and sometimes they're not. It's a little bit of a grab bag of reasons.
有时补丁本身并不合适。有时它修复的问题范围非常狭窄。我们之前提到要有非常明确的目标:我们修复了测试用例触发的某个特定崩溃,但没有解决更普遍的问题。Sometimes the patch just wasn't right. Sometimes it fixed this very narrow. We talked about being very goal directed and we fixed this one particular crash that the test case did, but it didn't fix something more general.
嗯,有时候它并不了解代码库里正在发生什么。似乎没有什么单一妙招,能让这些补丁自动就绪、可以直接合并。但我们的工作流程是这样的:一位资深浏览器工程师收到 bug 报告后,会查看问题和所有相关证据,包括修复补丁,然后生成一个补丁,请另一位工程师评审,最后再把补丁合并进去。今年团队能够跟上我们发现问题的速度,真的让我印象深刻,也有点意外——不过倒也没那么意外。我记得你们比较过今年和去年发现的 bug 数量。那情况怎么样?Um, sometimes it's not aware of context of what's going on in the codebase. There didn't seem to be one trick that we could do that would make it such that these patches are automatically landable essentially. But the workflow that we have is we have an you know an expert browser engineer who gets the bug report looks at it looks at all of the evidence including the fix patch and then will you know generate a patch get a review from another engineer and get it landed. I've been really impressed and maybe a little surprised although not that much that the team has been able to keep up with the rate of discovery that we've had this year. I think you were comparing the bugs you found this year versus last year and yeah, what's that looked like?
是的,目前从2025年到2026年,发现和修复的数量都增长了约8倍,尤其是修复方面。Yeah, we're on the order of an 8x increase right now from 2025 to 2026 for both discovery and importantly for fixes.
所以你已经介绍了整体的 Agentic 安全流水线,真的很酷。你也介绍了安全工程师可以使用的 Agentic 漏洞工作台。我想知道,你能不能给我们简单展示一下它是什么样的?So you've described your overall Agentic security pipeline which is super cool. You also described a Agentic vulnerability workbench that a security engineer can use. I was wondering could you show us a bit what that looks like?
是的,我这里有一个它的演示版本。大致展示了我们使用的工作流程。过了几个月,我们决定开始把所有这些信号都摄取到红队工程师机器上的一个 SQLite 文件中。这些信号来自我们进行过的所有运行、与之关联的所有漏洞,以及工程师们提交的所有评论。这样做非常强大,因为你可以直接向编码代理提问。我整理了几个安全团队在典型工作流程中可能会做的事情的例子,这确实有助于加快改进,并把改进反馈到测试框架中,这样我们就能持续改进整个系统。呃,一个简单的例子就是规划下一批扫描任务。我之前提到过,我们最初的做法是制定一套严格的规则。Yeah, I've got a sort of a demo version of it here. Kind of shows the workflow that we use. A few months in, we decided to start ingesting all of these signals into a single SQLite file on the red team engineers machine. And so this is signals coming from all the runs we've done, all the bugs that are joined with those, all of the comments coming in from engineers. And it's really powerful because then you can just ask questions to a coding agent. There are a few examples that I've pulled out of typical workflows that the the security team might be doing that really then helps accelerate improvements and sort of bring it back in to the harness so that we're continuously improving the whole system. Uh so one simple example is planning the next scanning batch. I mentioned earlier the initial way we did this is we had a strict set of rules.
你知道,如果 n 天内没扫描过这个文件,而且它的风险评分达到这个程度,那就把它放进待处理列表。但我们发现,实际上只要让编程智能体访问这个数据库,效果就相当不错。我们可能会说,我们从 Slack 上一位工程师那里得到了一条线索:“嘿,你能看看这个组件吗?”你可以直接问它:“你能找到类似这样的代码吗?我们可能应该对它进行扫描。”You know if you haven't scanned this file in n days and it has this risk score then put it in the pile. But we found that actually just giving the coding agent access to this database is quite effective. We'd say maybe we got a hint from an engineer on Slack. Hey, can you look in this component? You can just ask it, can you find code that's kind of like this that we probably should scan?
它会运行 SQL 查询,去查明一些我们以前用硬编码规则处理的问题。必要时,它还会从文件中提取实际的原始跟踪记录。比如,它可能发现你扫描过某个特定文件或变体,但扫描过程中可能出了问题。它可以梳理所有这些数据,并提出下一步要运行什么的方案。然后工程师可以看一眼,说:“没错,有道理。启动吧。”还有一个简单的例子,就是改进测试框架本身。比如,查明为什么有些运行会遇到问题。它可以提取原始日志并查看。实际上,我们会让智能体在运行环境中遇到某种问题时,写一个名为 blockers.yaml 的文件。And it'll run SQL queries to go figure out some of the things that we previously had hard-coded rules for. It will, when necessary, go pull the actual raw traces from files. So maybe it saw that you had scanned this particular file or variant, but something might have gone wrong in the scan. It can work through all of this data and come up with, you know, essentially a proposal of what are we going to run next? And then the the engineer can look at it and say, "Yep, that makes sense. Let's kick it off." Here's another simple one is just improving the harness itself. And so why did some runs have some issues? Go figure it out. And it can go, you know, pull the raw logs. It can go look at it. We actually do this thing where we ask the agent to write a file called blockers.yaml if it encountered some kind of problem in its environment.
所以在这种情况下,它可能缺少运行测试所需的某个系统依赖。因此,我们想给它一个渠道,让它直接告诉我们,而不是试图用一些奇怪的变通办法来解决。这样我们就能把反馈录入这个工作台,然后知道,哦,比如说,我们需要更新 VM 镜像,把这个依赖加进去。展望未来,你和团队最期待什么?And so in this case it might be missing a system dependency that it needed to run the test. And so we want to give it an outlet to just tell us rather than trying to do some wild workaround for that that can get ingested back into this workbench and then we can know oh we need to update the the VM image to have this dependency for example. Looking forward, what are you and the team excited about?
我们真的很期待这项新能力,它可以大规模地发现漏洞、改进修复补丁,并帮助团队做任何能让工作更轻松的事情。不过从整体来看,我们相当乐观:每个修复掉的漏洞都会消失,对吧?而且我们正在加入提交扫描功能,希望今后引入的漏洞能少一些。我知道这目标相当宏大,但我们希望实现零漏洞,这也将是我们未来努力的方向。总的来说,我们非常期待利用这些最新的网络安全模型来帮助保护 Firefox,并将修复推送给数百万用户。We've been really excited about this new ability to sort of discover bugs at scale, you know, improving fix patches and doing anything that we can to make it easier for the team. But I would say big picture, you know, we're pretty optimistic like every bug that we fix is gone, right? And we are adding commit scanning so hopefully we're introducing fewer going forward. I know it's quite ambitious, but you know, we want to have zero bugs, and that's sort of the the guiding light out towards the future. But we're overall very excited about using these latest cyber models to help secure Firefox and get fixes out to millions of users.