# OpenCode hack exposes API keys amid AI distillation attacks

DevFeed: [OpenCode hack exposes API keys amid AI distillation attacks](<https://devfeed.tech/articles/opencode-hack-exposes-api-keys-amid-ai-distillation-attacks-90455.md>)

Original publisher: [Read original article](<https://www.bleepingcomputer.com/news/security/opencode-hack-exposes-api-keys-amid-ai-distillation-attacks/>)

Author: Bill Toulas

Published: 2026-10-19T17:27:15Z

Content type: news

Language: en

Sources: [BleepingComputer](<https://devfeed.tech/sources/bleepingcomputer.md>)

Topics: [Secrets Management](<https://devfeed.tech/topics/secrets-management.md>), [API keys](<https://devfeed.tech/topics/api-keys.md>), [token jacking](<https://devfeed.tech/topics/token-jacking.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [ai-coding](<https://devfeed.tech/tags/ai-coding.md>), [ai-cybersecurity](<https://devfeed.tech/tags/ai-cybersecurity.md>), [api-key](<https://devfeed.tech/tags/api-key.md>), [artificial-intelligence](<https://devfeed.tech/tags/artificial-intelligence.md>), [breach](<https://devfeed.tech/tags/breach.md>), [charges](<https://devfeed.tech/tags/charges.md>), [computer-help](<https://devfeed.tech/tags/computer-help.md>), [computer-security](<https://devfeed.tech/tags/computer-security.md>), [computers](<https://devfeed.tech/tags/computers.md>), [credentials](<https://devfeed.tech/tags/credentials.md>), [cybersecurity](<https://devfeed.tech/tags/cybersecurity.md>), [developers](<https://devfeed.tech/tags/developers.md>), [infosec](<https://devfeed.tech/tags/infosec.md>), [infosec-computer-security](<https://devfeed.tech/tags/infosec-computer-security.md>), [initial-access](<https://devfeed.tech/tags/initial-access.md>), [linux](<https://devfeed.tech/tags/linux.md>), [mac](<https://devfeed.tech/tags/mac.md>), [malware](<https://devfeed.tech/tags/malware.md>), [malware-removal](<https://devfeed.tech/tags/malware-removal.md>), [opencode](<https://devfeed.tech/tags/opencode.md>), [private-key](<https://devfeed.tech/tags/private-key.md>), [security](<https://devfeed.tech/tags/security.md>), [security-breach](<https://devfeed.tech/tags/security-breach.md>), [spyware](<https://devfeed.tech/tags/spyware.md>), [support](<https://devfeed.tech/tags/support.md>), [tech-support](<https://devfeed.tech/tags/tech-support.md>), [technical-support](<https://devfeed.tech/tags/technical-support.md>), [virus](<https://devfeed.tech/tags/virus.md>), [virus-removal](<https://devfeed.tech/tags/virus-removal.md>), [windows](<https://devfeed.tech/tags/windows.md>)

## AI overview

OpenCode reported that a breach exposed API keys some users had stored for external AI providers. The incident affected 1.4% of OpenCode Console users and led to reports of unauthorized charges and suspended Google Cloud projects. The article says attackers used AI agents in a large-scale distillation attack, while OpenCode worked with Google, OpenAI, and Anthropic to address the incident.

## Source excerpt

The open-source AI coding project OpenCode has notified a small number of users that API keys they used with external providers were exposed in a security breach. [...]