AI hack · Breach · 17 Oct 2026Keys abusedRoot cause not disclosed
Attackers took users' AI keys from OpenCode's hosted Console and ran up overnight charges
OpenCode says attackers broke into its hosted Console in October 2026 and took the 3 sourcesInfosecurity MagazineOpenCode Breach Could Affect OpenAI, Anthropic and Google19 Oct 2026BleepingComputerOpenCode hack exposes API keys amid AI distillation attacksUndatedTechCrunchHackers hit AI coding tool OpenCode, running up charges on users’ AI accountsUndated stored by about 1.4% of Console users. Victims saw 3 sourcesInfosecurity MagazineOpenCode Breach Could Affect OpenAI, Anthropic and Google19 Oct 2026BleepingComputerOpenCode hack exposes API keys amid AI distillation attacksUndatedTechCrunchHackers hit AI coding tool OpenCode, running up charges on users’ AI accountsUndated from several hundred dollars to over $1,700. Anthropic and Google blocked the exposed keys, and OpenAI restored access and refunded credits.
By Chris Hoskins, Founder, Boogey ·
Tap underlined words to see who reported them.
About 1.4%
3 sourcesInfosecurity MagazineOpenCode Breach Could Affect OpenAI, Anthropic and Google19 Oct 2026BleepingComputerOpenCode hack exposes API keys amid AI distillation attacksUndatedTechCrunchHackers hit AI coding tool OpenCode, running up charges on users’ AI accountsUndated
Over $1,700
3 sourcesInfosecurity MagazineOpenCode Breach Could Affect OpenAI, Anthropic and Google19 Oct 2026BleepingComputerOpenCode hack exposes API keys amid AI distillation attacksUndatedTechCrunchHackers hit AI coding tool OpenCode, running up charges on users’ AI accountsUndated
At least 48 hours
3 sourcesInfosecurity MagazineOpenCode Breach Could Affect OpenAI, Anthropic and Google19 Oct 2026BleepingComputerOpenCode hack exposes API keys amid AI distillation attacksUndatedTechCrunchHackers hit AI coding tool OpenCode, running up charges on users’ AI accountsUndated
Console only
SourceTechCrunchHackers hit AI coding tool OpenCode, running up charges on users’ AI accountsUndated
How the keys were lost
Step 1
Keys held for users
OpenCode Console stored users' OpenAI, Anthropic and Google keys so it could 3 sourcesInfosecurity MagazineOpenCode Breach Could Affect OpenAI, Anthropic and Google19 Oct 2026BleepingComputerOpenCode hack exposes API keys amid AI distillation attacksUndatedTechCrunchHackers hit AI coding tool OpenCode, running up charges on users’ AI accountsUndated.
Step 2
A long push
Attackers targeted OpenCode's systems for at least 48 hours and 3 sourcesInfosecurity MagazineOpenCode Breach Could Affect OpenAI, Anthropic and Google19 Oct 2026BleepingComputerOpenCode hack exposes API keys amid AI distillation attacksUndatedTechCrunchHackers hit AI coding tool OpenCode, running up charges on users’ AI accountsUndated, OpenCode says.
Step 3
The first exposure
OpenCode's email to affected users puts the SourceBleepingComputerOpenCode hack exposes API keys amid AI distillation attacksUndated at 00:30 UTC on 17 October 2026, according to BleepingComputer.
Step 4
Spent in bulk
The attackers ran 3 sourcesInfosecurity MagazineOpenCode Breach Could Affect OpenAI, Anthropic and Google19 Oct 2026BleepingComputerOpenCode hack exposes API keys amid AI distillation attacksUndatedTechCrunchHackers hit AI coding tool OpenCode, running up charges on users’ AI accountsUndated on the keys. OpenCode called it a distillation attack, which means copying a model by harvesting its answers.
Step 5
Charges and suspensions
Multiple users reported unauthorized API charges and 2 sourcesBleepingComputerOpenCode hack exposes API keys amid AI distillation attacksUndatedTechCrunchHackers hit AI coding tool OpenCode, running up charges on users’ AI accountsUndated.
Some skeptics, TechCrunch reports, call the distillation framing SourceTechCrunchHackers hit AI coding tool OpenCode, running up charges on users’ AI accountsUndated. To them it was a straightforward breach, and distillation use is unproven.
“Note this is the OpenCode Console, not OpenCode itself, those keys never come to us”
The clean-up so far
OpenCode 2 sourcesInfosecurity MagazineOpenCode Breach Could Affect OpenAI, Anthropic and Google19 Oct 2026TechCrunchHackers hit AI coding tool OpenCode, running up charges on users’ AI accountsUndated. TechCrunch notes it also hasn't detailed how the attackers got in or how the keys were stored.
Emails to those affected
OpenCode said it SourceTechCrunchHackers hit AI coding tool OpenCode, running up charges on users’ AI accountsUndated, TechCrunch reports, and that anyone who got no email was not impacted.
New keys at every provider
OpenCode told affected users to SourceTechCrunchHackers hit AI coding tool OpenCode, running up charges on users’ AI accountsUndated and replace them with each provider, according to TechCrunch.
Money back
OpenCode said 2 sourcesBleepingComputerOpenCode hack exposes API keys amid AI distillation attacksUndatedTechCrunchHackers hit AI coding tool OpenCode, running up charges on users’ AI accountsUndated are underway, TechCrunch reports. BleepingComputer says its message to users mentions possible reimbursement.
Models refused to help
OpenCode's investigation was reportedly hindered when the AI models it used 2 sourcesBleepingComputerOpenCode hack exposes API keys amid AI distillation attacksUndatedTechCrunchHackers hit AI coding tool OpenCode, running up charges on users’ AI accountsUndated under their safety safeguards. Things stabilized after it switched to OpenAI's Daybreak cybersecurity model.
Other platforms holding AI keys were hit the same month
Wiz named October's run of incidents at AI developer platforms SourceCloud Security Alliance LabsCloud Security Alliance note on Black October2 Nov 2026 · first-hand, and found no single vulnerability or dependency linking them.
Railway
Attackers in Railway's build systems decrypted a subset of customers' environment variables. Railway said the apparent aim was SourceCloud Security Alliance LabsCloud Security Alliance note on Black October2 Nov 2026 · first-hand.
Northflank
On 30 October, Northflank told customers to assume every stored environment variable was decrypted. That evening it reported SourceCloud Security Alliance LabsCloud Security Alliance note on Black October2 Nov 2026 · first-hand stored on its platform.
The Cloud Security Alliance says the pattern fits a market where stolen AI keys are tested, pooled and SourceCloud Security Alliance LabsCloud Security Alliance note on Black October2 Nov 2026 · first-hand. It adds that two cases can't show how widespread that market is.
The Boogey fix
Does your product hold your users' AI keys?
You’re exposed if
- Your product stores users' OpenAI, Anthropic or Google keys so it can call models for them.
- Those keys sit in the same database, environment or secrets store as the rest of your app.
- A saved key can be shown back in full, in a dashboard, an export, a log or an API response.
Fix it
01Let keys stay with the user
Where you can, call providers from the user's side, so their key never reaches you. OpenCode's co-founder says its open-source app and CLI SourceTechCrunchHackers hit AI coding tool OpenCode, running up charges on users’ AI accountsUndated.
02Store keys apart
Keep users' keys in a separate, encrypted secrets store, and decrypt one only for the model call that needs it, never in your app's database or build system.
03Never show a key back
Once a key is saved, show only its last four characters, and keep it out of exports, logs and API responses.
04A cap that wakes someone
Ask users for a spend cap when they link a key, and alert them to unusual use within the hour. The charges here 3 sourcesInfosecurity MagazineOpenCode Breach Could Affect OpenAI, Anthropic and Google19 Oct 2026BleepingComputerOpenCode hack exposes API keys amid AI distillation attacksUndatedTechCrunchHackers hit AI coding tool OpenCode, running up charges on users’ AI accountsUndated.
On your platform
Settings you already have that help against this hack. Last checked 1 Dec 2026.
No setting on Claude Code helps with this one. Our test does.
How we test it
- 1Under a signed scope, in staging, a test user saves a fake provider key, made for the run, through your product's key tool. It opens nothing at any provider.
- 2That user and a second test account each call every tool your product offers that only reads, and ask your assistant for saved keys.
- 3We also look for the key in the dashboards, exports and logs either account can open.Being built
- Built
- BT-10 · Leaked AI keys and secrets, and the abuse that followsBT-11 · Exposure through AI vendors and data processorsBT-06 · Over-scoped tokens and agent identity
It fails if
- The fake key shows back in full anywhere
- The second test account sees the first one’s whole key
Does your product hold your users' AI keys? We'll run this test on yours. Part of it is still being built.
What it reveals
The Cloud Security Alliance says an AI key stored as a platform environment variable SourceCloud Security Alliance LabsCloud Security Alliance note on Black October2 Nov 2026 · first-hand of that platform's control plane, build system and secrets store. The same holds for any product that keeps its users' keys. Its breach becomes their bill. A key that never reaches you can't be taken from you.