Skip to navigation

Threat reportData BreachTL-2026-3942

OpenCode Console breach exposes linked AI-provider API keys amid large-scale distillation attack

highACTIVE

An intruder reached a legacy OpenCode Console system on the night of 2026-10-16, potentially exposing third-party AI-provider API keys (Anthropic, OpenAI, Google) saved by about 1.4% of Console users. OpenCode attributes the activity to a large-scale distillation attack run with AI agents; affected users reported unauthorized charges from hundreds of dollars to over $1,700.

Key facts

IdentifiersTL-2026-3942
Also known asOpenCode Console breach, OpenCode provider key exposure
SeverityHIGH
First disclosed
Affected productsOpenCode OpenCode Console (hosted workspace service, legacy system); Anthropic / OpenAI / Google Cloud API keys linked to OpenCode Console
Weaknesses (CWE)CWE-522
ToolsDaybreak blue (OpenAI defender cybersecurity tier)
MITRE ATT&CK techniquesT1078.004 Cloud Accounts, T1119 Automated Collection, T1496.004 Cloud Service Hijacking, T1552 Unsecured Credentials, T1657 Financial Theft
MotivationFINANCIAL
Target sectorstechnology, software-development
Target regionsGlobal
Detection rules9 (1 shown free)
Sources7 cited sources

Detection coverage

As of 2026-10-20, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-3942 across Splunk SPL, Microsoft KQL and Sigma, covering 8 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.

Free detection: OpenCode Breach — Distillation-Style Burst of Anthropic/OpenAI/Google AI API Requests (T1119)

Detects sustained high-volume requests to Anthropic, OpenAI and Google AI API endpoints from a single source across several 10-minute windows. OpenCode attributes TL-2026-3942 to AI-agent-driven distillation using stolen provider keys, and victims saw $168 to $1,700 of unexpected charges overnight. Behaviour-first: it does not depend on any IOC value.

  • Languages: Splunk SPL, Microsoft KQL, Sigma
  • ATT&CK: T1119, T1496.004, T1657
  • Data sources: splunk_cim_web, proxy_logs
  • Severity: high
  • Confidence: medium

Splunk SPL

| tstats summariesonly=true count AS requests from datamodel=Web where Web.url_domain IN ("api.anthropic.com","api.openai.com","generativelanguage.googleapis.com","*aiplatform.googleapis.com") by Web.src, Web.user, Web.url_domain, _time span=10m
```Distillation-style harvesting (TL-2026-3942): sustained high request rate to LLM provider APIs from one source```
| rename Web.* AS *
| where requests>500
| stats sum(requests) AS total_requests, max(requests) AS peak_10m, dc(_time) AS active_windows, values(url_domain) AS providers by src, user
| where active_windows>=3
| sort - total_requests

Microsoft KQL

CommonSecurityLog
| where TimeGenerated > ago(24h)
| where DestinationHostName in~ ("api.anthropic.com","api.openai.com","generativelanguage.googleapis.com") or DestinationHostName endswith "aiplatform.googleapis.com"
| summarize Requests=count() by SourceIP, SourceUserName, DestinationHostName, bin(TimeGenerated, 10m)
| where Requests > 500
| summarize TotalRequests=sum(Requests), Peak10m=max(Requests), ActiveWindows=count(), Providers=make_set(DestinationHostName, 5) by SourceIP, SourceUserName
| where ActiveWindows >= 3
| project SourceIP, SourceUserName, TotalRequests, Peak10m, ActiveWindows, Providers

Sigma

title: AI Provider API Request via Proxy (OpenCode Breach Distillation Base)
id: a3c1f5e2-7b40-4d1e-9a52-3942000a0001
name: ai_api_proxy_request
status: experimental
description: Base match for requests to Anthropic, OpenAI and Google AI API hosts, thresholded by the correlation rule below.
references:
    - https://www.bleepingcomputer.com/news/security/opencode-hack-exposes-api-keys-amid-ai-distillation-attacks/
    - https://thehackernews.com/2026/10/opencode-console-breach-may-have.html
author: Threadlinqs Team
date: 2026-10-20
tags:
    - attack.collection
    - attack.t1119
    - attack.impact
    - attack.t1496.004
logsource:
    category: proxy
