读见

Codex Security:从发现漏洞到验证修复|DevDay 2026

原题Codex Security: From Vulnerability to Verified Fix | DevDay 2026

约 13 分钟原文英文已翻译

视频由 YouTube 提供

推荐理由Codex Security 演示把扫描范围、重复发现、责任归属与独立修复验证逐层展开;安全团队可比较怎样先建立可处理的漏洞队列,再扩大自动补丁使用。

看前速览

3 个要点

OpenAI 安全团队介绍如何从并行漏洞扫描走到去重、分派责任人,以及对补丁进行独立验证。

  1. 给扫描智能体明确范围和背景

    单次扫描提示词指定调查对象,共享架构、暴露面与安全控制帮助扫描和验证智能体理解代码。

  2. 修补前先去重、定级和分派

    合并描述同一问题的报告,按严重性准则排优先级,并把发现交给可处理的责任人。

  3. 单独验证补丁,再走常规评审和发布流程

    独立的修复验证步骤先检验生成的补丁,再进入团队自己的代码评审和部署流程。

完整摘要

两位讲者从内部安全冲刺讲起:单次扫描提示词划定范围,共享知识库和 SECURITY.md 提供架构与现有防护。他们报告冲刺中有 36% 的发现属于重复项,并说明如何通过严重性规则和责任归属把剩余发现分派给可处理的团队。独立验证与常规代码评审就位后,团队才逐步扩大自动生成补丁的使用。云端演示展示如何连接仓库并扫描新提交。

章节

文字稿

查看原文

简要描述Brief Description

Codex Security:从漏洞到经验证的修复 | DevDay 2026Codex Security: From Vulnerability to Verified Fix | DevDay 2026

目录Table of Contents

  • 防守方的时间窗口与安全冲刺
    The defender’s window and security sprint
  • 威胁背景与并行扫描
    Threat context and parallel scans
  • 去重、优先级与所有权
    Deduplication, priority, and ownership
  • 已验证的补丁与开发流程
    Verified patches and the development process
  • PatchBench 与持续扫描
    PatchBench and continuous scanning
  • Codex Security Cloud 演示
    Codex Security Cloud demonstration

防守方的窗口期与安全冲刺The defender’s window and security sprint

Ian:大家好,我是 Ian。我在 OpenAI 负责网络安全产品工程。今天,我想和大家分享一些我们正在为 AI 安全打造的产品,介绍我们在内部如何使用它们,以及你们也可以如何使用。Ian: Hi, everyone. I'm Ian. I work on cyber product engineering here at OpenAI. And today, I'm going to share a bit about what we're building for AI security, how we've used it internally, and also how you can use it as well.

Kyle:大家好,我是 Kyle。我和 Ian 一起在网络安全产品工程团队工作,主要负责 Codex Security CLI。它提供了一系列基础工具,帮助你借助 AI 保护软件安全。今天,我们将介绍 CLI 的工作方式,从发现并验证问题,到生成供开发者审查的补丁;还会演示全新的 Codex Security Cloud。它是 CLI 工作流的一种更加开箱即用的解决方案,我们今天在主题演讲中发布了它。Kyle: Hi, and I'm Kyle. I work with Ian on the cyber product engineering team. And I'm focused on the Codex Security CLI, which provides building blocks to help secure your software with AI. Today, we'll walk through how the CLI works, from discovering and validating findings to generating patches that a developer can review and show a demo of our new Codex Security Cloud, which is a more turnkey solution of the CLI workflows that we announced today during the keynote.

Ian:很好。在深入讨论这些之前,我想先谈谈当今网络安全领域的现状。毫无疑问,在安全方面,我们正处于一个转折点。Ian: Great. So before we get all into that, I want to acknowledge the state of cybersecurity landscape today. We're definitely at an inflection point when it comes to security.

