22 comments

  • pranshuchittora1 hour ago
    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!
    • trollbridge11 minutes ago
      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.
    • ShowalkKama1 hour ago
      The title should say "OpenCode Console" not "OpenCode".
    • yorwba1 hour ago
      How did you determine that it has been "flagged by many"?
      • pranshuchittora57 minutes ago
        The post was visible when I am logged in. But when I opened the /newest page on incognito the post wasn't there.
  • Ciantic1 hour ago
    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.
    • Tiberium1 hour ago
      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&#x27;ll be enough.<p><a href="https:&#x2F;&#x2F;docs.github.com&#x2F;en&#x2F;code-security&#x2F;reference&#x2F;secret-security&#x2F;supported-secret-scanning-patterns" rel="nofollow">https:&#x2F;&#x2F;docs.github.com&#x2F;en&#x2F;code-security&#x2F;reference&#x2F;secret-se...</a> has a table with the active partners
      • Ciantic1 hour ago
        Only responsible thing in this case would have been for OpenCode people to invalidate all keys. But I guess it is not that straightforward if Anthropic&#x2F;OpenAI etc don&#x27;t have endpoint for it.
        • ameliaquining45 minutes ago
          There&#x27;s no self-serve endpoint, but OpenCode could send the inference providers the leaked keys and ask for them to be revoked, which is a thing the inference providers can do. It&#x27;s possible that this&#x27;ll happen, apparently remediation is still in progress.
  • monster_truck44 minutes ago
    Wait, is the openchode hack the cause of all the people complaining about their OAI usage getting drained&#x2F;vanishing at alarming rates? That&#x27;s pretty funny ngl.<p>The way some of this place&#x27;s employees post and act online, can&#x27;t say I feel all that bad.
  • pranshuchittora5 minutes ago
    Awaiting for detailed breakdown of the incident. I am more interested in knowing , how can a distillation attack leak &#x2F; expose credentials.
  • computerex48 minutes ago
    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?
    • ameliaquining41 minutes ago
      If you use the hosted OpenCode Console and bring your own API keys, then they&#x27;d have your keys on their backend servers.
    • pranshuchittora47 minutes ago
      They need to explain this, by releasing a detailed RCA.
  • oldfuture1 hour ago
    <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=50108261">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=50108261</a><p>that&#x27;s why virustotal was flagging it then
    • ameliaquining43 minutes ago
      It sounds like only a hosted service was compromised, not the open source OpenCode binary that users run on their own machines. So this wouldn&#x27;t explain that.
  • jchw1 hour ago
    I don&#x27;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&#x27;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&#x27;t bad, but it isn&#x27;t clear and they&#x27;re not sharing any information.
    • hahajk1 hour ago
      This appears to affect users of Opencode Console, which appears to be an Openrouter-type thing?<p><a href="https:&#x2F;&#x2F;dev.opencode.ai&#x2F;console&#x2F;">https:&#x2F;&#x2F;dev.opencode.ai&#x2F;console&#x2F;</a><p>It&#x27;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:&#x2F;&#x2F;opencode.ai&#x2F;v2&#x2F;docs#connect">https:&#x2F;&#x2F;opencode.ai&#x2F;v2&#x2F;docs#connect</a> :<p>&gt; If you’d like easy access to all the best coding models you can try out OpenCode Console.
    • neya58 minutes ago
      Turns out even if you used credentials locally, you could&#x27;ve have been impacted as the .env files were also consumed by the agents. This is from some comments on Reddit &#x2F; Google, so take it with a grain of salt.
  • djchen1 hour ago
    Is my understanding correct that this only affected some OpenCode Zen users who stored their (BYOK) API keys from Anthropic&#x2F;Google&#x2F;OpenAI?<p>In essence they used OpenCode Zen similar to OpenRouter, where you can BYOK or use theirs and be charged token rates.
    • nightpool1 hour ago
      That&#x27;s the only <i>known</i> impact so far. But we don&#x27;t know the details of how these keys were exposed, so it&#x27;s not entirely clear why or how &quot;only keys&quot; might have been affected
  • fleshers1 hour ago
    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?
    • pranshuchittora1 hour ago
      It triggers me when these companies think that users are fool. I would have appreciated them, if they have disclosed things more transparently.
    • ipsum21 hour ago
      &quot;mass distillation campaign&quot; there&#x27;s no public evidence of this. I wonder what OpenCode&#x2F;Anomaly has, would be an interesting postmortem.
    • vdfs52 minutes ago
      Obviously they don&#x27;t want to share details because it&#x27;s ongoing
    • odo12421 hour ago
      Yes
    • pranshuchittora1 hour ago
      [dead]
  • yipinwong6 minutes ago
    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?
  • 902100718 minutes ago
    <a href="https:&#x2F;&#x2F;nitter.click&#x2F;opencode&#x2F;status&#x2F;2111516673953935833" rel="nofollow">https:&#x2F;&#x2F;nitter.click&#x2F;opencode&#x2F;status&#x2F;2111516673953935833</a>
  • thway1526903732 minutes ago
    Was it opencode who bragged about their vibecoding tokenmaxxing attitude or I&#x27;m mixing them with someone else?
  • verbo_villain1 hour ago
    So are people going to wake up and see their Anthropic, openAI, etc accounts drained?
  • MisterMunchkin1 hour ago
    It’s fascinating that tokens are so valuable that people are spending so much time and effort hacking to obtain API keys.
    • nacs49 minutes ago
      They might have spent next to 0 time actually &#x27;hacking&#x27; - they may have just told Opencode to hack Opencode website and let it run for hours or days till it succeeded.
    • pranshuchittora8 minutes ago
      The tokens of frontier are valuable...
  • preommr1 hour ago
    Why are the comments pointing out there were warning signs early on being downvoted&#x2F;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&#x27;s the deal? Some people just really like opencode or something?
    • jchw1 hour ago
      I think it may just be bad automated flagging. I vouch&#x27;d them since they don&#x27;t really seem to violate any rules&#x2F;guidelines (right?)
      • himata41131 hour ago
        Indeed. I&#x27;ve seen it happen before and it appears that they have automatic downvoting based on some criteria, possibly just some classifier. I&#x27;ve attributed it to some bot attack before, but it&#x27;s a bit too common now.
        • dylan6041 hour ago
          Why does it being common downplay the bot attack to you? As time goes on, I&#x27;d assume bots activity to increase. I do not see it ever going away.
          • himata41131 hour ago
            bots get caught and downvoting requires reputation.
  • DavCreator1 hour ago
    <a href="https:&#x2F;&#x2F;xxcancel.com&#x2F;opencode" rel="nofollow">https:&#x2F;&#x2F;xxcancel.com&#x2F;opencode</a>
  • searealist43 minutes ago
    &gt; security breach<p>&gt; related to a large scale distillation attack<p>I&#x27;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?
  • rvz46 minutes ago
    Looking forward to the post-mortem of this incident.
    • pranshuchittora8 minutes ago
      Yes, I am interested in how a distillation attack can leak credentials...
  • vinni21 hour ago
    But isn’t OpenCode open source why does it need credentials.
    • progval1 hour ago
      For the inference APIs, which need to bill users. It&#x27;s unclear why OpenCode&#x27;s servers (presumably) had access to the API credentials.
      • trollbridge9 minutes ago
        Because people cut and pasted them in.
      • himata41131 hour ago
        They function similar to openrouter BYOK.
      • dist-epoch1 hour ago
        Maybe they support cloud agents.
    • kelvinjps101 hour ago
      opencode go and zen?
  • pranshuchittora2 hours ago
    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.
    • sebastiansm747 minutes ago
      We were planning to fix our vibecoded mess.
  • vc1449 minutes ago
    [flagged]
  • bewareofscams1 hour ago
    I told you so: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=49243119">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=49243119</a><p>Me, 68 days ago:<p>&gt; 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>&gt; <a href="https:&#x2F;&#x2F;github.com&#x2F;anomalyco&#x2F;opencode&#x2F;issues&#x2F;10416" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;anomalyco&#x2F;opencode&#x2F;issues&#x2F;10416</a>
    • neya1 hour ago
      Damn, that sucks. I didn&#x27;t know OpenCode was this bad when it came to privacy.
    • lousken1 hour 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
    • whisper4916 minutes ago
      [dead]