LmCast :: Stay tuned in

OpenCode hack exposes API keys amid AI distillation attacks

Recorded: Oct. 19, 2026, 6:02 p.m.

Original Summarized

OpenCode hack exposes API keys amid AI distillation attacks

News

Featured
Latest

PHP warns admins of two critical flaws, emergency patches coming tomorrow

Mozilla, Google, Apple block compromised eMudhra CA certificates

Windows Server 2025 gets support for quick machine recovery

Revolut outage disrupts online banking operations worldwide

OpenAI agents disabled safety monitoring, one lied about it

PHP ships emergency patches for critical PHP2Shell flaws

ClickFix has never been bigger, and AI tools are its most convincing lure yet

Microsoft PowerToys adds CursorHide, Button Lock mouse tools

Tutorials

Latest
Popular

How to access the Dark Web using the Tor Browser

How to enable Kernel-mode Hardware-enforced Stack Protection in Windows 11

How to use the Windows Registry Editor

How to backup and restore the Windows Registry

How to start Windows in Safe Mode

How to remove a Trojan, Virus, Worm, or other Malware

How to show hidden files in Windows 7

How to see hidden files in Windows

Webinars
Downloads

Latest
Most Downloaded

Qualys BrowserCheck

STOPDecrypter

AuroraDecrypter

FilesLockerDecrypter

AdwCleaner

ComboFix

RKill

Junkware Removal Tool

Deals

Categories

eLearning

IT Certification Courses

Gear + Gadgets

Security

VPNs

Popular

Best VPNs

How to change IP address

Access the dark web safely

Best VPN for YouTube

Forums
More

Virus Removal Guides
Startup Database
Uninstall Database
Glossary
Send us a Tip!
Welcome Guide

HomeNewsSecurityOpenCode hack exposes API keys amid AI distillation attacks

OpenCode hack exposes API keys amid AI distillation attacks

By Bill Toulas

October 19, 2026
01:27 PM
0

The open-source AI coding project OpenCode has notified some users that stored API keys they used with external providers were exposed in a security breach.
Multiple users reported that the incident led to unauthorized API charges and suspended projects in Google Cloud.
According to the project maintainer, the breach affected 1.4% of OpenCode Console users, with some reporting more than $1,700 in unauthorized charges overnight.
OpenCode is a model-agnostic AI coding agent that helps users understand code, write features, and fix bugs using natural-language instructions, through a terminal, desktop app, or code editor.
Users can connect AI models from multiple AI providers to the OpenCode console to streamline and automate the development process.
Distillation attack
On Saturday, OpenCode announced that it suffered a large distillation attack that impacted only developers who linked external providers, including Anthropic, OpenAI, and Google.
“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.
“We have notified them all this morning via email. If you did not get an email, you were not impacted, it was a subset of users who had external providers linked.”
Distillation is a legitimate machine-learning technique that trains smaller AI models using responses generated by more powerful models. The goal is to create cheaper, faster models that retain many of the capabilities of their larger counterparts.
However, the technique becomes an attack when it involves large-scale training through unauthorized queries.
OpenCode co-founder Dax Raad said attackers had been targeting the company's systems for at least 48 hours using AI agents.
He also said OpenCode's investigation of the attackers were blocked when the AI models it was using began refusing requests due to built-in security safeguards.

Distillation attack on OpenCode ran for 48 hourssource: Dax Raad
Raad said the situation stabilized after OpenCode began using OpenAI’s Daybreak AI cybersecurity model for defensive work, which it was approved to use on Saturday.
The email sent to impacted users notes that the earliest possible exposure of the users’ keys was on October 17, 2026, 00:30 UTC, and that no data appears to have been exposed.
OpenCode also said it was working with Google, OpenAI, and Anthropic to address the incident but could not share further details at this time.

OpenCode notice to usersSource: Alex Spinu
User reports claim rogue charges following the private key leaks, ranging from several hundred USD to up to $1,700. OpenCode’s message to impacted users mentions the possibility of reimbursement for those impacted.
Some users reported that Google suspended their projects after detecting "abusive activity consistent with hijacked resources.”
BleepingComputer contacted OpenCode for more details, but we have not heard back as of publication.

Once attackers have valid credentials, only 37% of their actions are blocked

Overall prevention scores can hide what happens after initial access. Once attackers are using valid credentials, prevention drops sharply.The Blue Report 2026 measures defenses technique by technique across 338 million simulations run in customer production environments.
Get the report