入侵的成本即将基本降至零。在过去几个月里,最新模型已经能够在软件中发现数千个潜在的安全漏洞,而人们每天都依赖这些软件。因此,这件事非常重要,不仅对安全领域的从业者如此,对任何开发各类应用的开发者来说也同样重要。幸运的是,目前这些前沿模型在网络安全能力方面领先于开放权重模型。这就创造了我们所说的“防御者窗口”——一个宝贵的机会窗口,让我们能在相同能力广泛普及并落入攻击者手中之前,发现并修复弱点。我们现在就必须利用这一领先优势。因此,OpenAI认真对待了这件事,而我们迎接这一时刻的方式,就是将系统安全提升为全公司的优先事项。The cost of hacking stuff is going to basically zero. And over the past few months, the latest models have made it possible to find thousands of latent security vulnerabilities in software that people depend on every single day. So this matters a lot, not just for security people, but also really for any developer building any type of application. And right now, fortunately, these frontier models are ahead of open-weight models in terms of their cyber capabilities. So this creates what we call the defender's window. This is a window of opportunity to find and fix weaknesses before the same capabilities become widely available and fall into the hands of attackers. We need to use that lead now. So we took this to heart at OpenAI, and the way that we met the moment was by making the security of our systems a company-wide priority.

那意味着要将人员、时间和资源投入到查找并修复漏洞上,并将其列为最高优先级。对于公司而言如此,对于开源项目乃至个人项目而言也是如此。在 OpenAI,我们几个月前开展了一次安全冲刺,四分之一的产品工程师全都专注于加强内部系统的安全性。这是一项规模庞大的工作,也是我们着手构建内部所称的“防御工厂”的起点。这是一个持续运行的闭环:扫描系统、发现并验证漏洞、分配负责人,并核实修复情况。通过对数千项发现进行去重和验证,我们得以扫描代码库,并将精力集中在可能被实际利用的漏洞上,同时将误报率控制在仅 0.81%。That meant committing the people, the time, the resources to find and fix vulnerabilities as a top priority. And while this is true for companies, it's also true for open-source projects and even personal projects as well. So at OpenAI, what it looked like is we actually had a security sprint a couple months ago that had a quarter of all of our product engineers focused solely on strengthening the security of our internal systems. This was a huge effort. And this was really the starting point for building what we call internally our defense factory. This is a continuous loop that scans our systems, finds and validates vulnerabilities, assigns owners, and verifies fixes. So through deduplication and validation across thousands of findings, we were able to scan our code base and focus really only on findings that could lead to actual exploits with a very low false positive rate of 0.81%.

当然,我们也使用 Codex 协助修复问题,而且效果非常出色,回滚率不到 1%。那么,我们究竟是如何做到的?你又该如何使用它?我们将从 OpenAI 内部安全冲刺中学到的一切融入了 Codex Security。Codex Security 提供多种形式:开源插件、CLI 和 SDK。今天,我们还将为云端版本推出一次重大更新,让它成为更开箱即用的解决方案。接下来,Kyle 会介绍我们在安全冲刺期间遇到的一些更关键、更有趣的问题,并向大家展示我们是如何解决这些问题的。And of course, we used Codex to help create the fixes, which it did remarkably well with a rollback rate of less than 1%. So how did we actually make this happen, and how can you use it? We took everything that we learned from our internal security sprint at OpenAI and we built it into Codex Security. Codex Security comes in several flavors. It's available as an open-source plug-in, CLI, and SDK. And today, we're launching a major update to the cloud version, which is a more turnkey solution. So Kyle is going to walk through some of the more critical and interesting problems that we ran into during our security sprint and show you how we address them.

Kyle:谢谢你,Ian。正如 Ian 所说,今天我想谈谈我们运营内部防御工厂时遇到的一些瓶颈,以及我们是如何应对的。Kyle: Thanks, Ian. So today, like Ian said, I'm going to talk about some of the bottlenecks that we hit while we were running our own internal defense factory and how we address them.