detection:
    selection:
        cs-host|endswith:
            - 'api.anthropic.com'
            - 'api.openai.com'
            - 'generativelanguage.googleapis.com'
            - 'aiplatform.googleapis.com'
    condition: selection
falsepositives:
    - Approved AI gateways and developer workstations
level: informational
---
title: Burst of AI Provider API Requests From One Client (OpenCode Breach Distillation)
id: a3c1f5e2-7b40-4d1e-9a52-3942000a0002
status: experimental
description: 500 or more AI provider API requests from one client in 10 minutes, consistent with AI-agent-driven distillation using stolen provider keys (TL-2026-3942).
references:
    - https://www.bleepingcomputer.com/news/security/opencode-hack-exposes-api-keys-amid-ai-distillation-attacks/
    - https://thehackernews.com/2026/10/opencode-console-breach-may-have.html
author: Threadlinqs Team
date: 2026-10-20
tags:
    - attack.collection
    - attack.t1119
    - attack.impact
    - attack.t1496.004
    - attack.t1657
correlation:
    type: event_count
    rules:
        - ai_api_proxy_request
    group-by:
        - c-ip
    timespan: 10m
    condition:
        gte: 500
falsepositives:
    - Approved batch inference or evaluation jobs
level: medium

Known false positives:

  • Approved batch inference, evaluation or embedding pipelines
  • Developer CI jobs that call LLM APIs in bulk

Tuning notes: Requires the Web data model populated from proxy or secure web gateway logs. Tune the 500 requests per 10 minutes and 3 windows thresholds to your baseline, and exclude known AI gateway source addresses. Egress from OpenCode Console infrastructure is not visible to you; this finds stolen-key use from your own network.

8 more detection rules (Splunk SPL, Microsoft KQL, Sigma) · unlock with TL Creds. Sign up free to unlock the detection rules or query them with the Threadlinqs MCP server (Purple)
  • Scripting Runtime Mass Connections to Anthropic/OpenAI/Google AI APIs (T1119) · unlock with TL Creds
  • Phishing Lure Imitating OpenCode 'Potential provider key breach' Notice (T1566.002) · unlock with TL Creds
  • Google Cloud AI API Call Volume Spike vs Baseline — Stolen Key Abuse (T1496.004) · unlock with TL Creds
  • Non-Browser Process Resolving Anthropic/OpenAI/Google AI API Domains (T1078.004) · unlock with TL Creds
  • Scripted HTTP Client User Agent Calling AI Provider APIs Through Proxy (T1119) · unlock with TL Creds
  • Anthropic/OpenAI/Google API Key Literal in Process Command Line (T1552.001) · unlock with TL Creds
  • OpenCode Local Provider-Key Store Accessed by Non-OpenCode Process (T1552.001) · unlock with TL Creds
  • Google Cloud AI API Used by Service Account Key From a New Source IP (T1078.004) · unlock with TL Creds

Indicators of compromise

As of 2026-10-20, Threadlinqs Intelligence tracks 8 indicators of compromise for TL-2026-3942.

8 indicators of compromise · unlock with TL Creds. Compare plans

Technical analysis

OpenCode, an open-source AI coding agent, disclosed a security incident affecting its hosted OpenCode Console, not the OpenCode CLI or desktop applications. Co-founder Dax Raad stated that keys stored locally by the CLI and desktop apps (in local SQLite databases) 'never come to us' and were not affected. According to The Hacker News, an intruder accessed a legacy system on the night of 2026-10-16. Secondary reporting (OrcaRouter, unverified) describes it as a legacy Console system being decommissioned. Third-party AI-provider API keys that users had saved in the Console (OpenAI, Anthropic, Google Cloud) may have been exposed. Only Console users with an external provider linked were affected, about 1.4% of Console users.

OpenCode characterized the activity as a 'large-scale distillation attack': harvesting large volumes of model outputs, typically to train a rival or smaller model, using compromised credentials. Raad said attackers had been targeting the company's systems for at least 48 hours using AI agents. BleepingComputer gives the exposure window as starting 2026-10-17 00:30 UTC. The entry vector, dwell time, absolute number of affected accounts and technical evidence for the distillation claim have not been published. As of the sources reviewed, no post-mortem, CVE, malware family, network IOCs or threat-actor attribution was available.

