
OpenCode Got Hacked Badly (My API Keys Got Drained)
Title history
- OpenCode Got Hacked Badly (My API Keys Got Drained) — observed on 20261031-2304 UTC (YouTube)
Keywords
Summary
185 words
Critical Evaluation
Value of the Information & Strength of the Argument
The video provides high informational value by combining a timeline, technical analysis of the database schema, and practical security recommendations. It effectively argues that the financial impact was determined by user-configured limits rather than attacker intent, supporting this with concrete examples (e.g., Max Weinbach’s prepaid balance halting charges). The argumentation is logical and well-supported, citing official statements, tweets from victims, and public code commits. The creator acknowledges uncertainties, such as the exact entry point, which adds credibility. However, some conclusions (e.g., distillation as a misnomer) are presented as strong opinions though based on limited evidence.
Scientific Rigor, Source Quality, Title Accuracy
The video references numerous sources, including OpenCode statements, TechCrunch, Anthropic’s distillation defense research, CISA advisory, and provider spend limit documentation, all linked in the description. These sources are credible and relevant. The analysis uses publicly accessible code commits to support claims about plaintext storage and failed deletion attempts. The title accurately reflects the content, focusing on the hack and API key drain. The creator maintains a balance between factual reporting and commentary, though some interpretations are presented with confidence. The inclusion of diverse sources strengthens the overall rigor.
198 words
Title / Content Match
The title accurately reflects the content: it covers the OpenCode hack, API key theft, and personal financial losses. It is slightly sensationalist but not misleading.
Quality & Reliability
7/10
The video relies on multiple official statements, a TechCrunch article, and public code commits, but the exact attack vector remains unconfirmed and some conclusions are inferential. Overall, it is fairly reliable with some speculative elements.
Chapters
- Same hack: $16 or $3,000
- What OpenCode is (Console vs terminal)
- The timeline: 17.5 hours to a statement
- The "legacy" database that never got deleted
- Your API key, stored as plain text
- Why "distillation" doesn't fit
- Why hackers want real developer keys
- The ceiling that decided every bill
- OpenAI, Anthropic and Gemini spend limits
- What to do tonight
- The bigger picture
- Wrap-up
Cited Sources
- Gemini API billing — Reference for Gemini API billing and spend limits
- OpenAI spend limits — Reference for OpenAI API hard limits and alerts
- OpenCode commit removing legacy database — Evidence of the attempted removal of legacy database
- Anthropic rate limits — Reference for Anthropic API tiers and limits
- Anthropic auto-reload support — Reference for auto-reload on prepaid accounts
- TechCrunch article on OpenCode hack — Coverage of the OpenCode breach and user impact
- Anthropic distillation defenses — Reference to distillation attacks and defenses
- CISA advisory AA26-251A — Advisory on API proxy services and criminal laundering
- Reddit r/opencode thread — Community discussion of the breach
Concurring Sources
- TechCrunch — Confirms opencode breach and user impact
- OpenCode statement on X — Official acknowledgment of the breach
Dissenting Sources
- Nathan Lambert's tweet — Questions the classification of the attack as distillation, suggesting it may be more accurately described as credential theft
External References
Contribution & Novelties
The video offers a concise, well-researched analysis of a recent security incident, highlighting the crucial role of API spend limits in determining damage extent. It debunks the ‘distillation attack’ narrative with concrete evidence (e.g., the test ping) and provides actionable security steps. The insight that real developer accounts are valuable due to their history and trust is a refreshing perspective.
Pour aller plus loin :
- API key rotation best practices — Google’s guide on key management, relevant to rotating keys.
- CISA advisory on API security — Official guidance on mitigating API-related threats.
- Anthropic’s distillation defenses — Research on protecting models from distillation attacks, contextualizing the threat.
106 words
Radar Profile
The radar profile shows a balanced video with high quantitative and qualitative information, moderate technical depth, and strong reliability. The user likely values actionable insights and clear explanations.
💬 Équilibré : Sur les 30 commentaires analysés, la majorité apprécie l'information et les conseils pratiques, mais plusieurs critiquent l'utilisation d'une voix IA et le ton répétitif, et certains questionnent la sécurité de BYOK.