Landing Zone Drop Site Vol. 2: Anatomy of an LLMjacking on GC, what it really costs and what I learned in a real attack.

I promised you PAM for this volume. It’s coming. But first I want to tell you about something that explains why that stuff matters better than any design document.
I work with Google Cloud every day, in organizations of every size. And there’s one scenario I used to call “theoretical” in workshops. I bet you’ve used that word too. It goes like this:
It’s nine in the morning. Someone on your team wants to try a new AI feature, searches for the product name and clicks the first result. An error page. A sign-in page. Password, second factor, and they’re in the console, working. Nothing looks wrong. Five minutes later their session is in use from another network. Three hours later, millions of calls to the most expensive Gemini models have been made on your billing account. Nobody touched your data. Nobody wanted it.
That’s LLMjacking: stolen cloud credentials used to resell access to AI models while the account owner pays the bill. Sysdig gave it the name back in 2024. I’ve now seen one up close, from the first alert to the last question about the invoice.
I’ve been doing this long enough to carry a mental list of what attackers want from a cloud account. Data, to sell or to leak. Compute, to mine coins on somebody else’s GPUs. Ransom: lock everything and send an invoice. Tokens weren’t on my list. They are now.
And part of this one is personal. This was an environment I’d been saying for years needed a proper landing zone. I’m not writing that to say I told you so. There’s always something more urgent than guardrails, right up until the morning there isn’t.
One note before we start. Names and dates are blurred on purpose, and the project names in the screenshots are blacked out. Part of what follows comes from public research and Google’s own docs. The mechanics are exact, and the amounts in the screenshots are real.
The Bait: a search result, not an email
Everybody trains for the phishing email. This one never touched an inbox.
- The lure: a search for a Google AI product. The result led to a page on a legitimate site builder, dressed up as a Google error page.
- The redirect: from there to a sign-in page on a lookalike domain. One accented letter of difference. You wouldn’t spot it at 9 a.m. Neither would I.
- The relay: the page was a proxy. Everything typed went to the real Google sign-in, and everything Google answered came back through it. The prize isn’t the password. It’s the session.
Here’s the part that hurts. Google asked for the passkey first. A passkey is tied to the real domain, so on the fake one it failed. The defence worked! And then the sign-in fell back to a code. A code can be relayed. It was.
🪂 Drop note: a passkey you’re allowed to skip is not a passkey policy. If the fallback can be phished, the attacker just waits for the fallback.
The Heist: twenty seconds per project
So what does an attacker do with the fresh session of someone who is Owner of a dozen projects? Browse the buckets? Dump the secrets?
No. They open Cloud Shell and run a script. In each project it does the same five things, in about twenty seconds:
- Enable the AI APIs.
- Create a service account with a boring name.
- Grant it Owner on the project.
- Create a key for it.
- Take the key home.
About an hour later the script came back for a second pass, and this is the clever bit: it created brand new projects, linked them to the billing account and repeated the five steps there. Why bother? Because a new project is fresh quota that nobody is watching.
We got to see some of the tool’s output. It lists the billing accounts the user can reach, ranks them by tier and picks the best one. Read that again. Your billing tier, the thing you earned by being a good customer for years, is a variable in somebody’s script.
Your quota is the loot.

The Twist: the account dies, the keys don’t
The account was suspended a bit under two hours after the phish. Password reset, sessions killed. Textbook.
And the calls kept coming. For more than another hour.
Why? Because a service account key is a credential of its own. It doesn’t care what happened to the human who created it. Suspend the user, and every key they minted keeps working until you deal with the service account behind it. I call them zombie keys, and they were the whole point of the five steps.
Two more things worked against us:
- The audit log was quiet. Calls to Gemini on Vertex AI are Data Access events, and Data Access logs are off by default. You see the service account being created. You don’t see what it does next.
- Google’s abuse protection did kick in, project by project, somewhere between 40 minutes and a bit over two hours after the abuse began. It helped. But by then the load had moved to the new projects, and that’s where most of the bill was made.
What ended it was boring: find everything created that day, disable the service accounts, unlink billing from the attacker’s projects. This is the query I’d keep in a runbook. It answers “what did they create?” without knowing where to look:
# today in UTC; change it to the day it started
SINCE="$(date -u +%Y-%m-%d)T00:00:00Z"
gcloud asset search-all-resources \
--scope=organizations/ORG_ID \
--query="createTime>=\"$SINCE\"" \
--order-by='createTime desc' \
--format='table(createTime, assetType, name)'
I ran it against my own sandbox while writing this. Nothing exciting there, just the morning’s disk snapshots, but you get the idea:
CREATE_TIME ASSET_TYPE NAME
2026-11-28T09:54:22Z compute.googleapis.com/Snapshot //compute.googleapis.com/projects/fbox/.../disk-...
2026-11-28T09:39:07Z compute.googleapis.com/Snapshot //compute.googleapis.com/projects/fbox/.../disk-...
And the abuse itself? It finally showed up in metrics, not logs: aiplatform.googleapis.com/publisher/online_serving/model_invocation_count and its sibling token_count, per project and per model.
🪂 Drop note: the order matters. Disable the service account first (per Google’s guidance, deleting a key doesn’t revoke the tokens already issued from it), then unlink billing, then investigate. And don’t delete the attacker’s projects. They’re your evidence.
The Bill: three hours, six figures
Let’s talk money, because this is where “theoretical” stops.
Millions of calls in about three hours. A six-figure bill.

