Build

An AI tool can create two problems during a security incident: a stolen credential can run up your bill, and the assistant you rely on for investigation can refuse to examine the attack. TechCrunch’s October 19 report on OpenCode describes both. For businesses adopting AI tools, the lesson is practical: know where your credentials go, limit what they can spend, and keep an incident response process that works when an assistant stops helping.
OpenCode is an open-source AI coding agent that's become a popular alternative to Claude Code and Cursor. But hackers got into part of its online
What happened at OpenCode
According to TechCrunch, attackers broke into an older system connected to OpenCode Console, its online platform where some users stored credentials for AI services. OpenCode said the incident affected 1.4% of Console users and that it had emailed those affected. The company distinguished Console from its open source application and command-line tool, which it said were not affected.
Users reported spending alerts and unauthorized charges across AI provider accounts. Some described charges in the hundreds of dollars, with a few reporting totals above $1,000. TechCrunch reported that Anthropic and Google blocked keys they believed were exposed, while OpenAI worked with OpenCode to restore access and refund credits used in the attack. OpenCode also said refunds were underway.
TechCrunch: Anthropic and Google blocked API keys exposed in the OpenCode breach.OpenAI said it worked with OpenCode to refund API credits used in the attack.
OpenCode described the incident as a distillation attack, a process involving large volumes of model outputs that can help train another model. But the report also noted skepticism about that explanation. The use of stolen credentials for distillation had not been established publicly. Several basic questions remained unanswered:
OpenCode has not detailed how attackers gained access to the older system, how keys were stored, or the full extent of any misuse.
TechCrunch
Those limits matter. The report supports concern about exposed credentials and unauthorized spending. It does not establish the initial entry method or justify treating every OpenCode installation as compromised.
When defensive help becomes unavailable
The response exposed another dependency. TechCrunch reported that OpenCode used AI agents to help defend its systems during sustained attack attempts. Models initially helped with analysis, then began refusing requests when malicious code under examination triggered their safety filters. OpenCode later received access to OpenAI’s Daybreak Blue program for vetted users, which reportedly improved its ability to investigate.
That is a serious operational mismatch: defenders may need to inspect exactly the material a model is restricted from handling. It does not mean the models developed consciences, and the source does not establish that they refused because attackers were using agents. Nor does this report substantiate a claim that only three out of 1,200 agents declined offensive work. The supported concern is narrower: safety filters interrupted legitimate defensive analysis during an active incident.
A business should therefore treat AI assistance as one response resource. Someone still needs access to provider controls, usable logs, a credential inventory, and a clear decision process when the assistant becomes unavailable.
A stolen key can become a billing incident
Consider a hypothetical accounting firm that connects an AI document tool to its own provider account. An employee saves a broadly usable API key in the tool’s hosted workspace. If that workspace exposes the key, an attacker may be able to make requests billed to the firm without entering the firm’s office network.
The firm’s immediate questions would be concrete: Which key was exposed? What activity used it? Which workflows depend on it? Who can revoke it and restore legitimate access? A spending alert helps reveal the problem, but someone must receive it and know what to do.
What to actually do about it
Map where your AI credentials are stored. List the tools holding provider keys, their business owners, and the workflows they support. Distinguish a locally stored credential from one submitted to a vendor’s hosted platform. Include older workspaces that staff may have forgotten.
Separate credentials and constrain spending. Use separate keys or projects for different tools where the provider supports them. Review available permissions, budgets, and usage limits. Confirm whether a setting merely sends an alert or actually stops further spending.
Prepare a credential response procedure. Identify who can inspect usage, preserve relevant records, revoke an exposed key, and update dependent applications. For affected OpenCode users, the reported instruction was to revoke and replace keys directly with each provider. Do not copy credentials into support messages or incident notes.
Keep a response path that works without AI. Make sure staff can reach provider consoles, retrieve logs, and contact qualified technical help independently. Document how to continue an investigation if an assistant refuses to analyze suspicious material.
An External Security Posture Assessment is passive and external-only. It can help identify publicly observable configuration gaps, but it cannot establish how a vendor stores private API keys or replace an internal credential review. A configuration gap alone is not proof of compromise.
Start with one question for whoever manages your AI tools: if a stored key were exposed tonight, could they identify it, stop its use, and restore the affected workflow without relying on the same assistant?