Security

LLMjacking defense: what an autonomous attacker hunting Bedrock access teaches AI platform teams

ManyLayers Team 2026-12-04 9 min read

Short answer

LLMjacking is the use of stolen cloud or AI-provider credentials to run models at someone else’s expense. In late October and early November 2026, an autonomous attack agent spent about two weeks probing Perplexity for credentials, and ran similar campaigns against at least two other companies. Its goal was the same in every case: access to two frontier models through Amazon Bedrock.

It got credentials at both of the other companies and still didn’t reach Bedrock. At one, the AWS credentials it obtained had no permission to invoke Bedrock. At the other, its calls through the company’s Bedrock proxy were rejected. That is the lesson for AI platform teams: assume a key will leak, and make sure a leaked key can’t do much. Six controls do most of the work.

The campaign in brief

Perplexity published its account on 2 December 2026:

  • The attacker ran an LLM-driven agent through Cairn, an open-source agent harness. Its workers were command-line coding agents in a Kali Linux container, and in one workspace the agent created 276 tasks of its own over 19.5 hours.
  • The techniques were:
    • server-side request forgery (SSRF) against cloud metadata, including 169.254.169.254 written in decimal and hex, and DNS rebinding;
    • object-storage guessing: 3,681 failed S3 lookups for files such as .env.production, .aws/credentials and state.tfstate;
    • API route discovery;
    • privilege escalation and cross-tenant access attempts;
    • rotation through more than 40 disposable accounts and about 290 proxies.
  • The peak came on 2 November: about 48,000 requests in 13 minutes across 28,000 guessed routes, at more than 200 requests per second.
  • Perplexity’s controls held. Outbound URL validation and authorization checks blocked every probe, and the attacker reached no internal services, customer data or platform secrets.

An exposed server run by the attacker held live workspaces for two other companies. In all three, the goal was to “obtain cloud credentials or service tokens capable of invoking two latest-generation frontier models through Amazon Bedrock.”

What stopped it at the other two companies

The other two companies were breached, and Bedrock access still failed:

  • At Company A, the agent found a live customer OAuth credential in deleted git history and took admin control of that customer’s workspace. From there it obtained short-lived AWS workload credentials, which, Perplexity reports, “lacked permissions to invoke Bedrock.”
  • At Company B, the agent got into an exposed management API on a demo environment. It collected password stores, Kubernetes secrets and EC2 instance-role credentials. Its attempts to invoke models through Company B’s Bedrock proxy were rejected.

Perplexity notes that this account comes from the agent’s own records, which can misread or overstate access. Even so, the pattern is clear: the last control that held was who is allowed to call which model.

Why model access is now the prize

Sysdig’s Threat Research Team named LLMjacking in May 2024. In that case, credentials stolen from a vulnerable server were checked against ten AI services, including Amazon Bedrock. Sysdig found signs that the attackers planned to sell the access through a reverse proxy while the account owner paid, and estimated that an attack like this could cost a victim more than $46,000 a day in model usage. The attackers also checked whether model invocation logging was switched on.

What changed in 2026 is that the hunting is automated. The agent in the Perplexity case:

  • mined git history, including unreachable objects;
  • unpacked npm and PyPI releases, container layers and mobile builds;
  • ignored partial keys and checked only complete credentials, using sts:GetCallerIdentity or the vendor’s own API.

Frontier-model access is now worth a two-week autonomous campaign.

Six controls that limit what a stolen key can do

  1. No provider keys in apps, repos, buckets or images. The agent searched exactly those places. Keep provider credentials in your secrets manager and let the gateway use them, so applications never carry them.
  2. A gateway key per team or app. Applications call the gateway’s OpenAI-compatible endpoint with their own key. A leaked key then belongs to one team or app, not to your whole provider account.
  3. Per-key budgets with hard limits. Set monthly budgets per key and per team. Hard limits stop requests when the budget runs out, and soft limits send alerts before it does. See token budgets and chargeback.
  4. Token-per-minute and request-per-minute limits. LLMjacking is a volume business: whoever resells the access wants every token a key will give. Rate limits per key or team lower that ceiling.
  5. Budget alerts and audit-log review. Every request is logged with provider, model, token counts, cost and team. Export the log to your SIEM and watch for a key calling models its team doesn’t use, unusual hours, or a budget alert early in the month. Webhook alerting for budget overruns covers the alert side.
  6. Least-privilege model access. In the gateway, assign model aliases to teams so a key reaches only its team’s models; see zero-trust model access and RBAC. In the cloud, don’t grant bedrock:InvokeModel to workload roles, CI or instance profiles that don’t need it. That is what stopped the attack at Company A. If the gateway is the only identity allowed to call models, credentials stolen from anywhere else can’t be used to call them.

None of these stops a key from being stolen. Together they decide what a stolen key is worth.

Where cloud controls fit

The gateway limits what model keys can do. Cloud controls limit what an attacker can reach in the first place:

  • Instance metadata: require IMDSv2, so a simple SSRF request can’t read instance-role credentials.
  • Outbound URL validation: resolve hostnames and block private and link-local addresses when the connection is made, not only when the URL is checked. This stopped every SSRF attempt at Perplexity, including DNS rebinding.
  • Secret scanning everywhere: scan git history (including deleted history), published packages and container images, not just the current branch.
  • Model invocation logging: keep it on, and alert when someone reads its configuration.

For the gateway-side baseline, see the AI gateway security checklist. For the term itself, see What is LLMjacking?.

FAQ

Q: What did the attacker targeting Perplexity want? A: Cloud and AI-service credentials, with workspaces aimed at Amazon Bedrock access to frontier models, according to Perplexity. The same goal appeared in the workspaces for two other targeted companies.

Q: Can budgets stop LLMjacking? A: They don’t stop the theft, but per-key hard limits cap what a stolen key can spend, and the audit log shows which key and model were abused.

Q: Is LLMjacking only an AWS problem? A: No. Sysdig’s first LLMjacking case in 2024 checked stolen credentials against ten AI services, including OpenAI, Anthropic, Azure, Google Vertex AI and Amazon Bedrock. Any key that can call a model is worth stealing.

Sources

Checked 4 December 2026:

Related articles

Deploy sovereign AI on your infrastructure.