lucidity.sh platform
← All posts

LLMjacking and Your Synth API Key: How Keys Leak, What One Costs and How to Respond

Google's threat intelligence team described this month how criminals steal LLM access and resell it. Most of that report is about cloud accounts. Some of it applies to anyone holding an API key, including a sh-live- one. This is the part that applies to you, with numbers for Synth and a response plan to keep in your runbook.

Short answer: keep the key on your servers, one key per environment or tenant, and teach your secret scanner its format, because default rules can miss it. Prepaid billing limits the loss to your balance unless automatic recharge is on. If a key leaks: pause it, turn off automatic recharge, deploy a new key, check the Usage page, then revoke. If your key sits in a LiteLLM proxy, update the proxy today; four of its vulnerabilities are on CISA's known-exploited list this year.

What was reported

  • November 2: Google on LLMjacking. Google Threat Intelligence and Mandiant saw fraudulent charges above $100,000 in a single day, and totals reaching $1 million at some organizations. The main way in was exposed or stolen cloud tokens. But one attacker “opportunistically harvested exposed corporate LLM API keys from public GitHub repositories” and tested them with single-token requests (max_tokens=1) to stay under volume alerts. Stolen access is resold through gateways the report calls LLM mixers.
  • October 10 to November 17: Fireworks AI. The inference provider said in October that API keys and tokens stored as secrets were captured in certain affected accounts. On November 17 it added that account and billing information was accessed for all accounts created before October 30. Its October advice to affected customers: “Removing a stored secret alone does not invalidate the underlying credential.” Rotate at the source.
  • November 10: Notion. Downstream of that incident, Notion said AI chat transcripts for under 1% of workspaces were exposed, and it revoked Notion API keys found in users' messages. People paste secrets into chat boxes, and transcripts keep them.

For background on volume, GitGuardian counted 1,275,105 leaked AI-service secrets in 2025, up 81% in a year.

What a leaked Synth key costs

Synth is cheap and prepaid, so a six-figure bill isn't the likely outcome. Here is a heavy but realistic thief: 30,000-token prompts and 2,000-token replies, nonstop.

Abuse patternPer requestPer hourTime to drain $25
Synth 2.5 Flash, one client at 60 requests/min$0.0011$3.96About 6 hours
Synth 2.5 Pro, all 5 shared requests/min$0.0034$1.02About 24 hours

60 requests per minute is the API's route limit, but it isn't tied to your key, so don't count on it as a budget. Several clients sharing a stolen key can go faster. Your balance never goes below zero.

Two things hurt more than the dollars:

  • Your customers get 402. The balance belongs to the account, not the key. When a thief drains it through the staging key, production stops too.
  • Automatic recharge removes the ceiling. If you turned it on, each drop below your threshold charges your saved payment method again. It is the right setting for uptime and the wrong one during a leak. Set the recharge amount to a loss you could accept more than once.

What the platform gives you, and what it doesn't

ControlOn LuciditySH PlatformNote
Pause one keyYes, from the API keys pageNew requests fail with 401 right away. Reversible.
Revoke one keyYesPermanent. Past usage is kept.
Usage by keyYes, Usage page and CSVReconcile it against your own log.
Spending ceilingYour prepaid balanceHolds only while automatic recharge is off.
Per-key budget or model listNoEnforce in your backend, or use a separate account.
Per-key IP allow listNoKeep the key on servers only.

Google's report recommends restricting keys by model, environment and usage limits. Platform keys don't carry model or spending limits, so use structure instead: a key per environment at least, a key per tenant if you resell (the per-customer cost guide compares both), and a separate account with a small balance for anything risky, such as contractor sandboxes, demos and CI.

Teach your scanner the key format

A LuciditySH key is sh-live- followed by lowercase hex characters. Scanners know the big providers' formats; smaller ones depend on generic rules. We put a fake key in three files and ran gitleaks 8.30.1. The default rules found it in one, where a variable happened to be named token, and missed it in a JavaScript array and in a plain Authorization: Bearer line. With this rule, it found all three:

[extend]
useDefault = true

[[rules]]
id = "lucidity-api-key"
description = "LuciditySH Platform API key"
regex = '''\b(sh-live-[0-9a-f]{48,64})\b'''
keywords = ["sh-live-"]

Run gitleaks git -v over your history once and gitleaks dir -v . in CI. On GitHub, where Secret Protection is enabled, add sh-live-[0-9a-f]{48,64} as a secret scanning custom pattern and dry-run it. Once it is published you can turn on push protection for it, which stops the push instead of reporting the leak later. Scan notebooks, .env.example files, CI logs and MCP server configs too. GitGuardian found that 64% of the valid secrets it detected in 2022 were still valid in January 2026, so an old commit matters.

Chat transcripts need the same rule. If your users can paste text into a Synth feature, run your secret patterns over messages before you store them.

Keep the key out of the client

The platform answers cross-origin requests from any website, so a key pasted into front-end code works on the first try. That makes the mistake easy to ship. OpenAI's guidance on API keys is the right rule here as well: never put one in a browser or mobile app, and send requests through your own backend.

A backend that forwards anything from anyone is the same leak with extra steps. Fix the model, cap the output and count per user:

const DAILY_REQUESTS = 200