威胁背景与并行扫描Threat context and parallel scans

我们将介绍五个主要步骤:为智能体提供上下文、运行扫描、丰富扫描结果、生成补丁,以及将其集成到软件开发生命周期中。每个步骤都直接源自我们在 OpenAI 内部开展安全冲刺的方式。接下来,我们会一起运行 CLI 命令,逐步了解这些环节如何协同运作。Codex Security CLI 是 OpenAI 内部防御工厂的核心构建模块。你也可以利用同样的工具,通过 CLI 搭建自己的防御工厂;该 CLI 完全开源,并采用 Apache 2.0 许可证。首先,我们来看看如何为智能体提供合适的上下文。你可以想象,多年来我们在 OpenAI 编写了相当多的代码。只要让智能体扫描器对着我们的代码仓库说“找出所有漏洞,一个都别漏”,这招并不太管用。We'll cover five main steps, giving agents context, running scans, enriching the findings, generating patches, and integrating this into your software development lifecycle. Each step comes directly from how we ran our internal security sprint here at OpenAI. We'll use the CLI commands together as we walk through these steps to help us understand how it all comes together. The Codex Security CLI was a core building block of OpenAI's internal defense factory. And you can leverage the same tools to build your own defense factory by using the CLI, which is fully open-source and under the Apache 2.0 license. Let's start with giving agents the right context. You can imagine we have quite a bit of code here at OpenAI that we've written over the years. Pointing an agent scanner at our repositories and saying, find all vulnerabilities, make no mistakes, didn't really cut it.

因此,我们需要并行调度大量扫描器,并让每次扫描都专注于代码库中的特定部分。在这个过程中,我们发现,必须为智能体提供足够的上下文,让它理解自己正在查看的内容。系统的这部分是做什么的?它如何融入整体?它通过什么方式对外提供?周围已经有哪些防护措施?我相信大家都知道,其中一些背景信息存在于实际代码库之外。因此,我们认为可以从两个层面为安全智能体提供上下文。第一层是较小范围的上下文,也就是自定义扫描指令。你可以告诉智能体要调查哪些区域、此次扫描的范围包括或不包括哪些内容,以及应重点关注哪些类型的漏洞。这非常有帮助。但我们发现,自己总是在这些指令中一遍又一遍地重复相同的背景信息。So we needed to fan out a large number of scanners and focus each scan on a specific part of the code base. In doing so, we found that it was critical to give the agent enough context to understand what it was looking at. What does this part of the system do? How does it fit into the whole? How is it exposed? What protections are already in place around it? Some of that context, I'm sure you all know, lives outside of actual code bases. So there are two levels at which we think about giving a security agent context. The first is a narrow slice, which is a custom scan instruction. You can tell the agent which areas to investigate, what's in or out of scope for this scan, and which types of vulnerabilities to focus on. This was extremely helpful. But we found ourselves repeating the same background information over and over in those instructions.

因此,我们把这些上下文提取出来,放进一个可在多次扫描中重复使用的知识库。这就是第二层。我们把跨扫描共享的上下文称为知识库。你可以使用这个知识库,也可以让扫描器和验证器都能访问它。知识库中包含架构文档、防火墙配置等内容。它能帮助智能体了解系统,以及源代码中看不到的防护措施。在 OpenAI,我们也开始提交 security.md 文件。如果你知道 AGENTS.md 文件是什么,它们就非常相似,只不过是针对安全的。我们开始在代码库的各个组件中提交这类文件,让产品负责人能够定义自己的威胁模型和安全准则。所有这些内容共同为智能体提供了更全面的上下文,帮助它理解自己正在查看的内容,以及当前扫描所需的具体指示。So we pulled that context out into a knowledge base we could reuse across scans. That's the second layer. Cross scan shared context we call a knowledge base. You can take the knowledge base, or you can make the knowledge base available to both scanners and validators. And it includes things like architecture docs, firewall configuration, etc. It helps the agent understand the system and the protections that aren't visible in source code. At OpenAI, we also started committing security.md files. If you know what an AGENTS.md file, it's a very similar thing, but for security. We started committing these across components in our repo so that product owners could define their own threat models and own their own security guidelines. Together, these give the agent the broader context it needs to understand what it's looking at, along with specific instructions for the scan at hand.

