OpenCode Hit by "Distillation Attack": API Keys of About 1.4% of Users Compromised
This time the attackers were not after passwords or credit card numbers. Open-source AI coding platform OpenCode admitted publicly on October 17 that attackers exploited a vulnerability in one of its legacy systems to gain unauthorized access to third-party model provider API keys stored in user workspaces.

Latest
1 updates · newest first-
Update: TechCrunch reported on Oct 19 that users saw hundreds to over $1,000 in unauthorized charges; Anthropic and Google blocked suspected exposed keys while OpenAI helped restore access and issue refunds; the co-founder says attackers kept trying to break in for 48 hours, and the company says the incident is ongoing.
Further updates will appear here
What happened
OpenCode says the incident affected about 1.4% of its Console (hosted workbench) users who had linked external AI provider accounts. The keys were connected to models from Anthropic, OpenAI and Google. With the keys in hand, the attackers ran repeated queries against top-tier models; affected users reported their account balances draining quickly, with some bills climbing into the hundreds of dollars.
OpenCode characterized the incident as a large-scale "distillation attack": the attackers used the stolen keys to harvest high-quality outputs from top-tier models to train their own models, with the bills landing on the victims. Distillation describes a technique where one AI model learns by studying the answers of another.
OpenCode says it is working with Anthropic, OpenAI and Google on remediation, and advises all users who linked external provider accounts to revoke and rotate their API keys and review usage on each provider's dashboard. How the unauthorized charges will be handled has not been specified by OpenCode or the three providers.
TechCrunch's October 19 follow-up added new developments: multiple users reported unauthorized charges of hundreds of dollars, some above $1,000; Anthropic and Google blocked the API keys believed to be exposed, while OpenAI worked with OpenCode to restore affected users' access and refund credits spent in the attack. Co-founder Dax Raad said on X that attackers kept trying to break into its systems for 48 hours straight, and the AI defensive agents the team deployed were hampered when model safety filters refused to analyze the attack payloads. OpenCode was later admitted to OpenAI's Daybreak Blue program. The company says the incident is ongoing and has not disclosed how attackers entered the legacy system or how the keys were stored.
Key facts
- Scope: About 1.4% of Console users — those who linked external model provider accounts
- Entry point: A vulnerability in a legacy system being retired, not the main service
- Keys in scope: API keys for Anthropic, OpenAI and Google models were all in scope
- Method: "Distillation attack": harvesting top-tier model outputs with stolen keys to train a competing model
- User impact: Some users' bills hit hundreds of dollars overnight; who covers the charges is unclear
Why it matters
What was stolen was not data but billable frontier-model access — a single key can yield training-data value. The convenience of storing keys for multiple providers in one workspace concentrates the risk along with it.
Follow HIMIAO Horizon
No sign-up · Unsubscribe any timeNotifications
A ping on your phone or computer when the brief is out. No email needed.
Comments
Related
- Dec 2UK PM Says AI Tools Enabled Cyberattack on Benefits Department
- Dec 2GPT-6.2 Astra Cracks UK's Hardest Cyber Range in Five Hours
- Nov 29SAP Confirms Security Incident After GitHub Environment Breach
- Nov 29UK AI Security Institute: AI Monitor Miss Rate Can Rise From 0.2% to 23%
- Nov 261Password Breach: Employee GitHub Account Compromised, Customer Names and Emails Stolen
Today
Dec 3 Thursday- Brief
- GitHubGitHub Weekly Vol.8: 7 Projects Worth a Look This Week
Tested or read — weeklyAll →
- Quiz
- Call
Latest news
All →- Dec 2Meta Muse Charm Goes on Sale at $299, With a Year of Free Verizon 5G
- Dec 2Claude Arrives on Apple Watch, With Voice Chats Free on Every Plan
- Dec 2Ai2 Releases Open Deep Research Agent DR Tulu 2: 4B Parameters, Leading on 9 of 10 Benchmarks
- Dec 2Codex Cloud Gains a Browser and Desktop to Test Apps and Reproduce Bugs
- Dec 2DeepMind Releases CellGemma to Predict How Cells Respond to Drugs
- Dec 2New Mexico Sues Musk and xAI, Alleging Grok Generated Child Sexual Abuse Material
™