Tech • AI • Robotics • Game

ENFR

OpenCode got hacked

AIThe PrimeTimeOctober 24, 2026 at 03:45 AM12:53
Audio player

TL;DR

OpenCode said a security breach tied to a large-scale distillation attack affected 1.4% of OpenCode Console users, exposing how stolen API credentials are being used to harvest outputs from frontier AI models.

KEY POINTS

Breach and customer impact

OpenCode disclosed the incident on October 16, saying the breach was linked to a large-scale distillation campaign. The company said 1.4% of OpenCode Console users were affected. Console is used for team-wide policy controls, usage tracking and budget management, making it a sensitive target because it can hold access to multiple model providers.

Reports of financial losses

Users reported unauthorized spending ranging from several hundred dollars to about $1,400. Anthropic, OpenAI and Google were described as working with affected customers, with Google Cloud directing users to billing support and warning that responses could take 5 to 10 business days. The quick provider response suggested the abused credentials were detected through existing anti-abuse systems.

What a distillation attack is

In AI, distillation usually means training a smaller model on outputs from a larger, more capable one. Attackers aim to generate massive volumes of answers and reasoning traces from premium systems, then use that data to make weaker models imitate stronger ones. The technique itself is not new, but the commercial value of extracting high-quality data from large language models has made it a major security issue.

Why reasoning traces matter

The most valuable target is not just the final answer but the model’s intermediate reasoning or thinking trace. Those traces can help a smaller model learn how a frontier system arrives at conclusions, improving its ability to mimic performance. That is why prompt attacks increasingly try to force models to reveal internal reasoning verbatim rather than only producing normal outputs.

How stolen accounts are used

The attack pattern described here relies on breaching companies first, then using trusted customer tokens or API keys to query frontier models at scale. Attackers prefer established accounts because they look legitimate and can avoid immediate suspicion. Once providers detect unusual usage, the keys are typically revoked, forcing attackers back into the market for newly stolen credentials.

Model providers had already flagged abuse

An early customer reportedly learned their key had been misused after a provider revoked it and warned it was being used for distillation. That indicates major labs are running automated detection for suspicious extraction behavior and can identify attempts to collect outputs at industrial scale. It also explains why some legitimate customers were contacted or temporarily disrupted during the response.

Prompt injection remains a practical extraction method

Examples attributed to Anthropic showed surprisingly simple prompts could, at least temporarily, trigger reasoning disclosure. Variants included instructions not to flag extraction, claims that the user was debugging reasoning traces, and requests to restate hidden working memory in altered formats such as katakana. The examples illustrate that even advanced models can still fail under carefully crafted prompt-injection attacks.

AI is becoming part of cyber defense itself

The incident also highlights how companies are increasingly turning to AI systems for constant monitoring and incident response. OpenCode said it received access to Daybreak Blue, a defensive security model associated with OpenAI, to help protect its systems. The company described modern attacks as highly automated, parallelized and too fast-moving for human-only monitoring.

The cost of continuous AI defense

Running advanced defensive models around the clock is expensive. OpenCode estimated the cost at at least several thousand dollars per day, implying roughly $1 million a year at the low end. That raises a wider industry concern: if AI-driven attacks become standard, mid-sized companies may face a new recurring security bill just to keep pace with adversaries using top-tier models.

CONCLUSION

The OpenCode breach shows that AI security risks now extend beyond data theft to industrial-scale extraction of model behavior. As attackers automate distillation and providers respond with always-on AI defenses, the cost of doing business in software security is likely to rise sharply.

Ask a question

More from AI