让我们通过使用 Codex 安全 CLI 对一个示例代码仓库进行深度扫描,看看实际效果。开始吧。这里我们用 cat 命令查看第一个 prompt.md 文件。这是自定义扫描提示,其中包含了有关智能体在此次特定扫描中可以重点关注哪些内容的说明。我们将进行一次深度扫描。这里还会展示知识库文件,其中包含有关架构和访问规则的共享上下文。再次说明,这是我们在演示过程中使用的示例代码仓库。现在我们开始深度扫描。你可以看到,我们传入了之前看到的那些文件作为参数,以提供上下文。深度扫描会并行运行多项安全扫描,由智能体调查并验证潜在漏洞。它会汇总扫描结果,并继续进行额外轮次,直到找不到新的问题,或达到配置的上限。Let's see that in action with a deep scan of an example repository using the Codex security CLI. So here we go. This is catting our first prompt.md. This is the custom scan prompt with instructions for what the agent could focus on in this specific scan. So we're going to do a deep scan. We're also going to show the knowledge base file here, which is the shared context about the architecture and the access rules. Again, this is an example repository we're showing as we go through this. So we're going to kick off this deep scan now. And you can see we passed those arguments in to provide the context, those files we saw before. The deep scan runs multiple security scans in parallel with agents investigating and validating potential vulnerabilities. It combines their results and keeps running additional passes until it can't find any new issues or it reaches its configured limit.

去重、优先级和所有权Deduplication, priority, and ownership

所以我们要快进很多,因为你可以想象,扫描整个代码库可能需要很长时间,而且深度扫描非常彻底。那我现在点击这里。有人说我用点击器的时候会发出很多音效,所以大家就包容一下吧。现在我们看到了一些发现。正如我之前提到的,我们必须把 OpenAI 代码库拆分成更小的区域,并并行扫描。这意味着我们要在许多不同的主机上启动一支由数百个代理组成的庞大队伍,分别扫描代码库的不同部分。由此带来的第一个挑战是去重。这正是我在内部安全冲刺期间负责的部分,所以我对它特别有感情。这也是我们遇到的第一个主要瓶颈。我们从各个代码仓库中的不同扫描器收到了数以万计的发现。So we're going to fast forward a ton because this can take a pretty long time, as you can imagine scanning a whole code base. And a deep scan is very thorough. So I'm going to click here. They told me I make a lot of sound effects when I use the clicker, so deal with me. So now we have some findings. As I mentioned before, we had to split the OpenAI code base into smaller areas and scan them in parallel. That meant spinning up a huge fleet of hundreds of agents across a bunch of different hosts, scanning different parts of the code base. The first challenge this introduced was deduplication. This is actually the part that I worked on during our internal security sprint. So it's pretty near and dear to my heart. And it was the first major bottleneck we hit. We had tens of thousands of findings coming in from different scanners across our repositories.

