GPT中文GPT中文论坛社区AI工具软件大全 GPT.CC Claude Fable 5 · GPT-5.6 直连,不用连国际网 去看看 →
AI工具软件大全
首页 / GitHub 项目 / Codex Security

Codex Securityopenai/codex-security

帮你找出并修复代码里的安全漏洞

★ 1.4 万 星 本周 +774 TypeScript 开源许可 Apache 2.0 · 商用可以 最近更新 2026-11-22 官方仓库 → 官网 →
01

Codex Security 是干什么的

Codex Security 是 OpenAI 推出的安全工具,专门帮你在代码里找漏洞、查清楚问题出在哪,并且给出修复办法。不管是自己写的小项目还是公司的大工程,它都能帮你把安全风险提前发现,省得等出了问题再补救。

它有好几种用法:可以在 Codex 里选一个安全检查流程直接跑;也可以在命令行里扫描整个代码仓库;还能接到自动化流程里,比如让 GitHub 定期自动扫描。扫描完会生成报告,告诉你哪里有问题、严重程度如何,还能直接生成修复补丁。

02

Codex Security 主要功能

扫描代码找漏洞可以扫整个仓库、指定目录或 Git 改动,深度扫描会重复标准扫描并去掉重复结果。
验证并修复问题对疑似漏洞做验证,生成修复补丁,也能检查已有的修复是否真的有效。
生成安全策略文档帮你起草 SECURITY.md 安全策略,并保存威胁模型方便以后查看。
查看和整理结果浏览已保存的扫描和漏洞,识别重复项,按自己的标准评估严重程度,还能从代码和 Git 历史里推荐负责人。
对接第三方工具可以导入其他扫描器的结果,把漏洞同步到 Linear、Jira、GitHub,或导出 SARIF、JSON、CSV。
自动化批量扫描支持在 CI 和容器里自动跑扫描,也能一次扫多个仓库或项目组件。
03

Codex Security 使用案例 — 能拿来做成什么

案例 1在 Codex 里查安全

开发者在 Codex 会话里打开仓库并启用安全插件,让它重点扫认证和授权部分,拿到报告、源码证据和覆盖范围说明。

案例 2终端里扫仓库

用户在仓库目录里用命令行跑一次扫描,完成后打开生成的 Markdown 报告看结果,之后还能找回最近一次扫描。

案例 3GitHub 每周自动扫

团队在 GitHub 仓库里配置每周自动扫描,把 API 密钥存成仓库密钥,扫描结果只报告不阻断任务。

案例 4容器批量扫多仓库

用自带的 Docker Compose 配置扫描一批仓库,结果和登录状态在多次运行之间保留下来。

案例来自项目官方说明里举的例子和演示,不是本站编的。

04

Codex Security 怎么下载安装

用之前要准备:需要 Node.js 22.13.0 以上(22.x 系列)或 24.x/26.x,以及 Python 3.10 以上;用自动化功能时还需要 OpenAI 或 Codex 的 API 密钥

复制下面的命令,粘进终端(命令行)回车就装好了:

Node.js(npm)
npm install --global @openai/codex-security
Node.js(npm)
npm install @openai/codex-security

命令原样摘自项目官方说明,本站没有改动。

05

Codex Security 适合谁用

开发人员安全工程师运维团队
06

Codex Security 好在哪、用之前要注意什么

好在哪

  • 既能手动扫,也能接进 CI 自动跑
  • 从找漏洞到出补丁、验修复一条龙
  • 结果能导出成常见格式,方便对接别的工具
  • 开源且采用 Apache-2.0 许可

要注意

  • 需要自己准备 OpenAI 或 Codex 的 API 密钥
  • 要装 Node.js 和 Python 环境,得会用命令行
  • 没有现成安装包,只能通过 npm 安装
07

Codex Security 免费吗?能不能商用?

要钱吗开源免费(软件免费,接的大模型按对方价格付费)
开源许可Apache 2.0
能不能商用可以

能免费用、改、商用;改了代码再发出去要注明改过哪里,并保留原来的版权和许可说明。

以上是对许可证的通俗解释,不是法律意见;正式商用以官方仓库的 LICENSE 文件为准。

08

Codex Security 最近更新 — 版本动态

最新版 action-v0.10.1 改了啥
  • 这一版是配套 Codex Security 0.10.1 的 GitHub Action。
  • 它会安装 0.10.1 版本的 npm 包。
  • 用法上在 workflow 里引用这个 Action 的固定提交即可。
09

Codex Security 大家常问

这个工具免费吗?

项目本身开源,采用 Apache-2.0 许可。但扫描要调用 OpenAI 或 Codex 的接口,需要你自己的 API 密钥,会产生相应费用。

Windows 能用吗?

说明里没有专门提 Windows。它通过 npm 安装,需要 Node.js 22.13.0 以上的 22.x 版本,或 24.x、26.x,以及 Python 3.10 以上。

支持中文吗?

说明里没有提到界面或报告的语言选项,从现有内容看不出是否支持中文。

扫描结果会传到外面吗?

本地扫描不需要连云端也能用。云端连接是可选的,只有你主动发布报告或读取云端结果时才会用到。

一定要有显卡吗?

说明里没有提到显卡要求,它是在本地跑命令行、调用接口来工作的,不涉及本地跑模型。

10

