I am the author of this post. Looks like OpenCode fans / team is not happy with this post coming on the first page of HN. It has already been flagged by many.
I never ask for upvotes, but would be great if you can upvote it.
Thanks!
Then next time do a less clickbait-y title: OpenCode had a leak of API keys for their service that is similar to OpenRouter; this does not affect most users.
The title should say "OpenCode Console" not "OpenCode".
How did you determine that it has been "flagged by many"?
I think every API key system should have endpoint "invalidate_api_key" this way whitehat hackers or the party who stored them could invalidate all keys in the case they leak. Now it is race against the time, and everybody got email, and everyone must act themselves.
It actually is a thing, although indirectly in a hacky way! If you push keys from GitHub secret scanning partners to a public repo or a gist, they get sent to the partner who (usually) instantly revoke them. So if you want to help someone, just make a public gist with the key and delete it like 15 seconds later, it'll be enough.<p><a href="https://docs.github.com/en/code-security/reference/secret-security/supported-secret-scanning-patterns" rel="nofollow">https://docs.github.com/en/code-security/reference/secret-se...</a> has a table with the active partners
Wait, is the openchode hack the cause of all the people complaining about their OAI usage getting drained/vanishing at alarming rates? That's pretty funny ngl.<p>The way some of this place's employees post and act online, can't say I feel all that bad.
Awaiting for detailed breakdown of the incident. I am more interested in knowing , how can a distillation attack leak / expose credentials.
Why are my API keys in the workspace exposed? Does OpenCode send my API keys to their backend servers??? Was this a supply chain attack that infected the opencode program itself? What is going on?
If you use the hosted OpenCode Console and bring your own API keys, then they'd have your keys on their backend servers.
They need to explain this, by releasing a detailed RCA.
<a href="https://news.ycombinator.com/item?id=50108261">https://news.ycombinator.com/item?id=50108261</a><p>that's why virustotal was flagging it then
I don't use OpenCode but I would like to know who this impacts. Surely people who are just using OpenCode locally with their own credentials wouldn't be impacted, right? This sounds like something where you have a hosted service and you put your keys into that. Not saying this isn't bad, but it isn't clear and they're not sharing any information.
This appears to affect users of Opencode Console, which appears to be an Openrouter-type thing?<p><a href="https://dev.opencode.ai/console/">https://dev.opencode.ai/console/</a><p>It's actually kinda hard to figure out what it is. But it does appear to be different that the CLI<p>From <a href="https://opencode.ai/v2/docs#connect">https://opencode.ai/v2/docs#connect</a> :<p>> If you’d like easy access to all the best coding models you can try out OpenCode Console.
Turns out even if you used credentials locally, you could've have been impacted as the .env files were also consumed by the agents. This is from some comments on Reddit / Google, so take it with a grain of salt.
Is my understanding correct that this only affected some OpenCode Zen users who stored their (BYOK) API keys from Anthropic/Google/OpenAI?<p>In essence they used OpenCode Zen similar to OpenRouter, where you can BYOK or use theirs and be charged token rates.
I’m a bit confused by the wording here, does it mean the credentials were hacked and then used to perform a mass distillation campaign?
It triggers me when these companies think that users are fool. I would have appreciated them, if they have disclosed things more transparently.
"mass distillation campaign" there's no public evidence of this. I wonder what OpenCode/Anomaly has, would be an interesting postmortem.
Obviously they don't want to share details because it's ongoing
Yes
[dead]
wtf was I getting many use OpenCode on OpenCode cloud emails last few days.
Were they set up so that hackers can get more info?
<a href="https://nitter.click/opencode/status/2111516673953935833" rel="nofollow">https://nitter.click/opencode/status/2111516673953935833</a>
Was it opencode who bragged about their vibecoding tokenmaxxing attitude or I'm mixing them with someone else?
So are people going to wake up and see their Anthropic, openAI, etc accounts drained?
It’s fascinating that tokens are so valuable that people are spending so much time and effort hacking to obtain API keys.
They might have spent next to 0 time actually 'hacking' - they may have just told Opencode to hack Opencode website and let it run for hours or days till it succeeded.
The tokens of frontier are valuable...
Why are the comments pointing out there were warning signs early on being downvoted/flagged?<p>I looked at the linked comments, and they seem valid. I mean I dont want to go full tinfoil hat here, but what's the deal? Some people just really like opencode or something?
<a href="https://xxcancel.com/opencode" rel="nofollow">https://xxcancel.com/opencode</a>
> security breach<p>> related to a large scale distillation attack<p>I'm not sure how this adds up. I could understand if this impacted their uptime, but not security.<p>Are they actually saying a bunch of credentials were stolen and are being used for distillation?
Looking forward to the post-mortem of this incident.
But isn’t OpenCode open source why does it need credentials.
From OpenCode Team<p>---<p>Hi,
We identified unauthorized access to a legacy system that we were in the process of decommissioning. Third party provider keys (eg OpenAI, Anthropic) saved in your workspace may have been exposed. Please revoke and replace those keys through the relevant provider’s dashboard, update any applications using them, and review recent usage for unexpected activity.<p>We’re sorry this happened and will follow up with any updates.
[flagged]
I told you so: <a href="https://news.ycombinator.com/item?id=49243119">https://news.ycombinator.com/item?id=49243119</a><p>Me, 68 days ago:<p>> Beware of the author of tweet, who happens to be author of OpenCode - OpenCode will leak all your data to themselves and to shady 3rd parties. Author feigned ignorance and never fixed the issue. OpenCode among other harnesses is the shadiest of all.<p>> <a href="https://github.com/anomalyco/opencode/issues/10416" rel="nofollow">https://github.com/anomalyco/opencode/issues/10416</a>
Damn, that sucks. I didn't know OpenCode was this bad when it came to privacy.
If i dont use any of their models nor i am signed in, is that a problem? i dont see anything in wireshark except for models.opencode.ai
[dead]