When I saw the list of models, I expected the flashy stuff. Image generation, video, audio. That’s where I assumed the expensive toys were. Wrong. It was text. The most expensive text there is, but text. A handful of image and speech calls showed up, and they were a rounding error.
So who burns that many text tokens in three hours? We never saw a single prompt (those logs were off, remember). But the shape of the traffic tells the story:
- The most expensive models. Nobody steals quota to run the cheap one.
- The priority tier, which costs a multiple of the standard price. A good share of the traffic asked for it. Why not? It’s not their money.
- Huge prompts. A good share of the tokens came from calls carrying more than 100,000 input tokens each. That’s what a coding assistant sends when it attaches a whole code base.
Put it together and it isn’t one greedy user. It’s resale. Somewhere out there, developers were getting their code written and reviewed by top-tier models through some cheap third-party service, and every token was on our tab.
And what did the console expect those projects to cost? Have a look at the “Expected cost” column:

The only brake that works once they’re in
Every other control in this article is about keeping the attacker out. A spend cap is the only one that still works once they’re inside. Without caps, the only thing between a stolen key and your bill is how fast a human notices.
- A budget is not a cap. An alerts-only budget, in the docs’ own words, “doesn’t automatically cap” usage or spending. It emails you while the meter runs.
- A spend cap budget is. When the month’s spend reaches the amount, that service pauses in that project.
- They’re individual: one project, one service. There’s no “cap my whole organization”. So yes, you end up with hundreds of them. We created more than 800 in one evening: Vertex AI and the Gemini API, in every billed project. That’s not a job for the console. It’s a script, or better, your project factory.
- Zero is a great number. Most projects never call a model. Cap those at zero, and size the rest a bit above their real usage.
- It isn’t instant. The docs say enforcement “isn’t instantaneous”, and billing itself runs hours behind usage. A cap limits the damage. It doesn’t prevent the first charges.

And open a support case while it’s still happening, and keep the evidence. We did, and we asked for the charges to be adjusted. The answer was no. Nothing on Google’s side had failed: the platform did exactly what a valid credential asked it to do. Stolen credentials sit on the customer’s side of the shared responsibility model, and so does the bill. Plan as if nobody is going to refund you.
The Aftershock: when your tier changes
I thought the story ended with the cleanup. It didn’t.
Quick background. The Gemini API (the AI Studio door, generativelanguage.googleapis.com) and Vertex AI serve the same models through two different services, billed separately. The Gemini API has usage tiers, and each tier carries a monthly spend cap for the whole billing account: $250 on Tier 1, $2,000 on Tier 2, $20,000 and up on Tier 3. Reach it and, per the docs, "service is paused for all projects linked to that billing account" until the next billing cycle.
Now the aftershock. The day after the incident, the account’s usage started being counted under a lower tier. I can see the hour it happened in the quota metrics. I can’t tell you why, and I’m not claiming it’s policy.
Nobody noticed. Why would they? Everything kept working. Until, about a week and a half later, the month’s perfectly legitimate Gemini API spend crossed the lower tier’s cap, and every API key on that billing account started failing:
429 RESOURCE_EXHAUSTED
Your billing account has exceeded its monthly spending cap.
Internal tools in a dozen projects that had nothing to do with the attack, down for days. The first suspects were our own emergency caps (wrong) and the individual keys (also wrong). A few days later the tier was back and the calls went through again.
What I took from it:
- Know your tier before you need to. It’s in AI Studio, and it’s in the metric names too: usage is counted under generate_content_paid_tier_3_requests or generate_content_paid_tier_2_requests.
- One billing account, one shared ceiling. Prototypes and production on the same billing account share that cap. When it hits, it doesn’t choose.
- Learn the error text. A rate-limit 429 talks about a quota metric. This one talks about the billing account. Different problem, different fix.
- Put it on the post-incident list. “Confirm the Gemini API tier” wasn’t on mine. Now it is.
The Brakes: one evening, built by hand
By the evening the attack was over and the question changed: how do we get through a weekend when nobody’s watching? This is what went in, by hand, in a few hours:
- Cloud Shell off for the organization. It was the attacker’s workshop.
- Three organization policies: no new service accounts, no new keys, no uploaded keys.
- A spend cap on the AI services of every billed project. Zero where AI wasn’t used, a bit above normal where it was.
- Every human down to read-only, except a couple of administrators. Before touching anything we saved every IAM policy (organization, folders, projects), one file each, and tested the way back.
- Service accounts left alone, because production runs on them.
- An hourly read-only check of caps, policies, new keys and AI usage.
Two things from that night I won’t forget:
- Know what runs under personal accounts. Scheduled queries, data transfers, the odd job that runs as a person. We looked for them before the freeze and left those roles in place. Find them after, and you’ve broken Monday’s reports.
- The freeze takes an evening. The thaw takes weeks. An exception for one team. A cap at zero that gets blamed for everything. Someone who can’t create the key their supplier needs. All legitimate, all one by one.
Every one of those brakes was built at night, under pressure. A landing zone is what you call it when they’re already installed.
The Landing Zone: the same morning, with guardrails
So let’s replay that morning. Same phish, same stolen session. What changes?

