Top
Best
New

Posted by pranshuchittora 5 hours ago

OpenCode Hacked: User credentials leaked(twitter.com)
628 points | 98 commentspage 3
latchkey 3 hours ago|
the ux is kind of crazy.

you login to their website, and you are presented with a list of providers where you can click and add your provider api key.

how the key is stored on the backend isn't clear, but it is akin to handing your password or if you know crypto, your private key, to someone and letting them store it for you.

from what i can tell, there are no links within the console to a ToS, Privacy policy or anything else. there are no warnings or documentation about how they store your keys.

someone else in this thread linked to this issue, but this comment is especially insane given that i can't find any privacy policy or tos for the console.

https://github.com/anomalyco/opencode/issues/10416#issuecomm...

InsideOutSanta 2 hours ago|
FWIW, OpenRouter has the exact same feature.
latchkey 2 hours ago||
and their TOS/Privacy policies are equally light on details.
preommr 4 hours ago||
Why are the comments pointing out there were warning signs early on being downvoted/flagged?

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?

c-hendricks 2 hours ago||
All the comments I've seen about warning signs point to opencode the cli, where this is about one of opencode's hosted services.
jchw 4 hours ago|||
I think it may just be bad automated flagging. I vouch'd them since they don't really seem to violate any rules/guidelines (right?)
himata4113 4 hours ago||
Indeed. I've seen it happen before and it appears that they have automatic downvoting based on some criteria, possibly just some classifier. I've attributed it to some bot attack before, but it's a bit too common now.
dylan604 4 hours ago||
Why does it being common downplay the bot attack to you? As time goes on, I'd assume bots activity to increase. I do not see it ever going away.
himata4113 4 hours ago||
bots get caught and downvoting requires reputation.
InsideOutSanta 2 hours ago||
Because they're unrelated to this incident.
TZubiri 3 hours ago||
4 days ago red flags were raised

https://news.ycombinator.com/item?id=50075319

https://news.ycombinator.com/item?id=50060694

what’s interesting is that all those efforts that go into sandboxing through virtualization wouldn’t have helped here. But the solutions that proxy the api keys and hide them from agents might have worked as a defense in depth.

of course any sensible engineer that uninstalled this 6 months ago and used codex and claude code directly also avoided this, gg

nrmitchi 2 hours ago|
What the the purpose of this comment? Neither of those "red flags" you linked to are related (one is about config loading precedence, and the other is about Codex CLI, which is completely a completely different product and development team.

Exterior-compliance proxies, yes, are a good thing; but are also completely unrelated to the fact that OpenCode's hosted solution, that requires having credentials in some fashion, was popped.

Shitting on anyone who uses OpenCode (rather than your preferred vendor-specific product) as not being "sensible" is also completely out of hand and unnecessary.

IVski 53 minutes ago||
[flagged]
pranshuchittora 5 hours ago||
From OpenCode Team

---

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.

We’re sorry this happened and will follow up with any updates.

sebastiansm7 4 hours ago|||
We were planning to fix our vibecoded mess.
TZubiri 3 hours ago||
it’s funny how no one ever announces their critical vulns with “we have been hacked, you should uninstall our software and use something else”, at some point in the severity of the vuln that should be the conclusion, but no one ever says it
qlte 1 hour ago||
> uninstall our software

This was a leak of keys added in a web UI

vc14 4 hours ago||
[flagged]
bewareofscams 5 hours ago||
I told you so: https://news.ycombinator.com/item?id=49243119

Me, 68 days ago:

> 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.

> https://github.com/anomalyco/opencode/issues/10416

lukewarm707 3 hours ago||
"when challenged about sending data to openrouter without listing it as a 3rd party processor they offered a dismissive response. the same with running prompts through cloudflare. seems trivial, but signifies general disinterest in security."

I did have an account but moved off for security reasons.

neya 4 hours ago|||
Damn, that sucks. I didn't know OpenCode was this bad when it came to privacy.
lousken 4 hours ago|||
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
tadasv 3 hours ago|||
This is one of the reasons I don't trust opencode. It looked very nice on paper when it first came out and there were no alternatives. However, today I'd probably stick with simple pi setup (not sure how much better than opencode, but it looks like they don't have all this cloud stuff) or just use one of the big tech agents and call it a day.
Reyonlds96 1 hour ago|||
I love the smell of misinformation in the morning. All it ever did was give people free model for title gen, if they didn't set one themselves. Feature you could disable or set on your own model. That was since removed, so now there is no free fallback model.

That is it. It is still private by default

anonymous908213 52 minutes ago||
> All it ever did was give people free model for title gen,

All it "ever did" was send your entire prompt/context to a "free" model for harvesting. The astroturfing in this thread is absurd.

Reyonlds96 40 minutes ago||
It sent the prompt to a GPT-5-nano model with the max zdr you can get on openai. That was done to give people free title gen, unless they set it themselves. Title gen does not send anything but the prompt.

Maybe try a sensible approach first, cause so far this is assumed, for no reason, to be done maliciously. "to steal data" and the like.

Opencode's source code is public, so you can verify any claim against it directly.

NavinF 36 minutes ago||
but the prompt was sent to OpenAI via Opencode's servers right? So even when you use a local model, Opencode can still see your prompt by default?
Reyonlds96 32 minutes ago||
It was going through zen, so they CAN see it if they want to. Same applies to anything on Zen. But, zen is ZDR. Same goes to any provider, ZDR or not, as ZDR is just an agreement. With Openai - caveats apply on Openai side itself(they retain logs regardless).

During this short period - yes. Unless it finds a valid small model, or you set one yourself - it would use the one provided by zen. or you could disable it with an invalid model altogether. Good gesture for most users and something else to others.

It's *could by the way, as this was only a short window when this was a thing. It went back to not having this fallback pretty fast, i don't think it even lasted a month.

whisper49 3 hours ago||
[dead]
DavCreator 5 hours ago|
https://xxcancel.com/opencode
bewareofscams 4 hours ago|
[dead]