Skip to main content
Close
Security

OpenCode hacked: the credentials that live in someone else's house

Gabriel Ferraresi· CEO | Tech86October 29, 20263 min
securityopencodecredentialsai-agentsincident-response

The tool I use every day announced, on Friday night, that it had been hacked. The credentials that leaked belonged to the users.

The official statement describes the incident: unauthorized access to a legacy system OpenCode was decommissioning. Inside were the provider keys (OpenAI, Anthropic, Google) saved in the Console, the hosted service where the team uses the models without ever seeing the key. The official guidance was direct: revoke and replace the keys in the provider panels, update the applications that use them, and review recent usage for strange activity.

The confirmed scope

1.4% of Console users, all with an external provider linked. The company notified that group by email on Saturday morning, with the subject Action Required: Potential provider key breach, and the official word is this: whoever did not receive the email was not affected. The keys at risk are the ones pasted into the Console; the CLI client and desktop keys live in a local database on your machine.

The attackers did not stay in read mode

According to TechCrunch, they ran workloads on users'' AI accounts and generated cost. The security market reads it as distillation: inference with someone else''s key to harvest outputs and train on them.

That is the detail that separates a credential leak from a data leak: the stolen key keeps working after the incident, on your account, on your invoice. That is why the response starts with revocation, but does not end there.

The lesson lives at the key''s address

Whoever stores the credential in a vendor''s console inherits the vendor''s incident, and the incident''s bill arrives at the key''s owner. The agent''s perimeter is called credential, and this week''s case showed that sometimes it lives in someone else''s house.

It is the same design we documented in the PocketOS case: the agent used the authority it was given, and what was missing was IAM. Here the authority was not even yours: it was hosted in a third party''s console that got compromised. And the trust chain of agent tooling is the same vector the TrapDoor campaign exploited in configuration files.

What I recommend, in this order

  1. Revoke every key stored in a third party console and issue a new one, directly at the provider.
  2. Review invoice and usage logs for activity you do not recognize.
  3. Adopt the pattern that survives the next notice: an agent key is revocable, has a spending cap, and is never the only one.

At Tech86, credential inventory is the first job of agent governance: where each key lives, what it can do, when it becomes garbage.

Conclusion

For anyone running agents with provider keys, the case leaves a rule: the key lives in your vault or in someone else''s invoice. The next breach announcement is a matter of time; the inventory decides whether it arrives as a notice or as a loss.

Need expert guidance?

Schedule a consultation with our specialists.

AI agent credential inventory

Frequently Asked Questions

The company announced unauthorized access to a legacy system it was decommissioning. Inside were the provider keys (OpenAI, Anthropic, Google) stored in the Console, the hosted service where the team uses the models without ever seeing the key. The official guidance: revoke and replace the keys in the provider panels, update the applications, and review recent usage for strange activity.

The confirmed scope was 1.4% of Console users, all with an external provider linked. The company notified that group by email on Saturday morning with the subject Action Required: Potential provider key breach, and the official word is that whoever did not receive the email was not affected. CLI and desktop keys live in a local database on the user's machine.

They used them. According to TechCrunch, they ran workloads on users' AI accounts and generated cost. The security market reads it as distillation: inference with someone else's key to harvest outputs and train on them. That is why checking the invoice and usage logs is part of the response, not only rotating the key.

The lesson is the key's address: whoever stores the credential in a vendor's console inherits the vendor's incident, and the incident's bill arrives at the key's owner. The agent's perimeter is called credential, and this case showed that sometimes it lives in someone else's house. It is the same lesson as PocketOS: [what held the error was the IAM, not the prompt](https://www.tech86.com.br/en/blog/pocketos-agente-deleta-producao-iam-falhou-confissao).

With the pattern that survives the next notice: revocable keys with a spending cap, minimum scope, never unique, stored in your own vault and rotated periodically. It complements what we already documented about [AI coding assistants as a supply chain vector](https://www.tech86.com.br/en/blog/supply-chain-ai-coding-npm-trapdoor): the agent's chain of trust is auditable, and the credential inventory is the first job of that audit.

Blog, Get in Touch

Have a question about our articles or services? Our team is ready to help.

Schedule a Meeting

Book a time slot.

Schedule Now

Email

Send us a message.

[email protected]

WhatsApp

Quick conversation.

Address

Avenida Paulista, 1636 - São Paulo - SP - 01310-200

Tech86 Specialist

Online now

Hello! How can we help scale your business today?

Tech86 Engineering

We Value Your Privacy

We use cookies and similar technologies to optimize your experience, analyze site traffic, and personalize content. By clicking "Accept All", you agree to the use of all cookies. Read our Privacy Policy.