在把这些问题交给开发人员并让他们修复之前,我们需要弄清楚哪些发现对应的是同一个根本问题。面对如此大量的发现,我们需要智能体来帮忙去重。我们在内部开展这项工作后,最终将其提炼成了现在 CLI 中提供的去重工作流。如果你想对从 CLI 获取的扫描结果进行去重,整个流程看起来就是这样。具体来说,如果多个发现描述的可能是同一个漏洞,那么在把这项工作分配给开发人员之前,你需要先理清哪些发现是重复的。这样就不会有人凌晨一点给你发一条愤怒的私信,问你为什么分配给他 32 个工单,而不是一个,因为这些说的根本都是同一个漏洞。And before we handed those off to developers and asked them to go fix them, we need to understand which findings corresponded to the same underlying issues. At that volume, we needed agents to help with the deduplication. And as a result of that work internally, we distilled it into what is now the deduplication workflow available in the CLI. So this is what it would look like if you were trying to deduplicate the scan results that you got from the CLI. And so more concretely, if multiple findings can describe the same vulnerability, before you assign that work to a developer, you need to sort out which findings are duplicates. So you don't have someone sending you an angry DM at like 1 o'clock in the morning asking you, why did you assign 32 tickets to me instead of just one? Because this is all just the same vulnerability.

在我们的内部冲刺中,我们发现所有扫描结果中有 36% 是重复项。去除这些重复项后,我们花在调查同一问题上的时间更少,开发人员的工作量也大幅减少。接下来,我们必须按照安全评估标准对这些发现进行分类,并确定修复优先级。完善这些发现信息还需要两个步骤,因此我们必须回答两个关键问题。第一,这些发现对 OpenAI 这家公司有多重要?第二,应该由谁负责处理这些漏洞?要回答第一个问题,我们必须明确自己最关注哪些类型的漏洞。我们首先将严重漏洞定义为外部人员可能借此获得本不应拥有的访问权限的漏洞。随着我们逐渐了解扫描器发现的漏洞及其与内部框架的契合方式,我们对这套评估标准进行了多次迭代。In our internal sprint, we found that across all of the scans, 36% of our findings were duplicates. Removing those dupes meant less time spent investigating the same issue and much less work for developers. From there, we had to classify them using our security rubric and prioritize what to fix. The next two steps in enriching the findings. So we had to answer two critical questions. First is, how important are these findings for OpenAI as a company? And two, who should own the vulnerability? To answer the first question, we had to define which types of vulnerabilities we cared about the most. We started with defining critical vulnerabilities as ones where external actors could gain access they shouldn't have. We had to iterate on this rubric several times as we learned more about the vulnerabilities the scanners produced and how they fit into our internal framework.

借助评分标准,你可以通过 CLI 处理你的发现项,并得到一个按优先级排序的列表,这样就能根据公司最关注的事项,知道应该先处理什么。如果你是独立开发者,也可以根据你自己最在意的事情来排序。给你点赞。下一步是确定应该由谁来处理这些发现项。对我来说,这实际上是我们 OpenAI 内部冲刺中最出乎意料、也最困难的一部分。要弄清楚在一家发展如此迅速、规模扩张如此之快的公司里,每件事由谁负责,确实需要投入大量人力。不过,一旦我们把这些信息整理成规范,就能据此可靠地将发现项分配给相关团队,大幅减少工单在团队之间来回转派的情况。有了这些经过丰富完善并已分配给负责人的优秀发现项之后,下一步就是着手修复它们。With the rubric, you can run your findings through the CLI and get a prioritized list so you know what to work on first, based on what your company cares about. Or if you're an indie developer, what you care about as well. Shout out. The next step is figuring out who should work on that finding. For me, this was actually the most surprisingly difficult part of our OpenAI internal sprint. Knowing who owns what in a company that's moving so fast and growing so quickly took actually a large amount of human effort. Once we codified it though, we were able to use that codification to reliably assign findings to the relevant teams with minimal churn in tickets being passed back and forth. So, with all of these great enriched findings that have been assigned, the next step is actually fixing them.

已验证的补丁与开发流程Verified patches and the development process