// returns the only request body your backend will ever send upstream
export function buildRequest(user, input, usedToday) {
  if (!user) throw Object.assign(new Error('sign in'), { status: 401 })
  if (usedToday >= DAILY_REQUESTS) throw Object.assign(new Error('daily limit'), { status: 429 })
  const text = String(input?.text ?? '').slice(0, 6_000)   // about 2,000 tokens
  if (!text) throw Object.assign(new Error('empty'), { status: 400 })
  return {
    model: 'synth-2.5-flash',        // never from the client
    max_tokens: 800,                 // never from the client
    messages: [
      { role: 'system', content: process.env.SYSTEM_PROMPT },
      { role: 'user', content: text },
    ],
  }
}

Build the upstream request from named fields instead of spreading the client's JSON. The platform forwards other fields in the body to the model server, so a client that can set max_tokens or models controls your cost. The streaming guide has the rest of this handler.

If you run an LLM proxy

A proxy holds every provider key in one place, which is convenient and makes it a target. Google describes attackers using CVE-2026-40217 to turn a standard LiteLLM virtual key into proxy admin. CISA's Known Exploited Vulnerabilities catalog has added four LiteLLM entries in 2026:

CVEWhat it allows (CISA's description, shortened)Added to KEV, 2026
CVE-2026-42208SQL injection in the proxy, including the credentials it managesMay 8
CVE-2026-42271Command execution by any authenticated user, including low-privilege keysJune 8
CVE-2026-59822Improper authentication on the MCP endpointSeptember 2
CVE-2026-40217Code execution through the custom-code guardrail test routeNovember 18

The sources don't agree on details: LiteLLM's advisory for the last one says the route needs a proxy-admin credential and names both 1.83.10 and 1.83.11 as the fix. Don't aim for a minimum version. Run the current release, keep the admin routes off the internet, and if the proxy was exposed while unpatched, rotate every key in it, including the Synth one. If you use our LiteLLM setup, this applies to the proxy; importing the SDK in your own process doesn't expose those routes.

Rotate without downtime

An account can hold several active keys, so old and new can overlap. Check the new one before you deploy it. GET /v1/models needs a valid key and isn't billed:

# 200 = key works, 401 = wrong, paused or revoked
curl -s -o /dev/null -w '%{http_code}\n' \
  https://platform.lucidity.sh/v1/models \
  -H "Authorization: Bearer $LUCIDITY_API_KEY_NEW"

# 1. create the new key, run the check above, store it in your secrets manager
# 2. deploy with the new key
# 3. wait until "Last used" on the old key stops moving
# 4. pause the old key and watch for 401s for a day
# 5. revoke it

Pausing before revoking is the useful step. If something you forgot still uses the old key, it fails with a 401 saying the key is paused, and you can resume it in seconds. A revoked key can't come back. A 401 shouldn't be retried, so alert on it.

The response plan

  1. Pause the key. Don't investigate first. Requests already running will finish; new ones get 401.
  2. Turn off automatic recharge on the Billing page if you use it.
  3. Create a new key and deploy it with the check above. If one key serves all of production, have the new one ready to deploy before the pause, but don't let that delay the pause by more than a few minutes.
  4. Size the damage. On the Usage page, filter by that key and export the CSV. Compare requests and tokens with your own log. Look for days with many requests and very few tokens, which is what a validation sweep looks like, and for models you don't call.
  5. Find the source. Scan repositories, CI logs, front-end bundles, proxy hosts and shared documents. Deleting the file isn't enough: the value stays in Git history and in clones, so the key has to die.
  6. Check the account itself. If a dashboard password or session may be involved, treat every key on the account as exposed: look for keys you didn't create, replace them all, and contact us from the Help page to secure the account.
  7. Revoke the old key once nothing uses it, then turn recharge back on.
  8. Tell people. Use the Help page to contact us about charges you don't recognize. If your users' data passed through the leaked system, your own notification duties may apply; a model key by itself doesn't give access to past conversations through the API, which has no endpoint to read them.

Practice it once on a staging key. The steps take a few minutes when you know where they are.

API key security FAQ

What is LLMjacking?

LLMjacking is the use of stolen cloud credentials or LLM API keys to run models at the victim's expense. Google Threat Intelligence reported on November 2, 2026 that attackers resell the stolen access through gateways called LLM mixers, with charges above $100,000 in a single day in individual incidents.

What should I do first if my LuciditySH API key leaks?

Pause the key on the API keys page. New requests with it fail with 401 right away, and pausing is reversible. Then turn off automatic recharge on the Billing page, create and deploy a new key, confirm the old one is unused, and revoke it.

How much can a thief spend with a leaked Synth key?

Your prepaid balance is the ceiling, plus every automatic recharge if you have that turned on. One client sending 30,000-token prompts with 2,000-token replies to Synth 2.5 Flash at 60 requests per minute spends about $4 an hour. More than one client can spend faster.

Can I call the Synth API from a browser or mobile app?

Do not put the key there. The API accepts cross-origin requests, so a call from a web page works, but every visitor can read the key. Route requests through your own backend, which holds the key and limits each user.

Does GitHub or gitleaks detect LuciditySH API keys?

Do not count on the defaults. In our test, gitleaks 8.30.1 caught one of three sample files containing a key, and all three after we added a custom rule. GitHub secret scanning supports custom patterns, including for push protection, where Secret Protection is enabled.

Sources

Create an account and get an API key for Synth 2.5 Pro and Flash. Prepaid, per token, no monthly fee.

Create an account