- The session is worth less. Phishing-resistant sign-in only (passkeys or security keys, no fallback) for anyone who holds a cloud role. And no human is standing Owner of anything: groups, plus just-in-time elevation. A stolen Viewer session is a bad day. A stolen Owner session is a bad quarter.
- There’s no key to mint. In a landing zone, service account key creation is simply off (iam.managed.disableServiceAccountKeyCreation, plus iam.disableServiceAccountKeyUpload), and people and pipelines use impersonation instead: short-lived tokens that only exist while your own session does. Think about what that does to this story. No key to take home. Suspend the account, and whatever tokens are left die within the hour. No zombies. Organizations created on or after May 3, 2024 get those policies by default. Older ones don't, and nobody goes back to check.
- The project can’t be created. By default Google grants every user in your domain Project Creator and Billing Account Creator. It’s in the docs, with the steps to remove them. In a landing zone, projects come out of a pipeline, and only the pipeline can link billing.
- The API can’t be enabled, or the model can’t be called. gcp.restrictServiceUsage to deny AI services in the folders that don't use them (check the supported services list first), and vertexai.allowedModels to allow only the models you really run. If nobody in your company needs the most expensive model, why can a brand new project call it?
- The spend has a ceiling. A spend cap budget per project for the AI services, created by the project factory and sized to real usage. And a conscious decision about which projects share a billing account.
- Somebody finds out in minutes, not hours. An organization-level log sink and alerts on the script’s steps. This filter is a good start:
logName:"cloudaudit.googleapis.com%2Factivity"
protoPayload.methodName:("CreateServiceAccountKey" OR "CreateProject"
OR "EnableService" OR "BatchEnableServices")
Add one for new Owner grants, one on the billing account’s own audit log for AssignResourceToBillingAccount, and a metric alert on model_invocation_count for projects that normally sit at zero.
- The workshop is closed. Cloud Shell off for people who don’t need it, and access rules by device and location for those who do.
- “Did they read data?” has an answer. Data Access logs on for IAM, Secret Manager and the buckets that matter. Without them you’re proving a negative with indirect evidence. We did it, and I don’t recommend the experience.
🪂 Drop note: none of this is exotic. It’s organization policies, a project factory, budgets and a log sink. The boring parts of a landing zone are exactly the ones that decide how this morning ends.
Summary
The attacker never looked at the data. They wanted compute they could resell, and the default settings of a Google Cloud organization gave them four things for free: a session that could be phished, the right to mint keys, the right to create billable projects, and no ceiling on spend.
If you only do three things this week:
- Check who can create projects and link billing in your organization. If the answer is “the whole domain”, you found your first fix.
- Check whether anyone can still create a service account key. In a landing zone the answer is nobody: impersonation only. If your organization is older than May 2024, don’t assume.
- Put a spend cap on the AI services of the projects that don’t use AI. It takes minutes, and zero is a great number.
PAM, as promised, is Vol. 3. After this one, I think you’ll read it differently.
Sources: Sysdig on LLMjacking, Google Cloud docs on compromised credentials, spend cap budgets, Gemini API billing and my own crazy experience.
If this was useful, the 👏 button is right there, and a follow means you get a notification for Vol. 3!
See you in our next drop!
Franco
Not an expert, not the greatest, but every day a bit better.
They didn’t want the data. They wanted the Gemini quota. was originally published in Google Cloud – Community on Medium, where people are continuing the conversation by highlighting and responding to this story.
Source Credit: https://medium.com/google-cloud/they-didnt-want-the-data-they-wanted-the-gemini-quota-eaa72346f8fc?source=rss—-e52cf94d98af—4