Codex Security 怎么样 — 大家怎么说

下面是海外开发者在 Hacker News(国外程序员常去的技术论坛)上讨论这个项目的真实评论,按讨论热度挑选,中文由 AI 翻译,点「看原文」可以对照英文。

D dangelosaurus Hacker News
HN 的朋友们好,我是 Michael,Promptfoo 的联合创始人,也是在 OpenAI 参与 Codex Security CLI 工作的人之一。感谢大家来看这个项目,也感谢指出认证方面的问题。我们刚刚把它开源,还有很多地方需要改进。预计产品会快速迭代。如果你试用一下,我很想听听哪些地方好用、哪些地方应该改进。欢迎在这里提问。CLI 文档:https://learn.chatgpt.com/docs/security/cli 补充:如果你想帮忙把它做得更好,我们在招人:https://openai.com/careers/full-stack-software-engineer-cybersecurity-products-san-francisco/
看原文

Hey HN, Michael here, co-founder of Promptfoo and one of the people working on the Codex Security CLI at OpenAI. Thanks for checking this out and for flagging the auth issues. We just open-sourced it, and there's still plenty for us to improve. Expect the product to evolve quickly. If you try it, I'd really appreciate hearing what works well and what you think we should improve. Happy to answer questions here. CLI docs: https://learn.chatgpt.com/docs/security/cli EDIT: If you'd like to help make this better, we're hiring: https://openai.com/careers/full-stack-software-engineer-cybersecurity-products-san-francisco/

2026-07-28 · 64 条回复 · 出处 · 帖子:Codex Security
G gregwebs Hacker News
刚在一个小仓库上跑了一下。它跑了将近一个小时然后被中断了。它耗尽了我 Pro 计划每周用量的一半。 npx codex-security scan . [00:00] Preparing scan [00:00] Authentication: stored Codex credentials. [00:03] Preparing scan [01:20] Running scan [01:20] Preflight: worker delegation supported (up to 8 worker slots). [52:47] Running scan codex-security: Could not save the Codex Security scan: Repository HEAD changed while the scan was running. Start a new scan. codex-security: Partial output was kept at ...
看原文

Just ran it on a small repo. It ran for almost an hour and then got interrupted. It drained half my weekly usage on a Pro plan. npx codex-security scan . [00:00] Preparing scan [00:00] Authentication: stored Codex credentials. [00:03] Preparing scan [01:20] Running scan [01:20] Preflight: worker delegation supported (up to 8 worker slots). [52:47] Running scan codex-security: Could not save the Codex Security scan: Repository HEAD changed while the scan was running. Start a new scan. codex-security: Partial output was kept at ...

2026-07-28 · 26 条回复 · 出处 · 帖子:Codex Security
P petilon Hacker News
它是怎么工作的?这个工具会把代码上传到 ChatGPT 做分析吗?有些公司项目可能不允许这样做。
看原文

How does it work? Does the tool upload code to ChatGPT for analysis? That may not be allowed for some corporate projects.

2026-07-28 · 6 条回复 · 出处 · 帖子:Codex Security
G game_the0ry Hacker News
我在想,这类工具会不会让 snyk 这样的公司倒闭。我们公司用 snyk,我一直不太满意。
看原文

I wonder if tools like this will put companies like snyk out of business. We use snyk at work and I have not been satisfied.

2026-07-28 · 5 条回复 · 出处 · 帖子:Codex Security
M minraws Hacker News
我好像碰到了一堆“你正在尝试我们不支持的操作”这类错误……非常烦人。他们能不能解释一下它适用于哪些类型的项目,以及它怎么确认我拥有这个项目?比如它对 Linux 内核是不是就完全不能用,哪怕是我自己提交的补丁?
看原文

I seem to have gotten a bunch of you are trying to stuff we don't allow errors.. very annoying. Can they explain what types of projects it works on and how does it check I own it? Like will it just not work on Linux kernel even on my own patches to it?

2026-07-28 · 3 条回复 · 出处 · 帖子:Codex Security
P petesergeant Hacker News
我觉得这东西除了是给他们现有模型套了个方便的 CI 包装器之外,没什么实质内容?补充:这里还是有点东西的:https://github.com/openai/codex-security/tree/main/sdk/typescript/_bundled_plugin/skills
看原文

I don't think there's much to this other than it being a convenient CI wrapper around their existing models? Edit: there's a little bit more meat here: https://github.com/openai/codex-security/tree/main/sdk/typescript/_bundled_plugin/skills

2026-07-28 · 3 条回复 · 出处 · 帖子:Codex Security
不用注册 · 只需算术验证 · 审核后展示
11

Codex Security 项目数据

1.4 万星标(收藏数)
+658近 7 天新增星标
+774本周新增星标
1,129被复制改造(fork)
224待处理的问题和建议
2026-07-13项目建立
2026-11-22最近一次改代码

数据来自 GitHub,本站每周核对一次,最近核对于 2026-11-22。

12

和 Codex Security 类似的项目和工具

介绍、功能、案例、优缺点和常见问题由 AI 根据项目官方说明改写成中文;星数、版本、安装包来自 GitHub;评论来自 Hacker News 原帖(附出处)和本站用户(审核后展示)。核对于 2026-11-22。功能和用法以 官方仓库 为准。
← 回 GitHub 热门 · 最新冒头 · 安装最多