OpenCode hack exposes API keys amid AI distillation attacks
OpenCode, an AI coding project, notified users that API keys used with external providers were exposed in a security breach. The breach affected 1.4% of OpenCode Console users, leading to unauthorized API charges and suspended projects in Google Cloud.
Intelligence analysis by Qwen 2.5 (3B)

OpenCode, an AI coding project, has notified users that API keys used with external providers were exposed in a security breach, affecting 1.4% of its users and leading to unauthorized charges and suspended projects in Google Cloud.
OpenCode had a security problem where bad guys used fake AI helpers to try and get into their system. They found out about it and used a special AI helper to stop them. Some people got extra charges for using OpenCode, but OpenCode is trying to help those people.
Analysis
{"heading":"The Distillation Attack","subheading":"Understanding the Attack","content":["OpenCode announced a large-scale distillation attack that impacted 1.4% of its Console users. Distillation is a legitimate machine-learning technique used to create smaller, cheaper models from larger, more powerful models.","The attackers used AI agents to target OpenCode's systems for at least 48 hours. OpenCode's investigation was blocked when the AI models began refusing requests due to built-in security safeguards.","OpenCode began using OpenAI's Daybreak AI cybersecurity model for defensive work after the attack. The model was approved for use on Saturday."]}
Key points
- OpenCode notified users of a security breach involving API keys
- The breach affected 1.4% of OpenCode Console users
- OpenCode is working with other companies to address the incident
OpenCode is working with other companies to fix the problem and is offering to help users who got extra charges.
If the bad guys get more clever, they might find ways to get into OpenCode's system again.



