Skip to content

Security and governanceGuide

Stolen API keys and AI distillation campaigns

A fraudulent account has to fake an identity and a card. A stolen key from a real company arrives with both, plus that company's limits and its name on every request. That is why stolen keys show up in the 2026 accounts of distillation campaigns, and why their owners pay.

By INFRO Editorial

Published

8 min read

An amber glass gauge on a dark ground with its needle pushed into a red zone at the top of the scale

In short

Distillation operators value stolen API keys because a key from a real customer comes with a verified identity, a working payment method, the account's rate limits and someone else's name on the traffic. Anthropic's September 2026 report says proxy services behind distillation campaigns often use stolen API credentials of legitimate companies or individuals. For the key's owner the result is an unexpected bill, a possible account suspension and terms-of-service exposure. The controls that work are provider-side: scoped keys, provider spend limits, usage monitoring by key and fast revocation.

Key takeaways

  • Anthropic's September 2026 report says the proxy services behind distillation campaigns often use stolen API credentials belonging to legitimate companies or individuals.
  • A stolen key carries a verified identity, a payment method, the account's limits, and cover: the traffic is attributed to the key's owner.
  • The owner pays: the provider bills the account, may suspend it for abuse, and the traffic breaches the provider's terms under the owner's name.
  • A key stolen from anywhere can be used directly against the provider, so the controls that bound the damage are provider-side: scoping, spend limits, usage by key and revocation.
  • Treat every AI key as a production credential with resale value, and keep a written list of every tool that stores one.

Why do distillation operators want stolen API keys? Because a key taken from a real customer arrives with everything a fraudulent account has to fake: a verified identity, a working payment method, the account's rate limits, and someone else's name on every request. Anthropic's September 2026 threat report says the proxy services that labs use for distillation often rely on "stolen API credentials belonging to legitimate companies or individuals"1. For the owner of the key, the outcome is someone else's extraction traffic on their bill, and possibly their account suspended for it.

This guide explains what providers have said about stolen keys in these campaigns, why a stolen key is worth more than a fake account, what it costs the victim, and which controls bound the damage. For the technique itself, see what a distillation attack is.

What the providers have said about stolen keys

The public record is specific about some things and silent about others.

  • Anthropic, September 2026. Labs generally reach Claude through proxy services known as transfer stations, which create thousands of accounts using false identities, fake or stolen cards and stolen API keys, and often use stolen credentials of legitimate companies or individuals1. Elsewhere in the same report, Anthropic describes criminal groups whose sole aim is AI access in the form of compromised keys and session tokens, sold through brokers into fraudulent AI reseller networks that rotate in new stolen keys until each one's usage is exhausted1.
  • Anthropic, October 2026. Proxy networks control hundreds of thousands of fraudulent accounts, created with false identities and stolen payment details2.
  • CISA, NSA and FBI, September 2026. Advisory AA26-251A describes fraudulent accounts, bulk-bought subscriptions shared across teams, aggregators and gray-market proxies. It does not mention stolen API keys3.
  • OpenCode, October 2026. OpenCode said it had a security breach "related to a large-scale distillation attack" affecting 1.4% of its Console users, those with external providers linked4, and its email to them said provider keys saved in workspaces may have been exposed5. OpenCode has not said how the attack and the keys are connected, and nothing here assumes a mechanism. The OpenCode incident write-up keeps to what is confirmed.

Not every stolen key ends up in a distillation pipeline. Anthropic's report also describes stolen keys used to run attack workloads: a hacktivist campaign that ran for a month entirely on stolen API keys, and intruders who switched their own work onto a victim's keys once they found them1. From the key owner's side, the consequences are the same. The wider pattern has a name, LLMjacking.

Why a stolen key beats a fraudulent account

Anthropic sums up what an operator gains from AI credentials in three words: loot, because keys and accounts have resale value; compute, because the workload runs at someone else's expense; and cover, because the activity is attributed to the credential's legitimate owner1. Set against a fraudulent account, the difference looks like this.

What an operator needsFraudulent accountStolen key from a real customer
Identity that passes checksMust be faked; Anthropic says it has tightened verification for the account types most often abused6Already verified: it is the victim's account
PaymentA fake or stolen card, which can fail or be charged backThe victim's card or invoice, which keeps paying
Rate limitsThose of a new accountWhatever limits the victim's account has
AttributionLeads to a throwaway identity, eventually to the operatorLeads to the victim
Blending inStands out as new and busy from day one, a pattern the advisory lists as an indicator3Mixes with the victim's normal traffic
Regional accessMust evade restrictionsInherits the victim's region; our inference from the advisory's emphasis on restriction evasion

Anthropic's February post adds that proxy networks already mix distillation traffic with unrelated customer requests to make it harder to spot6. A stolen key does that by default.

Where stolen keys come from