Impact reported by users on X and Reddit: unauthorized charges of $281 (OpenAI) plus $168 (Anthropic) for one user, about $1,700 total for another, $400+ on Anthropic and about EUR 200 on Google for others. Some Google Cloud projects were suspended for 'abusive activity' consistent with hijacked resources. Anthropic reportedly proactively revoked keys it believed were compromised. OpenCode emailed affected users (subject reportedly 'Action Required: Potential provider key breach') telling them to revoke and replace keys with each provider. Sources disagree on the notification date: The Hacker News says 2026-10-17, BleepingComputer says 2026-10-19. OpenCode offered potential reimbursement and is coordinating with Google, Anthropic and OpenAI.

During incident response, Raad said frontier AI models initially assisted and then began refusing, which frustrated investigation. OpenCode then gained access to OpenAI's 'Daybreak blue' defender cybersecurity tier. Severity is an analyst assessment (HIGH): confirmed financial abuse of stolen third-party credentials, with a limited blast radius.

MITRE ATT&CK techniques by tactic:

Initial Access

T1078.004 Cloud Accounts

Collection

T1119 Automated Collection

Impact

T1496.004 Cloud Service Hijacking; T1657 Financial Theft

Credential Access

T1552 Unsecured Credentials

Remediation

Immediate actions

  • If you received the OpenCode notification email, revoke the OpenAI, Anthropic and Google API keys linked in OpenCode Console at each provider and issue new ones
  • Update every application and CI secret that used the revoked keys
  • Review provider usage and billing logs from 2026-10-16 onward for unexpected spikes, models or regions
  • File billing disputes with providers for documented unauthorized charges
  • Check Google Cloud projects for suspension notices or abusive-activity warnings

Workarounds

  • Use the OpenCode CLI or desktop app with locally stored keys, which OpenCode states were not affected
  • Unlink external providers from OpenCode Console until OpenCode publishes a post-mortem

Longer-term hardening

  • Set per-key and per-project spend caps and usage alerts at each AI provider
  • Prefer scoped, least-privilege, short-lived provider keys; avoid storing long-lived provider keys in third-party hosted consoles
  • Rotate AI-provider keys on a schedule and monitor for anomalous inference volume
  • Decommission legacy systems promptly and keep them out of scope for credential storage

Affected and fixed versions

  • OpenCode — OpenCode Console (hosted workspace service, legacy system)
    Vulnerable versions: Console accounts with linked external AI provider keys (about 1.4% of users)
  • Anthropic / OpenAI / Google Cloud — API keys linked to OpenCode Console
    Vulnerable versions: Keys saved in OpenCode Console on or before 2026-10-17
    Fixed in: Keys revoked and re-issued by the user

Timeline

  • An intruder reaches a legacy OpenCode Console system on the night of 2026-10-16, per The Hacker News; the exact entry vector is undisclosed.
  • Affected users report unauthorized charges on linked OpenAI, Anthropic and Google keys, from $168-$281 per provider up to about $1,700 in total. Anthropic reportedly revokes keys it believes were compromised.
  • OpenCode publicly discloses the incident. It says about 1.4% of Console users with linked external provider keys are affected and tells them to revoke and replace the keys. The Hacker News reports an email titled 'Action Required: Potential provider key breach' on this date.
  • Exposure window begins at 00:30 UTC, per BleepingComputer; AI-agent-driven distillation activity against OpenCode systems follows.
  • Attackers continue targeting OpenCode systems. Co-founder Dax Raad says the attacks have run for at least 48 hours and that frontier AI models began refusing to assist the incident-response investigation.
  • BleepingComputer publishes 'OpenCode hack exposes API keys amid AI distillation attacks'. Some Google Cloud projects are reported suspended for abusive activity.
  • BleepingComputer reports OpenCode notified all affected users by email that morning ('If you did not get an email, you were not impacted'). OpenCode says it stabilized using OpenAI's Daybreak AI cybersecurity model and offers potential reimbursement while coordinating with Google, Anthropic and OpenAI.

Sources cited

Previous and next in data breach

Drafted by the Threadlinqs research pipeline from 7 sources; published ; last updated —.

Threadlinqs Intelligence — Real-Time Threat Detection Platform

// threat_feed
$ sort --newest
Showing all threats

Live intelligence console

Threat level

Latest Threats