Skip to main content
Emerging ThreatsData Breaches

OpenCode Breach Exposes API Keys in AI Distillation Attack

Cluttered developer workstation with laptop and monitors in a shared office space.

“We had a security breach last night related to a large-scale distillation attack that impacted 1.4% of OpenCode Console users,” the project maintainer said.

How the distillation attack worked

OpenCode described the incident as a large distillation attack. Distillation is a legitimate machine‑learning technique that trains smaller models using responses generated by larger models, but OpenCode’s notice and follow-up description frame this event as an attack because it used large‑scale, unauthorized queries to train models. The breach affected only developers who had linked external providers to their OpenCode Console accounts.

Who and what was affected

OpenCode said 1.4% of Console users were impacted. The project maintainer and co‑founder Dax Raad reported that the attack targeted systems where users had connected external AI providers, naming Anthropic, OpenAI, and Google as linked providers. Several users reported unauthorized API charges ranging from several hundred dollars up to more than $1,700 overnight. Some impacted users also saw Google suspend projects after detecting “abusive activity consistent with hijacked resources.”

Timeline and OpenCode’s defensive actions

OpenCode’s email to impacted users gave an earliest possible exposure time of October 17, 2026 at 00:30 UTC, and said no data appears to have been exposed. Raad said attackers had been targeting the company’s systems for at least 48 hours using AI agents. OpenCode’s investigation was hampered when some AI models began refusing requests because of built‑in security safeguards. The situation, Raad said, stabilized after OpenCode began using OpenAI’s Daybreak AI cybersecurity model for defensive work; OpenCode was approved to use Daybreak on Saturday. OpenCode also reported it is working with Google, OpenAI, and Anthropic to address the incident but said it could not share further details at this time.

What this means for technologists, OpenCode users, and AI providers

  • Technologists and security teams: The incident highlights how credentialed access to provider APIs can be abused for large‑scale model training when keys are exposed. OpenCode framed the event as a distillation attack carried out through unauthorized queries, and the project’s note that investigators were blocked when provider models refused requests underscores operational friction that can appear during active incidents.
  • OpenCode users and developers who link providers: Affected users received email notifications and were told OpenCode may reimburse impacted accounts. The breach demonstrates immediate downstream risks—unauthorized billing and suspended cloud projects—when API keys are exposed; some users reported charges of up to $1,700 overnight and Google suspensions for activity described as consistent with hijacked resources.
  • AI providers (Anthropic, OpenAI, Google): OpenCode said it is coordinating with Anthropic, OpenAI, and Google. The event illustrates a coordination challenge: defender actions inside provider platforms (for example, refusing risky model requests or suspending projects) can mitigate abuse but also affect investigation and customer projects in real time.

Operational context and a closing observation

OpenCode’s account of the breach contains several operational signals: a targeted subset of users who linked external providers, multi‑day probing with AI agents, model safeguards that interrupted investigative queries, and a defensive turn to an approved cybersecurity model. OpenCode contacted impacted users by email and noted the possibility of reimbursement for affected customers. BleepingComputer contacted OpenCode for more details and had not heard back as of publication.

One procedural note OpenCode’s message echoes: “Overall prevention scores can hide what happens after initial access. Once attackers are using valid credentials, prevention drops sharply.” The incident underlines that when API keys are in play, billing, project availability, and the operational ability to investigate can all move quickly—and that response paths can require coordination between open‑source maintainers and provider platforms.

https://www.bleepingcomputer.com/news/security/opencode-hack-exposes-api-keys-amid-ai-distillation-attacks/