US — TechCrunch
Hackers hit AI coding tool OpenCode, running up charges on users’ AI accounts
Security1 min read
Hackers broke into OpenCode's online console, an AI coding tool service, and ran up charges on some users' AI accounts. The attack shows how hard it can be to defend against AI-driven attacks when AI safety filters block security work.
What happened
Attackers broke into an older system at OpenCode overnight. The system is OpenCode Console, a website where some users store their API keys. An API key is a secret code that lets a program use an AI service. Attackers used leaked keys to run up charges on users' AI accounts. The open-source app itself was not affected.
Key facts
- About 1.4% of OpenCode Console users were hit.
- Some users reported charges in the hundreds of dollars. A few reported totals above $1,000.
- Anthropic and Google blocked the keys they thought were exposed.
- OpenAI said it would refund API customers for credits used in the attack.
- Attackers had been trying to break in nonstop for 48 hours.
Why AI models were hard to use
OpenCode used AI models to study the attack code. Many AI models have safety filters that refuse some requests. The filters switched on when the attack code was shown to them, so the models stopped helping. OpenCode later got access to a program from OpenAI that gives vetted users models that are less likely to refuse security work.
Why it matters
The story shows a tough problem. Defenders need AI tools to fight AI-driven attacks, but safety rules can block the very help they need. Some experts say this pushes teams toward open models that anyone can run, and critics say the rules are inconsistent. The story is still being debated, and some people doubt the attack was used for distillation, which means copying an AI model's outputs.
What to watch
- Whether OpenCode finishes refunds to affected users.
- How OpenCode explains how the attack happened.
- Whether AI companies change how safety filters work for security defenders.
- Whether more companies get access to vetted AI models for security work.
Glossary
- OpenCode
- An open-source AI coding agent that helps developers write code.
- OpenCode Console
- The online platform where some OpenCode users store their API keys.
- API key
- A secret code that lets a program use an AI service.