Related Articles:
Automated AI agent used to breach cybersecurity nonprofit DIVDOpenAI says GPT-6.1 Sol is dramatically better at migrating legacy codeDHS bans DeepSeek products across US federal civilian agenciesAnthropic warns self-replicating AI could spread to your smart devicesAnthropic takes risky AI tests offline after models breach govt sites

AI
API Key
Artificial Intelligence
OpenCode
Private Key
Security Breach

Bill Toulas
Bill Toulas is a tech writer and infosec news reporter with over a decade of experience working on various online publications, covering open-source, Linux, malware, data breach incidents, and hacks.

Previous Article
Next Article

Post a Comment Community Rules

You need to login in order to post a comment
Not a member yet? Register Now

You may also like:

Popular Stories

PHP warns admins of two critical flaws, emergency patches coming tomorrow

Mozilla, Google, Apple block compromised eMudhra CA certificates

Hackers exploit SiteGuard WAF flaw to run commands as admins

Sponsor Posts

See How Employees Use AI. Then, Turn Insight Into Action

Pentest your web apps on-demand. Find what humans miss. Scope and launch a pentest in minutes.

Inside the Chinese-language marketplaces powering the scam centre economy: join a live training.

Overdue a password health-check? Audit your Active Directory for free

Get your free 30-day browser security assessment

Follow us:

Main Sections

News
Webinars
VPN Buyer Guides
SysAdmin Software Guides
Downloads
Virus Removal Guides
Tutorials
Startup Database
Uninstall Database
Glossary

Community

Forums
Forum Rules
Chat

Useful Resources

Welcome Guide
Sitemap

Company

About BleepingComputer
Contact Us
Send us a Tip!
Advertising
Write for BleepingComputer
Social & Feeds
Changelog

Terms of Use - Privacy Policy - Ethics Statement - Affiliate Disclosure

Copyright @ 2003 - 2026 Bleeping Computer® LLC - All Rights Reserved

Login

Username

Password

Remember Me

Sign in anonymously

Sign in with Twitter

Not a member yet? Register Now


Reporter

Help us understand the problem. What is going on with this comment?

Spam

Abusive or Harmful

Inappropriate content

Strong language

Other

Read our posting guidelinese to learn what content is prohibited.

Submitting...
SUBMIT

According to Bill Toulas, a tech writer and infosec news reporter with over a decade of experience covering open-source, Linux, malware, data breach incidents, and hacks, the open-source AI coding project OpenCode has notified users that stored API keys used with external providers were exposed in a significant security breach. The incident was triggered by a large-scale distillation attack that impacted 1.4% of OpenCode Console users who had linked external AI providers, including Anthropic, OpenAI, and Google. Multiple users reported unauthorized API charges and the suspension of projects within Google Cloud as a direct consequence of the breach.

OpenCode, described as a model-agnostic AI coding agent that enables users to understand code, write features, and fix bugs through natural-language instructions via terminal, desktop, or code editor interfaces, allows users to connect AI models from multiple providers to streamline development. The project's co-founder Dax Raad detailed the attack, stating that it was a large-scale distillation attack that occurred overnight and targeted systems for at least 48 hours using AI agents. He explained that OpenCode's investigation was initially blocked when the AI models utilized began refusing requests due to built-in security safeguards. The situation was stabilized after OpenCode adopted OpenAI's Daybreak AI cybersecurity model for defensive operations, which it had been approved to use on the same day.

Distillation, a legitimate machine-learning technique that trains smaller models using responses from more powerful models to create cheaper, faster versions with retained capabilities, became an attack when it involved large-scale training through unauthorized queries. The project maintainer noted that the earliest possible exposure of affected users' keys occurred on October 17, 2026, at 00:30 UTC, and that no data beyond the keys themselves appears to have been exposed. OpenCode confirmed it was working with Google, OpenAI, and Anthropic to address the incident but declined to provide further details at the time of the report.

User reports indicated that rogue charges resulting from the private key leaks ranged from several hundred dollars to as high as $1,700 in unauthorized transactions. The email sent to impacted users mentioned the possibility of reimbursement for those affected. Additionally, some users reported that Google suspended their projects after detecting "abusive activity consistent with hijacked resources." BleepingComputer, the source of the report, contacted OpenCode for additional details but had not received a response by the time of publication.

The breach underscores the vulnerability of relying on external AI providers within open-source coding tools. While OpenCode's defensive measures eventually mitigated the immediate impact, the incident highlights the critical need for robust security protocols and rapid response mechanisms when AI agents are used to interact with external systems.