一开始,我们采用了人在环路中的方式:把漏洞工单分配给各个团队,由他们让自己的 Codex 查看分配到的工单、修复问题,再推动修复通过 PR 并上线生产环境。随着我们不断积累经验、改进流程,我们开始代表开发人员自动生成这些补丁。你们中可能有人会想:“不可能,我可不想在自己的系统里使用自动生成的安全补丁。”正是这种想法,让我们意识到,这个过程更像是一个可以逐步调高的旋钮,而不是一个一按就能打开的开关。我们必须先对这些补丁建立信心;等到具备了必要的上下文后,我们就做到了这一点。自动生成的补丁最终成了非常有价值、也极其实用的工具,帮助我们将这一做法扩展到数以万计的发现项。At first, we started with a human in the loop, assigning vulnerability tickets to the teams and they would prompt their Codex to go look at the ticket they were assigned and go fix the issue and then shepherd it through a PR and get it to production. As we learned more and more and improved our processes, we started auto-generating these patches on behalf of the developers. Some of you may be thinking, no way, I do not want auto-generated security patches in my system. Which, that thought process is why we found this process is more of a dial that you turn up, not a switch that you flip on. We had to gain confidence in the patches and once we had the necessary context in place, we were able to do so. And the auto-generated patches actually became a really valuable tool and super useful as we scaled this across the tens of thousands of findings.

所以,这些都促使我们推出了 Codex 安全 CLI 的 patch 命令。你可以针对发现的问题运行它,告诉智能体如何启动开发环境来测试,并使用一个特殊标志,例如验证提示文件。你可以把它放进一个……你可以,抱歉,它可以创建一个 PR 来修复该漏洞。我们开始在内部使用时,自动生成补丁的回滚率不到 1%。[接下来提到的 0.81% 含义不明确;Ian 之前介绍这个数字时说的是误报率。] 回滚率之所以这么低,我们之所以能对这些自动生成的补丁如此有信心,部分原因在于我们在合并之前会验证修复效果。我们将这套流程集成到了 verify fix 命令中,你可以把它作为对补丁本身的二次检查,确保发现的问题确实已修复。你可以把它看作某种对抗性智能体,用来检验你创建的修复方案。So, that led us, all of that led us to the Codex security CLI patch command. So, you can run it against the finding, tell the agent how to spin up the dev environment to test it with a special flag like validation prompt file. And you can put it in a, you can, sorry, it can put up a PR to fix that vulnerability. When we started using this internally, we had a less than 1% rollback rate on auto-generated patches. [The next reference to 0.81% is ambiguous; Ian introduced that figure earlier as the false-positive rate.] Part of that low rollback rate and the reason we could be so confident in those auto-generated patches was due to how we verified the fixes before we merged them. We baked that into a verify fix command that you can use as a secondary check on the patches themselves to make sure the finding is actually fixed. You can think of this as an adversarial agent of sorts against the fix that you've created.

那么,这就是我们现在生成的、经过验证的补丁。接下来,我们会提交一个 PR,并按照贵公司的常规 SDLC 流程推动其合并。我认为,通过 Codex 安全 CLI 使用这些安全原语,最大的优势之一,也是最重要的一点,就是你可以将它们融入自己的工作方式。生成经过验证的补丁,是修复漏洞的重要一步。之后,这项变更还需要经过你们团队自己的开发流程。我所见过的每个组织,流程都有些不同,有些甚至差异很大。你们可能至少需要进行代码审查,也可能还要经过 QA、产品审查,或者其他环节,才能真正将代码发布到生产环境。通过 CLI 提供这些安全构建模块,让你可以灵活决定如何以及在何处使用这些工具。So, this is now our generated verified patch. From here, we would put up a PR and follow the normal SDLC in your company to get it merged. One of the best and, in my opinion, the most important parts of having access to these security primitives via the Codex security CLI is that you can integrate them into the way that you work. Generating a verified patch is a great step towards getting a vulnerability fixed. That change then needs to go through your own team's development process. Every organization that I've seen does that just a little bit differently or very differently. And you probably need at least something like a code review, maybe you have a QA step, maybe there's product review, or another step before you can actually ship the code to production. Having the security building blocks available through the CLI gives you the flexibility in how these tools are used and where.