Anthropic's September report describes a supply chain rather than a single technique1:

  • Secrets left in code and builds. One operator mass-downloaded 1.8 million Android app packages and scanned them for hardcoded secrets; another built a scanner for exposed keys in public containers and rotated the valid ones through a proxy layer to blend in with the legitimate owner's traffic.
  • Vendors that hold your keys. In one case a target's AI keys were taken from its enterprise software vendors; in another, an attacker made an AI vendor's evaluation sandbox hand over the credentials it held, production keys first.
  • Fake AI services. Sites posing as intermediaries for many AI models distributed malicious clients, some spoofing coding harnesses such as Claude Code, that harvested every credential and session token on the victim's machine and kept collecting new ones after the victim rotated.

Each route has its own prevention guide: keys in GitHub and secret scanning, keys in front-end and mobile apps, secrets exposed to coding agents, and how third-party AI tools store your keys.

What a hijacked key costs its owner

The bill. The provider bills the account the key belongs to. Distillation is high-volume, around-the-clock work, and OWASP lists denial of wallet, cost-driven abuse of pay-per-use inference, under the same LLM10:2025 entry as model extraction7. After the OpenCode breach, BleepingComputer reported users describing unauthorized charges from several hundred US dollars to more than $1,700 overnight; those are user reports, not verified amounts4. OpenCode's message to affected users mentioned possible reimbursement4. Getting a bill from AI key theft adjusted covers what to send the provider.

Charges for blocked requests. Anthropic says it now charges for requests its classifiers block before Claude responds2. Our inference: if distillation requests on a stolen key are blocked, the key's owner can still be charged for them.

Suspension. Providers act on the account that shows the pattern. Anthropic reports banning tens of thousands of accounts, often within two hours of a campaign starting2. Some OpenCode users reported that Google suspended their projects for activity consistent with hijacked resources4. If the abused key shares an account or project with production, production stops too. See what to do when a provider suspends your account.

Terms-of-service exposure. Using a model's outputs to build a competing model breaches provider terms; Google's threat report says distillation from Gemini without permission violates its terms and may lead to takedowns and legal action8. The traffic on a stolen key is in your name. You will want evidence that it was not yours: request logs for the period, the networks you use, and the date the key left your control. Distillation and terms of service goes further.

Controls that bound the damage

A stolen provider key can be used directly against the provider, from anywhere, so the controls that matter most sit at the provider. Capping the damage from a stolen AI key goes deeper.

  • One key per workload, one project or workspace per key. Scope keys to inference, and keep staging, tools and production in separate projects so one theft cannot suspend everything.
  • Provider spend limits on every project or workspace. They are the only ceiling that applies to direct use of a stolen key. Provider spend limits compared lists what each provider offers.
  • Usage by key, read daily. Compare the provider's usage per key with what your systems sent; traffic you did not send is the signal. Signs an AI API key is being abused lists the patterns.
  • Minimize where provider keys live. Every tool, vendor and laptop that stores a key is a place it can be stolen from. Keep an inventory of AI credentials, and prefer short-lived credentials where the provider supports them.
  • Rehearse revocation. Know who can revoke each key at the provider, and how long replacing it takes.
  • Buy access only from providers or authorized channels. Proxy services that sell access at a fraction of the provider's price are, in Anthropic's account, where stolen keys are spent. See AI API proxy risks.

How INFRO handles stolen-key risk

INFRO stores the provider keys customers connect, which makes it one of the places a key can be stolen from, and it should be judged with the same questions as any other tool. Provider keys are encrypted with AES-256-GCM under a key held as a secret outside the database, bound to the organization and connection, and never shown again after saving; the console shows the last four characters. Applications call INFRO with their own gateway keys, stored only as a SHA-256 digest, which can be limited to chosen providers, one environment and chosen IP ranges, refused with 403 ip_not_allowed before any provider call, set to expire and rotated with an overlap window. Budgets per organization, project, member and key refuse with 402 before the provider is called, and spend alerts flag a day that departs from a scope's usual day.

On the Business plan, reconciliation compares INFRO's estimates with OpenAI's and Anthropic's own cost reports each day; with usage access on, it reads token counts by provider key and shows traffic on your account that did not go through INFRO. Without usage access it reports "not checked".

The limit matters more here than anywhere. INFRO's controls govern traffic that goes through INFRO. A provider key stolen from anywhere, including from INFRO, can be used directly against the provider, and no INFRO budget, allowlist or IP restriction applies to that traffic. The backstops are the provider's: a narrowly scoped key, a provider spend limit, revocation at the provider and the provider's usage reports. Set them up whether or not you use a gateway.

Summary

Distillation campaigns need access at scale, and a stolen key from a real company is the most convenient access there is: verified, paid for, attributed to someone else. Anthropic has said plainly that such keys are part of the supply. The owner pays in bills, suspensions and explanations. Scope each key to one workload, cap it at the provider, read usage by key, and keep the list of places your keys live short.

Questions readers ask

