Skip to content

A stolen API key ran up $82,314.44 in about 48 hours

The key belonged to a three-person startup that usually spends about $180 a month. Unknown attackers used it for about 48 hours.2

$82,314.44 in about 48 hours, against a usual $180 a month.2

Get 30 minutes free every day, forever.3SOC 2 Type II499.9% uptime SLA on Pro4
Stolen Gemini API keyFebruary 2026Limited

37 of 50

Stopped Limited: the payment went out through the bank’s own system This case: Stolen Gemini API key. A cap limits it.

What happened

Attackers ran Gemini models on a startup’s stolen key.

  1. 11 February 2026. A startup’s Google Cloud API key was compromised.

  2. About 48 hours. Unknown attackers ran $82,314.44 of Gemini usage, mostly Gemini 3 Pro Image and Text.

  3. Afterwards. The developer said Google support cited its shared responsibility model.2

How the gate handles it

With the sealed gate, the calls would have stopped at a daily spend cap.

The key would have lived only in the gate, and a daily spend cap would have stopped the calls. Press Play to watch the same call.5

A day of calls far over budgetSample6
  1. requestPOST /v1beta/models/gemini-3-pro-image:generateContentrepeat: until_spendLimited429spend_usd: 50

LimitedA daily spend cap stops the calls.

How easy

The startup could have capped its Gemini key’s daily spend in three steps.

Sample
Seal a keygemini
Google Cloud API key
Paste your API key
Your app never sees the API key.
Gemini rulesgemini
Model calls
Daily spend cap$50 a day · calls past it are limited
Applies to every key in App.
Where approvals goAsk first
Slack
Microsoft Teams
Telegram
Email
A person approves or denies each call that asks first.

Approvals and signed records come with Pro, Gate only and Custom. On Free, a rule that asks first refuses instead.7

In code

Or in three lines of code.

The same three steps, from the terminal.

Sample
What each line does
1Seal the keysealedbox keys sealThe app gets sbk_live_9Gy5…t1.
2Set the rulessealedbox rules addCalls past $50 a day are cut off.
3Connect approvalssealedbox approvals connectAsk-first calls go to #eng.
Try it

Put the gate in front of your agent today.

Run three practice calls in five minutes, then check their records on your own computer. Test mode, on every plan.

Start free$ sealedbox try5-minute practice run9
Scope

What the gate doesn’t change, and three failures like this one.

Related cases
Answers11

Questions about this case and the gate.

Still have a question?Book a callAll questions
What happens once the cap is reached?

Calls past it are limited: the gate answers with 429, and the key never opens for them. The count starts again the next day.

Could many calls at once slip past the cap?

No. Money caps are kept atomically per key, agent or rule, so parallel calls cannot overspend.

Could someone raise the cap from the app?

No. The agent cannot change its rules, and loosening a rule takes the owner’s passkey.

Can a sudden burst be stopped sooner?

Yes. Set a rate: calls per minute over it stop the agent, on top of the daily cap.