PatchBench 与持续扫描PatchBench and continuous scanning

一旦你拥有了自己的防御工厂,如何在防御者的时间窗口内保持领先?而且,随着模型本身越来越擅长修复这些漏洞,这套工作流实际上会变得越来越有用。那么,Ian,你能不能再给我们展示一下眼前的内容?Once you have a defense factory of your own, how do you maintain the lead within the defender's window? And as the models themselves get better and better at fixing these vulnerabilities, this workflow actually gets more and more useful. So, Ian, can you show us a little bit more about what we're seeing here?

Ian:谢谢你,Kyle。我们在补丁质量和成本方面都看到了显著改进。这是 PatchBench。在这个评测中,第三方将 5.6 Sol 和 6 Astra 结合 Codex Security 的补丁技能进行了比较。显然可以看到,采用中等推理模式的 Astra 表现大幅优于采用 X-high 推理模式的 5.6 Sol,而且每个案例的成本还不到一半。作为参考,OpenAI 的人类基准成绩就在这里,约为 50%。毋庸置疑,我们正与研究团队密切合作,让你的防御工厂随着模型的进步而不断变强。Ian: Thank you, Kyle. So, we're seeing a lot of improvements in both patch quality and cost. So, this is PatchBench. It's a third-party eval which compares, in this case, 5.6 Sol versus 6 Astra using Codex Security's patch skill. Obviously, you can see that Astra at medium reasoning outperforms 5.6 Sol at X-high pretty substantially at less than half the cost per case. And for reference, humans at OpenAI benchmark right about here, 50%. So, needless to say, we are working very closely with research so that as models get better, your defense factory gets better.

我们预计,未来几天和几个月里,这方面还会有很大改善。我们在内部全面推出这一做法时,也遇到了 Kyle 提到的所有瓶颈,比如判断哪些发现是重复的、验证漏洞、实际修补漏洞等等。这条曲线是我们内部安全工作负荷随时间变化情况的一个经过高度简化的版本。可以看到,工作量曾出现大幅飙升,积压了大量待处理事项,需要逐步清理。不过,结合 OpenAI 的经验来看,我对许多组织未来的曲线走势其实非常乐观。最终,我们进入了一种稳定状态:发现的漏洞少得多,而且发现速度比使用 AI 查找漏洞之前快得多。And we expect a lot more improvement here in the coming days and months. So, as we rolled all this out internally, we ran into all the bottlenecks that Kyle has talked about. So, things like figuring out which findings are duplicates, validating the vulnerabilities, actually patching them, and so forth. This curve is an extremely sanitized version of our internal security workload over time. So, you can see that there's this huge spike of effort and a large backlog that needs to be burned down. But, to generalize our experience at OpenAI, I'm actually really optimistic about the way this curve will look for many organizations. We eventually arrived at a steady state in which there are much fewer vulnerabilities that are found much more quickly than before the use of AI to find vulnerabilities.

然后,你知道,你会逐步清理积压问题、修补漏洞,直到进入尾部较窄的阶段:在新问题合并之前就发现它们,并定期运行扫描。我认为,尾部较窄的这一阶段非常重要,因为你需要一种方法让这条曲线保持在低位;这意味着,随着代码库不断变化,你需要持续运行这些扫描。我们开源的 CLI 和 SDK 就像是基础构件,对吧?你可以把它们接入代码仓库和代码审查流程,也可以自己把它们串联起来,或者将它们接入 CI/CD、GitHub Actions 等。不过,我们还通过 Codex Security Cloud 以更开箱即用的方式解决了这个问题,Sam 今天早些时候在主题演讲中也介绍过它。And, you know, you work down the backlog, you patch the vulnerabilities, you get down to that skinny part of the tail, where you're catching new issues before they merge, and you're running periodic scans. And I think this skinny part of the tail, you know, is very important, because you need a way to keep that curve down, which means that you need some way to run these scans continuously as the code base changes. The CLI and the SDK that we've open sourced are like the nuts and bolts, right? So, you can connect them to your repositories and your review process, you can string them together yourself, you can put them into CI CD or GitHub Actions and so forth. But, we've also solved this problem in a much more turnkey way through Codex Security Cloud, which Sam talked about in the keynote earlier today.