Are stolen API keys used for AI distillation?
Anthropic says so. Its September 2026 threat report says the proxy services that labs route distillation traffic through create accounts with fake or stolen cards and stolen API keys, and often use stolen API credentials belonging to legitimate companies or individuals. The CISA advisory on distillation does not mention stolen keys; it describes fraudulent accounts, shared subscriptions and proxies.
Who pays when a stolen key is used?
The provider bills the account the key belongs to. Whether a provider will adjust an invoice for usage you did not authorize is its decision, case by case; contact its support with the key, the dates and evidence that the traffic was not yours. Some OpenCode users reported overnight charges after its breach, and OpenCode's email mentioned possible reimbursement.
Can a provider suspend my account because of a stolen key?
Yes. Providers act on the account that shows abusive patterns, and that account is yours. After the OpenCode breach, some users reported that Google suspended their projects for activity consistent with hijacked resources. Revoke the key quickly and contact the provider with your evidence.
Does a gateway protect me if my provider key is stolen?
Not against direct use. A gateway's budgets, allowlists and IP restrictions apply to traffic that goes through it. Whoever holds a stolen provider key can call the provider directly. The limits that still apply are the provider's own: the key's scope, the project or workspace spend limit, and revocation.

From the team that builds it

Where this shows up in INFRO

INFRO is a control plane in front of the provider accounts you already hold. The capabilities below are the parts of it this article touches, each with the documentation that defines its behaviour.

  • Provider connections

    Available with a plan

    Connect provider accounts you already hold. Each credential is encrypted when saved, scoped to your organization and never shown again; applications use INFRO gateway keys instead.

    Read the documentation for Provider connections
  • Key limits and rotation

    Available with a plan

    Limit a gateway key to chosen providers or IP ranges, and rotate it with an overlap window so the old key keeps working while you deploy the new one.

    Read the documentation for Key limits and rotation
  • Environments

    Available with a plan

    Production, staging and development to start, and your own beside them. A connection or route serves one, several or every environment; each gateway key belongs to exactly one, and never reaches a connection outside it.

    Read the documentation for Environments
  • Budgets and spend ceilings

    Available with a plan

    A hard cap per organization, project, member, and key, with alerts at your own thresholds.

    Read the documentation for Budgets and spend ceilings
  • Spend anomaly and drift alerts

    Available with a plan

    Each scope's usual day is learned from its own history; a day that departs from it, a budget forecast to be exceeded, cost estimates drifting from the provider's own figures, unpriced traffic and failing connections become findings in the console. Routed to email on every plan, and to Slack and signed webhooks from the Startup plan.

    Read the documentation for Spend anomaly and drift alerts
  • Provider cost reconciliation

    Available with a plan

    Daily comparison of estimated spend against the cost reported by OpenAI's and Anthropic's own cost APIs, using a separate admin credential, with the likely cause of a persistent gap and a suggested rate you can apply. Included on the Business plan.

    Read the documentation for Provider cost reconciliation
  • Audit log

    Available with a plan

    Member, key, and policy changes recorded with actor and timestamp, viewable in the console.

    Read the documentation for Audit log

INFRO accounts are self-serve. Provider usage is billed to you by your providers; INFRO charges a software subscription and takes 0% of model spend. See plans.

Sources

Numbered in order of first citation. Each was opened and checked against the claim on the date shown.

  1. 1.Countering misuse of AI: September 2026 (opens in a new tab) — Anthropic. Accessed Oct 21, 2026.
  2. 2.Strengthening our defenses against distillation attacks (opens in a new tab) — Anthropic. Accessed Oct 21, 2026.
  3. 3.China-Based Artificial Intelligence Companies Conducting Industrial-Scale Distillation Campaigns Against U.S. AI Companies (AA26-251A) (opens in a new tab) — CISA, NSA and FBI. Accessed Oct 21, 2026.
  4. 4.OpenCode hack exposes API keys amid AI distillation attacks (opens in a new tab) — BleepingComputer. Accessed Oct 21, 2026.
  5. 5.OpenCode Breach Could Affect OpenAI, Anthropic and Google (opens in a new tab) — Infosecurity Magazine. Accessed Oct 21, 2026.
  6. 6.Detecting and preventing distillation attacks (opens in a new tab) — Anthropic. Accessed Oct 21, 2026.
  7. 7.LLM10:2025 Unbounded Consumption (opens in a new tab) — OWASP GenAI Security Project. Accessed Oct 21, 2026.
  8. 8.GTIG AI Threat Tracker: Distillation, Experimentation, and (Continued) Integration of AI for Adversarial Use (opens in a new tab) — Google Threat Intelligence Group. Accessed Oct 21, 2026.

About this article

Written on 2026-10-21 from Anthropic's February, September and October 2026 publications, the CISA, NSA and FBI advisory AA26-251A, Google Threat Intelligence Group's February 2026 report, OWASP's LLM10:2025 entry, and BleepingComputer's and Infosecurity Magazine's reports on OpenCode, all opened that day. Nothing here says how OpenCode's breach happened; OpenCode had published no root cause. Written by the team that builds INFRO, which stores customers' provider keys; its section states what its controls cannot do.

Last checked against its sources on . The next review is due by . No separate named reviewer is recorded for this article.

How articles are written, sourced and corrected is set out in the editorial standards.