Skip to main content

Wolfcore Cyber Security

What is LLMjacking? How stolen cloud keys run up AI bills

Written by Ruben Selby, founder and penetration tester at Wolfcore. Last reviewed 16 November 2026.

In one sentence: LLMjacking is when criminals use a stolen cloud login or AI key to run AI models on your account, so you pay the bill and they get the output.

What it is

An LLM (large language model) is the kind of AI behind chatbots. Cloud providers such as AWS, Microsoft Azure and Google Cloud sell access to LLMs and charge by use. Sysdig’s Threat Research Team coined the word LLMjacking in a report dated 6 May 2024, to describe an attacker using stolen credentials to reach a victim’s LLM.

In that first case the attackers did not want your data. Sysdig says they intended “to sell LLM access to other cybercriminals while the cloud account owner pays the bill”. Sysdig found evidence of a reverse proxy, which is software that lets one person share access to many stolen accounts without exposing the keys themselves.

How it works

  1. Get a credential. In the case Sysdig reported, attackers exploited a vulnerable Laravel system (CVE-2021-3129) to steal cloud credentials. Keys left in code, files or on infected devices work just as well.
  2. Test what it can do. A script checked the credentials against ten AI services, including AWS Bedrock, Azure, OpenAI, Anthropic, Mistral and Google Vertex AI. Sysdig says no legitimate queries were run at this stage. Just enough was done to learn what the key could do and its quota.
  3. Check whether you are watching. Sysdig saw the attackers asking how model logging was configured, which it says is done to avoid detection.
  4. Use or resell the access. The attacker runs prompts at your expense, or sells access.

Sysdig notes that hosted models are not enabled by default and need a request to the cloud vendor. It calls that “a speed bump for attackers rather than a blocker” and says it should not be treated as a security control.

Who it affects and how badly

Sysdig says any organisation that uses cloud-hosted LLMs is at risk. In practice that now includes SaaS start-ups adding a chatbot, MSPs building tools for clients, agencies, recruiters, accountancy and legal practices trialling AI assistants, and developers with a personal key in a work project.

  • Small business: a bill far above normal and a service that stops working.
  • Mid-sized business: the same, plus time to investigate and a finance conversation with the provider.
  • Regulated business: if prompts or internal data flow through the model, the question becomes what the attacker could see. Sysdig’s explainer says stealing sensitive data through a hijacked model had not been reported publicly, but it names it as a risk.

On cost, Sysdig’s worst-case arithmetic was a stolen account using Claude 2.x at its quota limit in four regions: “over $46,000 per day” (it calculates $46,080). Sysdig’s later explainer says newer models can reach $100,000 a day. These are worst-case estimates, not billed amounts. Sysdig also says that using up the quota can block the real owner from using the models.

Real example

Sysdig’s May 2024 write-up is the public reference. The attacks it observed used credentials taken from a vulnerable Laravel system and targeted a Claude model hosted on a cloud provider. The victim is not named. Sysdig later published a follow-up on evolving tactics.

What we check on a test

Method only. When AI features are in scope, we look at:

  • Where AI provider keys live: code repositories, front-end bundles, mobile builds, environment files, CI/CD settings and error pages.
  • What each key is allowed to do, and whether one key can reach every model and region.
  • Whether spend limits, quotas and budget alerts exist.
  • Whether model invocation logging is on, and who would see an alert.
  • Whether any model endpoint is reachable from the internet without authentication.

Worked example (illustration only)

An 8-person SaaS start-up adds a support chatbot using a hosted LLM API. A developer puts the API key in the front-end code so the demo works. Someone finds it and uses it over a weekend. On Monday the company has a large provider bill and its own chatbot is down because the quota is used up. The fix: revoke the key, create a new one that stays on the server, restrict it to one model, set a spend limit and an alert, and check the provider’s logs for what ran. Cost: an unplanned bill, a day of disruption, and one uncomfortable email to customers.

1 Key stolenflaw, repo, device2 Testedwhich models work3 Sharedreverse proxy, resale4 You paybill and quota goneStop it at step 1: no keys in code, least privilege.Limit it at step 4: spend limits, alerts and logging.

How to detect it

  • Cloud audit logs. Look for model invocation calls from unfamiliar IP addresses or user agents. Sysdig describes attackers making a deliberately invalid request to learn whether a model was enabled: an error of one type means the model is active, a different type means access is denied. It published a detection rule that flags that probing.
  • Logging configuration queries. Calls that ask how model logging is set up are a warning sign.
  • Usage and billing spikes. Alert on request counts, tokens and spend, per day.
  • Prompt logging. Sysdig points out that AWS’s audit log (CloudTrail) does not store prompts and responses, so you must switch on model invocation logging to a log store to see them.
  • Provider alerts. Check the notification email address on your cloud account actually reaches someone.

How to fix or prevent it

  1. Keep AI keys out of code, front ends, chats and shared documents. Use a secrets manager and short-lived credentials where the provider supports them.
  2. Apply least privilege. Allow only the models and regions you use, and use organisation-level policies to block the rest.
  3. Set budgets and spend alerts, and add budget actions. For AWS, Budgets can apply an IAM policy or a service control policy automatically or after approval when a threshold is passed. Other clouds have similar budget and quota settings.
  4. Turn on model invocation logging and send it somewhere you review.
  5. Patch internet-facing applications, because a stolen cloud login often starts with an unpatched system.
  6. Rotate any key that has been in a repository, a log or on an infected device, and revoke first.
  7. Do not leave self-hosted model servers open to the internet without authentication.

Related terms

api key exposure, owasp top 10 for llm applications, secret rotation, least privilege, cloud shared responsibility model, infostealer malware, Infostealer logs and session cookie theft

Back to the AI security hub.

Related reading: Claude Code Secrets Leak: Check Your Repos and Rotate Keys

FAQ

Who coined the term LLMjacking? Sysdig’s Threat Research Team, in a report dated 6 May 2024.

Is a $46,000 a day bill real? It is Sysdig’s worst-case calculation for one model at its quota limit across four regions, not a confirmed invoice.

Does the cloud provider’s model access request protect me? Sysdig says it is a speed bump for attackers and should not be treated as a security control.

How Wolfcore helps

A Wolfcore penetration test finds this the way an attacker would, by hand, not with a scanner. Start with the free web vulnerability scan or see penetration testing.

Wolfcore

Would your staff click a phishing email?

Run a real, safe phishing test on your team with Phishy. Free for 14 days, up to 10 staff, no card. We help you set it up.

Start a free phishing testFree website security scanor book a 30 minute call