Codex Security Cloud 演示Codex Security Cloud demonstration

所以,Codex Security Cloud 会持续运行这一安全闭环,你不必自己协调整个流程。你只需连接 GitHub 代码仓库即可。Codex Security Cloud 最棒的一点,也是这次发布最值得关注的亮点之一,就是它让你能够使用我们的 Daybreak 级模型,这些模型是专为安全应用场景设计的。所以,Codex Security Cloud 底层运行的就是这些模型。接下来我可以快速演示一下,让你看看它实际运行起来是什么样的。 第一步,在插件市场中找到 Codex Security Cloud。也就是说,在 Codex 中打开插件,搜索 Codex Security Cloud 并安装。然后打开这个插件。别忘了连接 GitHub 连接器。接下来,我们来新建一次扫描。我会把它设置为每次有新提交时都运行。So, Codex Security Cloud runs this continuous security loop so you don't have to orchestrate it yourself. You just hook up your GitHub repositories. And the best part about Codex Security Cloud, and really one of the most notable things about this launch, is that it gives you access to our Daybreak class models, which are designed specifically for security use cases. So, that's what's running under the hood in Codex Security Cloud. So, I can show you a quick demo so you know what it looks like in action. Step one, find Codex Security Cloud in the plugin marketplace. So, this is within Codex, you open plugins, you search for Codex Security Cloud and install it. Open the plugin. Also, remember to hook up your GitHub connector. So, we'll go in and we'll run a new scan. I'm going to set up this one to run on every single new commit.

我们点击扫描,然后快进一段时间。你就会看到这些结果。这是整个组织的视图,展示了安全流水线随时间推移的情况,包括发现的问题等等。你可以深入查看这些结果,了解一些具体的发现。然后,你还可以选择自动生成补丁。这就是我们之前讨论的完整持续闭环。它会直接向 GitHub 创建一个 PR。 如果你想以更加自动化的方式运行 Kyle 刚才演示的这些功能,可以使用 Codex Security Cloud。我们已经对它进行了重构。现在,它默认由我们的 Daybreak Blue 模型驱动。你也不必经过任何访问申请或权限审批之类的流程。我们非常高兴能把这些我们一直在 OpenAI 内部使用的工具提供给你。We will hit scan and fast forward a bit. And you get these results. So, this is org-wide view of what your security pipeline looks like over time, the issues that are found and so forth. You can dig into these results and look at some of the specific findings. And then optionally, you can auto-generate a patch. So, this is kind of the full continuous loop that we were discussing earlier. And it will open a PR straight to GitHub. So, if you want to run these same capabilities that Kyle has shown you in a much more automated way, use Codex Security Cloud. We rebuilt it. It's now powered by our Daybreak Blue model by default. And you don't have to go through any access requests or permissions and so forth. We're really so excited to give you these tools that we've been using internally at OpenAI.

因此,你可以在自己的代码库和项目中这样做。通过 NPM 安装 Codex Security。它是完全开源的。或者,你也可以在本周结束前,到插件市场中找到 Codex Security Cloud。就这些。感谢大家的到来。好。So, you can do this in your own code base, in your own projects. Install Codex Security on NPM. It is completely open source. Or, you can find Codex Security Cloud in the plugin marketplace before the end of the week. That's all. Thanks, everyone, for coming. Yeah.

值得记下

  1. 内部冲刺期间,我们发现所有扫描汇总后有 36% 的发现是重复项。
  2. 可以把这一步看成派出另一个智能体,专门挑战你刚做出的修复。

← 回到本期 · 第 17 条