Enjoying this issue?
Get tomorrow's AI & engineering digest in your inbox — hand-picked, summarized, and always spam-free.
TLDR
OpenCode's breach exposed saved provider API keys via a legacy system that wasn't fully decommissioned, with the company linking the incident to a large-scale distillation attack affecting 1.4% of console users. A stolen key is especially valuable to model copiers because it comes with a real identity and payment method, bypassing some of Anthropic's newer defenses like preserved thinking that only apply to accounts created after August 2026. The real risk isn't just unauthorized spending—it's that your key could be used to copy a model's reasoning, and you'd never know from revoking it alone.
Key points
OpenCode's breach exposed provider API keys saved in its console via a legacy system that was being decommissioned.
The breach affected 1.4% of OpenCode's console users and was related to a large-scale distillation attack.
Anthropic reported blocking over 16 million exchanges from fraudulent accounts used for model copying.
A stolen key from a real customer bypasses Anthropic's preserved thinking rule, which only applies to accounts created after August 2026.
A paper on MCP servers found 150 vulnerable tools that could leak files outside their declared scope.
Anthropic's Git server had two CVEs where a tool could stage files from outside the repository.
OpenCode has not disclosed how attackers accessed the legacy system, how keys were stored, or how many were taken.
Tools mentioned
Techniques
- distillation attack
- model context protocol (MCP)
- two-stage classifier
- preserved thinking
- operating system process isolation
Stop scrolling. Start reading smarter.
Receive the day's most important AI & engineering updates in one concise email. No spam.
Transcript (captions)
I'd assumed a breach tied to AI model copying meant stolen prompts. Then I read Open Code's email. As the latent quotes it, the way in was a legacy system that we were in the process of
decommissioning, and what may have been exposed was saved provider keys. Door ready to commissioning. That's the polite way of saying it wasn't switched off yet. A key lets whoever holds it run
requests on your balance. So if you've pasted one into a coding tool, the worst case is a bill you didn't run up. Why would anyone want yours? Colin Parsons posted, per Re Dreamality summary, that
keys he used only in Open Code ran up $281 on Open AI and a smaller bill on Anthropic that's self-reported, not confirmed by Open Code or the providers. Open Code says the breach was related to
a large-scale distillation attack and that it hit 1.4% of its console users. My first thought was that copiers used fake accounts, so a real customer's key shouldn't matter. I read Anthropic's
post on its defenses and a new paper on tool servers to see whether that holds. The standard advice is Open Code's own. Revoke and replace the keys at your provider, then review recent usage. It's
sound, but revoking is clean up. It won't tell you whether your key was used to copy a model, and Open Code hasn't said. By the end, you'll know what a stolen key can be worth to someone, a
second way keys could leak, and four habits that cap what a leak costs you. Start with what distillation is. You train a less capable model on the answers of a stronger one. Anthropic's
February post says that's fine on your own models and illicit when you do it to a rival's. Copying takes volume. Anthropic reported more than 16 million exchanges through fraudulent accounts.
Three labs were behind them, by Anthropic's count. The smaller model trains on a huge pile of the stronger one's answers, so one answer gets you nowhere. Reasoning is the prized part.
In Anthropic's example, a prompt asked Claude to write out, step by step, the reasoning behind a finished answer. Run that at scale, and you get reasoning training data. Anthropic's later post
says those transcripts are targeted because they show the smaller model how Claude reaches its answers. Volume on one account gets noticed, so the copier spread it out." Anthropic describes
proxy networks it calls hydras. "One managed over 20,000 fraudulent accounts at once, mixing copying traffic with real customers traffic." The later post says, "Some accounts were opened
with false identities and stolen payment details." Hold on to that. Every fake account needs an identity and a way to pay. Now the defenses Anthropic lists. One is a two-stage classifier that spots
requests that look like copying and blocks them. Its false positives are under 0.1%, so ordinary customers rarely get caught. Another is stricter limits for accounts
that keep trying. And Anthropic now bills for blocked requests. Even a refusal shows up on the invoice. Then bans, often in under 2 hours. The last is a measure called
preserved thinking. It stops API accounts created on or after the 31st of August 2026 from editing Claude's prior context. How that blocks copying isn't spelled
out in what we have. What is clear is the line the rule draws, account age. Anthropic's early figure is a cut of around 90 to 99% in the data distillers can harvest from its own platform. It's
the company's own measurement. Now picture a stolen key. Copiers can keep opening fake accounts and Anthropic says they do. But a long-standing customer's key arrives with a real identity and a
real way to pay. And it falls outside the one rule drawn by account age. That second part is my reading, not Anthropic's. As I read Anthropic's post, it doesn't mention stolen keys. The
classifier and the rate limits still cover every account, old or new. One analyst at Read Dream Melody argues that makes such a key worth more to a copier and to a reseller than a fresh fake.
That's an argument, not a finding. What users report is who pays. A Hacker News user, Verbal Villain, said an Anthropic account was drained of its $20 in API credits for the month. Where
drained balances came from, copiers, resellers, or other abuse isn't established. Anthropic's Lydia Hallie says in a post seen only relayed that it revoked the Claude keys it believed were
affected. If you saved one in open code, she advises making a new one. What nobody has said as of the 18th of October, how the attackers got into the legacy system, how the provider keys
were stored, how long access lasted, or how many keys were taken. Nor has anyone said which model was being copied. Open code calls the incident ongoing and says it can't share more, so all of this may
change. That's route one. Route two doesn't need a vendor to be breached. It starts on your own machine with the tools your agent runs. They're called MCP servers, short for
model context protocol. Small programs that give an AI agent its abilities, like reading files or running Git. A new paper, my credentials, please, checked what they can reach. The authors triaged
4,806 servers from public registries. Of those, 787 showed file system abilities even though they weren't classed as file tools. That's a screening signal, not a
list of confirmed flaws. Dynamic testing confirmed 150 as vulnerable. The authors' disclosures included two publicly numbered flaws, CVEs, in Anthropic's own Git server. So, how does
a Git tool hand over a file? When your agent asks to use a tool, you click approve. That approval covers the arguments the tool declared. But the server behind it runs with whatever
files your user account can touch. Take the paper's Git example. A tool that stages a file for commit takes a path. It doesn't check that the path stays inside the repository. So, the
path climbs out of the folder, the file gets staged, and a later call that shows staged changes returns that file's contents to the agent. The approval covered the call. Nothing boxed in what
the process could reach. A different Anthropic server, the file system one, failed more plainly. Elad Biper at Simulate found its folder check compared text prefixes. Allow one folder and a
sibling folder whose name starts the same way got through. In the write-up's example, the sibling folder is literally called allow dear sensitive credentials, which at least
tells you what's inside. A second flaw used symbolic links, shortcuts that point somewhere else, to slip past the same fence. A patch followed in July 2025.
The paper's examples include reading a system password file and starting a Git repo inside your SSH folder. A key sitting in a file your user can read is in the same reach. That's my application
of the paper to API keys, and nothing ties these flaws to open code. So, four habits, each tied to a documented control. First, one key per tool. Anthropic's console ties each API key to
the workspace it was created in, and the key can't be moved. Then give each tool its own workspace. When one leaks, you revoke one key and one tool breaks. Second, spend caps. In the Anthropic
console, each workspace can carry its own spend limit, and it can't exceed the organization's. Pair that with a workspace per tool, and a leaked key can only spend that tool's cap. A cap limits
the bill. It doesn't stop the misuse. OpenAI is murkier. A university help page says its cost limits apply at the project level, so a project per tool is the closest fit. That page is secondary,
so confirm it in OpenAI's dashboard. Third, don't save keys in hosted apps. Open code's email says provider keys saved in the workspace may be exposed. A later clarification, per the latent and
re-dreamality, says the affected users were a subset with external providers linked, not people on the local open-source command-line tool. A key in a vendor system is one more place that
can be breached, and you can't patch it. Keep the key where you control it. OpenAI's production guidance says use an environment variable or a secret manager, set an expiry and rotate, or
send tools through a gateway you run, which is what some Hacker News commenter suggested. That's one more service to maintain. Fourth, run tool servers in a sandbox. The paper's registry level
recommendation is operating system process isolation because the approval prompt doesn't fence the process. A sandbox lets a server see its repo and nothing else. A container or a
restricted user account are everyday forms of that offered as general examples. Whether that stops those two Git flaws wasn't tested here. If you save keys in a hosted console,
I'd revoke them today and stop saving them. That's the one habit this breach points at. If your keys live on your laptop, give each tool its own capped key. If you run lots of third-party tool
servers, my pick is to sandbox those first. Now the unconfirmed link. Open code says the breach was related to a distillation attack. That link is Open code's own claim, still unexplained.
No source shows the exposed keys were used to copy anything or which model. The habits don't depend on it. A key someone else can spend costs you the same either way.
Back to that legacy system. Open code says keys users had saved with it may have been exposed. So which of your tools is holding one of your keys right now, and could you name
them all?