Depi称Codex提示注入可通向npm发布权限
先了解这件事
安全公司Depi于2026年11月11日经Bugcrowd披露openai/codex仓库利用链:Issue Labeler工作流把任意用户可提交的issue标题和正文送入Codex提示词,攻击者可在Codex沙箱执行任意命令,经/tmp/下未鉴权调试管道读取Runner.Worker进程内存,窃取GITHUB_TOKEN与ACTIONS_RUNTIME_TOKEN;再用Cacheract投毒rust-ci缓存获得contents:write,植入带id-token:write的持久化后门工作流,并结合release:delete漏洞,Depi称可取得向官方@openai/codex npm包发布恶意版本的凭证。Depi提交完整概念验证,OpenAI已接受并修复;据披露没有恶意npm版本到达用户,threat.wiki称OpenAI发放1,000美元初始赏金。该包每月被下载数百万次。
AI 根据报道生成 · 5 天前更新
后续时间线
- X@Basant_Pandey· 讨论@OpenAI Depi's full write-up: https://t.co/U2Zv6JvqAy(新标签页打开原帖)
- Hacker NewsHacker News· 讨论Backdooring Codex(新标签页打开原帖)
- Depi精选Depi 称 Codex 仓库 Actions 利用链可通向 npm 发布权限,OpenAI 已修复
安全公司 Depi 披露 openai/codex 仓库的一条漏洞利用链,从 issue 提示注入起步,在其测试仓库中演示了代码执行,并称最终可取得向官方 @openai/codex npm 包发布恶意版本的凭证。openai/codex 的 Issue Labeler 工作流把任意用户可提交的 issue 标题和正文直接送入 Codex 提示词,攻击者借此在 Codex 沙箱内执行任意命令,再通过 /tmp/ 下未鉴权的 CoreCLR 调试管道读取 Runner.Worker 进程内存,窃取 GITHUB_TOKEN 等机密;随后用 Adnan Khan 的 Cacheract 工具投毒 rust-ci 工作流缓存,并结合其发现的 release:delete 漏洞,Depi 称可向 GitHub 请求 npm 受信的签名 JWT。Depi 经 Bugcrowd 提交了完整概念验证,OpenAI 已修复。该包每月被下载数百万次。
- 日期未标Bugcrowd精选研究团队称可利用GitHub Actions链在Codex植入后门工作流
Depi's Research Team 通过 Bugcrowd 披露针对 openai/codex 的完整 CI/CD 攻击链,漏洞已被 OpenAI 接受并修复。攻击从 issue-labeler.yml 工作流的提示注入开始,任何用户在 GitHub issue 中嵌入攻击者控制的指令,即可在 Codex 智能体沙箱内实现命令执行;随后利用 /tmp/ 中暴露的 .NET CLR 调试管道逃逸 workspace-write 沙箱,读取 runner 进程内存并获取 ACTIONS_RUNTIME_TOKEN 与 GITHUB_TOKEN;再借这些凭据实施 GitHub Actions 缓存投毒,转入权限更高的 rust-ci.yml 工作流获得 contents: write,并植入带 id-token: write 的持久化后门工作流。
- 日期未标threat.wiki精选研究者披露 OpenAI Codex issue-labeler 提示注入链,可一路获得 npm 发布权限
Depi Security 于 2026 年 11 月 11 日披露针对 openai/codex 仓库的完整利用链,从 GitHub issue 提示注入一路打到官方 @openai/codex 包的 npm Trusted Publishing 权限;OpenAI 已修复核心漏洞,披露称没有恶意 npm 版本到达用户。该链经 Bugcrowd 披露,OpenAI 立即部署修复并发放 1,000 美元初始赏金(政策对关键漏洞最高 10 万美元);threat.wiki 据此建议统计从不可信文本到发布凭证的跳数,并清理通配 allow-users。
相关讨论
- 72 小时以前 · 不计入 72 小时的数字
- X@GCSAqianye给 issue 打标签的 Codex 工作流,会把任意 GitHub issue 原文送进提示词。再叠上沙箱逃逸和 Actions 缓存投毒,就能给官方 `@openai/codex` 下一版埋后门。OpenAI 已经修了,但模式还在:a…(新标签页打开原帖)
- X@P7RIM3depi's full chain writeup, bounty is initial and still under review. image: Depi https://t.co/cklGNBVsEU(新标签页打开原帖)
- X@P7RIM3a github issue. thats all it took researchers prompt injected the codex bot that labels issues on openai's repo, escap…(新标签页打开原帖)
- X@IzumaNetworksDepi prompt-injected Codex's issue-labeler bot with a GitHub issue, then chained runner access into control of OpenAI's…(新标签页打开原帖)
- X@ZeroAgencyAIThe chain: prompt injection, code in the agent's sandbox, sandbox escape, secrets read from memory, poisoned Actions ca…(新标签页打开原帖)
1 赞·11月13日 02:45采集
- X@ZeroAgencyAIResearchers at Depi, a security company, showed how one GitHub issue could reach OpenAI's Codex release pipeline. A bot…(新标签页打开原帖)
- X@JesseNotAiThe issue text went straight into the agent's prompt. From there: code in its sandbox, a breakout, then the tokens to p…(新标签页打开原帖)
- X@JesseNotAiSay your team hooks up a coding agent to sort new GitHub issues. Anyone on the internet can open an issue. Researchers…(新标签页打开原帖)
- X@ArbiterForgeOne GitHub issue was enough. Depi fed a crafted issue into OpenAI's own Codex labeler, escaped the sandbox through debu…(新标签页打开原帖)
- X@SaFeRamirezAsí casi backdoorean Codex en npm: un issue público, el bot con Codex lo leyó como órdenes y filtró tokens. Si tu agent…(新标签页打开原帖)
- X@abhiunixopenai's codex repo had a bot that labels new github issues. anyone could open one, and the title and body went straigh…(新标签页打开原帖)
6 赞·11月13日 02:45采集
- X@ethansmadjaMillions of devs were one GitHub issue away from installing a backdoored Codex. 🤯 Insane exploit chain by @depi_ 👇 ht…(新标签页打开原帖)
2 赞·11月13日 02:45采集
关注度走势
每天新增来源
- 11月25日新增2个来源(2家媒体、0个账号)
- 11月26日新增0个来源(0家媒体、0个账号)
- 11月27日新增0个来源(0家媒体、0个账号)
- 11月28日新增0个来源(0家媒体、0个账号)
- 11月29日新增0个来源(0家媒体、0个账号)