OpenCode 控制台泄露事件可能已暴露 OpenAI、Anthropic 和 Google 的 API 密钥
Swati Khandelwal2026年10月19日
数据泄露 / 人工智能
该公司称,一名入侵者在10月16日晚些时候攻入了 OpenCode 的一个遗留系统,可能暴露了用户保存在 OpenCode Console 中的第三方 AI 提供商密钥。
Console 是 OpenCode 的一项可选托管服务:工作区将其自己的 OpenAI、Anthropic 或 Google 密钥保存其中,Console 使用该密钥调用提供商,以便团队成员可以使用这些模型而无需看到密钥本身。
受影响的用户组占 Console 用户的1.4%,且所有这些人均关联了外部提供商。OpenCode 已通过电子邮件通知他们撤销与每个提供商的密钥并更换新密钥。
该电子邮件于10月17日上午发出,主题为“需要采取行动:潜在的提供商密钥泄露”。OpenCode 当天晚些时候在 X(原推特)上的一篇帖子中表示,未收到此类邮件的用户未受影响。
面临风险的密钥是那些粘贴到 Console 中的密钥。OpenCode 的命令行和桌面应用程序将在本机上添加的提供商密钥保存在本地的 SQLite 数据库中。联合创始人 Dax Raad 在 X 上的一条回复中写道,此次泄露涉及“OpenCode Console,而非 OpenCode 本身”,且这些密钥“从未传送到我们这里”。
提供商密钥是一种持有者凭证:任何拥有副本的人都可以向账户所有者发起计费请求,直到提供商撤销该密钥为止。从 Console 中删除密钥并不能撤销它,Console 的预算也无法限制此类使用,因为 Console 只能看到通过其自身网关的请求。
对于保存在 Console 工作区中的密钥,OpenCode 的电子邮件以及各提供商自身的指导方针提供了以下步骤:
在提供商自己的仪表板中撤销该密钥并创建新密钥,遵循 OpenAI、Anthropic 或 Google 提供的说明。
更新所有使用旧密钥的应用程序和脚本。
在提供商处审查自至少10月16日起未由您发起的请求的使用情况和账单。OpenCode 尚未说明未经授权访问是从何时开始的。
在提供商处设置支出限额或警报,并为每个工具分配独立的密钥,以便复制的密钥造成的损害更小,且其使用更容易追踪。
一些用户表示他们已经为未运行的使用情况支付了费用。Dealroom 报道称,Colin Parsons 在 X 上写道,他的 OpenAI 密钥被用于产生281美元的费用,Anthropic 密钥被用于产生168美元的费用,而 Preston Zeller 的损失高达1,700美元。
Notebookcheck 报道了一位 Reddit 用户声称其 Anthropic 账户上有400美元的未经授权使用情况,另一位用户则称 Google 使用量约为200欧元,随后该项目被暂停。
这些都是用户自己的账户。OpenCode 自身的措辞是密钥“可能已暴露”,且它并未说明任何密钥已被复制或滥用。
OpenCode 在10月17日的帖子中还称该事件仍在持续,表示公司正与 Anthropic、OpenAI 和 Google 合作修复问题,并将此次泄露描述为“与大规模蒸馏攻击有关”。该公司未提及任何人或说明两者之间的联系,也未透露遗留系统是什么、如何被攻入、持有多少密钥,以及1.4%的用户具体代表多少人。
蒸馏是 AI 模型提供商用来描述那些大量抓取模型答案以训练竞争对手模型的活动的术语。Anthropic 在9月表示,此类活动背后的实验室通过由被盗信用卡、登录凭证和窃取的 API 密钥创建的虚假账户网络访问其模型。被盗的密钥还有其他用途:黑市会转售 AI 令牌和密钥,并利用它们产生巨额账单。
Raad 在 X 上写道,攻击者在10月18日仍在试图侵入 OpenCode 的系统:“过去48小时内他们不间断地试图攻击我们的系统”,并且“一个副作用是 everything is getting hardened(所有系统都在加固中)”。
觉得这篇文章有趣?请在 Google News、Twitter 和 LinkedIn 上关注我们,以阅读我们发布的更多独家内容。
分享
推文
分享
分享
分享
⚡ 本周头条新闻
GhostAction 入侵约 1,900 个 GitHub 账户,目标涉及超过 30,000 个仓库
研究人员发布针对预认证 AnyDesk Linux 漏洞的有效利用代码,可获取 root 权限
GitLab 修复 CVSS 评分为 10.0 的严重缺陷,该漏洞可能允许未认证用户运行服务器端代码
微软修复创纪录的 1,413 个漏洞,包括被利用的 Windows Shell 错误
研究人员利用公开可用的 OpenAI 模型,在六天内构建出价值 250,000 美元的 Chrome 全链利用代码
⚡ 每周回顾:Helpdesk 零日漏洞、恶意证书、ShinyHunters 被捕、欺骗 AI 的恶意软件等
关键 PwnEscape Linux 内核漏洞允许访客虚拟机读取主机内存
Docker 修复了持续两年的严重 Hub 缺陷,该漏洞曾允许一名用户以其他用户身份推送镜像
加载更多 ▼
⭐ 精选资源
下载《2026 年代理安全报告》,获取五步风险降低框架
将您的 AI 风险优先级与 1,600 位 CISO 进行基准测试——下载《2026 年报告》
尚无利用代码?预览在 Summit 演示中验证 CVE 暴露情况
获取用于治理 AI 代理的五阶段身份成熟度路线图
OpenCode Console Breach May Have Exposed OpenAI, Anthropic, and Google API Keys
Swati KhandelwalOct 19, 2026
Data Breach / Artificial Intelligence
An intruder reached a legacy system at OpenCode on the night of October 16 and may have exposed the third-party AI provider keys that users had saved in OpenCode Console, the company said.
Console is OpenCode's optional hosted service: a workspace saves its own OpenAI, Anthropic, or Google key there, and Console uses that key to call the provider so team members can use the models without ever seeing the key.
The affected group is 1.4% of Console users, all of whom have an outside provider linked, and OpenCode has told them via email to revoke those keys with each provider and replace them.
The email went out on the morning of October 17 under the subject line "Action Required: Potential provider key breach." Anyone who did not get one was not affected, OpenCode said in a post on X later that day.
The keys at risk are the ones pasted into Console. The OpenCode command-line and desktop apps keep provider keys added on the machine in a SQLite database there. The breach involves "the OpenCode Console, not OpenCode itself," co-founder Dax Raad wrote in a reply on X, and those keys "never come to us."
A provider key is a bearer credential: whoever holds a copy can run billable requests against the owner's account until the provider revokes it. Deleting the key from Console does not revoke it, and a Console budget cannot cap that use either, because Console only sees requests that pass through its own gateway.
For a key that was saved in a Console workspace, OpenCode's email and the providers' own guidance give these steps:
Revoke the key in the provider's own dashboard and create a new one, following the instructions from OpenAI, Anthropic, or Google.
Update every application and script that used the old key.
Review usage and billing at the provider for requests you did not make, going back at least to October 16. OpenCode has not said when the unauthorized access began.
Set a spend limit or alert at the provider and give each tool its own key, so a copied key does less damage and its use is easier to trace.
Some users say they have already paid for usage they did not run. Dealroom reported that Colin Parsons wrote on X that his OpenAI key had been used for $281 and his Anthropic key for $168, and that Preston Zeller put his losses at $1,700.
Notebookcheck reported a Reddit user's claim of $400 of unauthorized usage on an Anthropic account, and another's of about €200 of Google usage, with the project then suspended.
Those are the users' own accounts. OpenCode's own wording is that the keys "may have been exposed," and it has not said that any key was copied or used.
OpenCode's October 17 post also called the incident ongoing, said the company was working with Anthropic, OpenAI and Google to fix it, and described the breach as "related to a large-scale distillation attack." The company has not named anyone or said how the two connect, what the legacy system was, how it was reached, how many keys it held, or how many users 1.4% represents.
Distillation is the term AI model providers use for campaigns that pull a model's answers in huge numbers to train a rival model. Anthropic said in September that the labs behind such campaigns reach its models through networks of fake accounts created with stolen credit cards, login credentials and harvested API keys. A stolen key has other uses too: criminal markets resell AI tokens and keys and use them to run up bills.
Attackers were still trying to get into OpenCode's systems on October 18, Raad wrote on X: they had been "non stop trying to attack our systems for the past 48 hours," and "a side effect is everything is getting hardened."
Found this article interesting? Follow us on Google News, Twitter and LinkedIn to read more exclusive content we post.
SHARE
Tweet
Share
Share
Share
⚡ Top Stories This Week
GhostAction Compromises About 1,900 GitHub Accounts, Targets Over 30,000 Repositories
Researchers Publish Working Exploit for Pre-Auth AnyDesk Linux Flaw That Gives Root Access
GitLab Patches CVSS 10.0 Flaw That Could Let Unauthenticated Users Run Server Code
Microsoft Patches Record 1,413 Flaws, Including Exploited Windows Shell Bug
Researchers Used a Public OpenAI Model to Build a $250,000 Chrome Full-Chain Exploit in Six Days
⚡ Weekly Recap: Helpdesk 0-Days, Rogue Certs, ShinyHunters Arrest, AI-Fooling Malware and More
Critical PwnEscape Linux Kernel Vulnerability Lets Guest VMs Read Host Memory
Docker Fixes Critical Two-Year-Old Hub Flaw That Let One User Push Images as Another
LOAD MORE ▼
⭐ Featured Resources
Download the 2026 Agent Security Report for a Five-Step Risk Reduction Framework
Benchmark Your AI Risk Priorities Against 1,600 CISOs—Download the 2026 Report
No Exploit Yet? Preview the Summit Demo on Validating CVE Exposure
Get the Five-Stage Identity Maturity Roadmap for Governing AI Agents
首次收录 · 2026-10-20 · 9.19 分