The Attacker Wants Your AI Budget, Not Your Data

For solo and small-team operators running a product on AWS or GCP — API keys in repos, one LLM integration, maybe a Bedrock or OpenAI key — who hear "AI security" and reach for the model.

---

The result, up front

Here is the sentence that should reset how you think about your credentials. It is the objective an attacker wrote for an autonomous agent, recovered verbatim by Perplexity and published in its December 2, 2026 post-mortem:

"Company A] Obtain an AWS AKIA/ASIA key pair or Bedrock bearer token (ABSK) that directly invokes bedrock-runtime on [Company A] infrastructure... Prefer credentials with BROAD IAM permissions (AdministratorAccess, PowerUserAccess)... When a credential successfully invokes a PRIZE model, save it with category 'AWS Bedrock PRIZE' and include the region and model in the name." ([Perplexity)

Read that again with your own stack in mind. The attacker did not ask for customer records. It did not ask for a database dump or an admin panel. It asked for a credential that can run a frontier model, and it preferred the one with the broadest permissions it could find.

The loot is your AI compute, and the thief is an agent. That single shift moves the target from the model you are guarding to the credential that grants the model — and the credential responsible is very often one you believe you already deleted.

Two facts tell you how much money is on the table. Google Threat Intelligence Group and Mandiant, in a separate November 2, 2026 report on "LLMJacking," documented enterprise LLM access being hijacked across cloud providers, with fraudulent charges "exceeding $100,000 USD in a single day, with cumulative charges at some organizations reaching $1 million USD before access was revoked" (GTIG/Mandiant). And the doors the agent used at the two other companies it hit were not AI-themed at all: a live OAuth token left in deleted git history, and an exposed management API on a demo environment (Perplexity; Help Net Security).

By the end of this piece you will have three things: the mechanism (why "deleted" credentials stay live and why a leaked key is now a standing authorization to spend), the leaked-credential blast-radius pass — six surfaces an autonomous agent actually mines, with one reducer per credential — and the standing question to attach to every key you own: what can this invoke, and how long does it live?

---

1. The mistake, named specifically

When operators hear "AI security," they reach for the model. Prompt injection, jailbreaks, output guardrails, "does the model refuse the bad thing." That is a real layer and it is worth your attention — but it is not where this incident happened.

When the same operators hear "credential theft," they reach for a different frame: the data breach. Records exfiltrated, customers notified, maybe a ransom. Also real, also worth attention — but not what the attacker wanted here.

Put those two reflexes together and you get the gap. The attacker was an autonomous agent, the loot was AI credentials, and the objective was to run frontier models on someone else's cloud bill. The thing at risk is your spending and your model access, not primarily your data. And the controls that held at Perplexity — outbound URL validation and authorization checks — were baseline engineering hygiene, not AI defence (Perplexity).

So the mistake is not "you forgot to sanitise your prompts." The mistake is that you are defending the layer the attacker never touched, while the credential that grants your model sits in your git history, in your build artifacts, and in a config path you stopped thinking about a year ago.

2. Why the obvious fix does not hold

Here is the part most write-ups skip. The reason this is hard is not that the attacker used AI. It is that "deleted" and "dead" are not the same thing, and the surfaces that prove the difference are the ones nothing on your team is currently watching.

Perplexity's report describes what the agent mined, and it is worth reading slowly because every item is something a solo operator has (Perplexity):

  • It swept repositories, Gists, commit history, and unreachable git objects using git log -p --all, git cat-file --batch-all-objects, and gitleaks.
  • It unpacked npm and PyPI packages, OCI container layers, and Hugging Face repositories.
  • It guessed storage keys like .env.production, .aws/credentials, and state.tfstate.
  • It attacked URL-fetch features with SSRF payloads aimed at the cloud metadata endpoint 169.254.169.254.

Sit with the first bullet. A credential is "deleted" the moment it leaves your working tree. It is not dead in history. git log -p --all walks every commit on every ref; git cat-file --batch-all-objects reaches objects that no branch points at anymore — the tips of deleted branches, the contents of a rebased commit. gitleaks exists precisely because secrets committed once stay recoverable forever unless you rewrite history, and most teams never do.

The agent does not need to be clever to find these. It needs to be tireless, and it is. Perplexity's recovered graph shows one worker creating 276 subsequent tasks over 19.5 hours, up to 14 running in parallel (BleepingComputer; The Hacker News). When a branch of the search was blocked, the harness recorded a fact ("GitHub code-search API requires authentication") and spawned three follow-up tasks within 25 minutes — find a token, mine alternative sources, retry (Perplexity).

And validation is cheap and quiet. A found key is confirmed usable with a single sts:GetCallerIdentity call, or a max_tokens=1 ping to the model endpoint (GTIG/Mandiant). It runs the model once to see if the credential is real, then stops until it is ready to spend. Nobody notices the ping. The bill comes later.

Why the fix "just rotate the key" does not hold: rotating the key in your .env does nothing about the copy in commit a3f9c21 from fourteen months ago, or the copy in the container layer you pushed to a registry, or the copy in the tarball under a dist/ you published once. If your rotation process does not answer "where else has this exact string ever been written," you have rotated one copy and left the rest live.

3. Where the campaign actually broke in

Perplexity held. It is worth being precise about its story, because its own report is candid about what is one-sided. The breach was reported from the defender's own account and by its own product, and the two other companies' incidents are described from the attacker agent's own compressed notes — which Perplexity warns "could misinterpret responses or overstate the extent of the breaches" (BleepingComputer). For the same reason, the report is explicit that the SSRF attempts against the metadata endpoint were blocked — nothing reached it — so do not read the technique list as a success list. Attribute the third-party impacts to Perplexity's read of the recovered workspaces, not to independent confirmation.

With that caveat attached, here is what the two other campaigns recorded (Perplexity; Help Net Security):

  • "Company A" — the agent found a live customer OAuth credential in deleted git history, took administrative control of that customer's workspace, ran code on managed compute, reached internal endpoints behind IP allowlists, captured a stored Git token, and obtained short-lived AWS workload credentials. The stolen AWS credentials lacked Bedrock permissions**, so they could not invoke the target models.
  • "Company B"** — the agent logged into an exposed management API on a demo environment and collected local password stores, Kubernetes secrets, and EC2 instance-role credentials.

Two lessons hide in there, and both are for you.

First, the entries were mundane. A live token in deleted history. A demo admin API someone stood up and forgot. These are not exotic. They are the shape of the average small operator's surface.

Second — and this is the one that decides your blast radius — scope is the variable. Company A's stolen AWS credentials were real and short-lived and still could not invoke a frontier model, because they lacked the Bedrock permission. The attacker's own prompt asked for broad IAM for exactly this reason. The difference between "annoying" and "your next invoice is six figures" is the permission attached to the key, not the fact that it leaked.

None of the three campaigns obtained a credential that could invoke the target Bedrock models. The defence worked because the doors that held were baseline — outbound URL validation, IP allowlists, short-lived credentials — and the companies that fell lacked them (Perplexity).

4. This is a pattern, not a one-off

Do not file this under "Perplexity had a bad week." The same week, GTIG/Mandiant published that it observed agentic offensive frameworks — ARTEX, Hexstrike, and CAIRN — in live incident-response engagements across government, technology, and manufacturing victims, with machine-speed bursts (27 events in 23 seconds), and described it as "a paradigm shift towards intrusions occurring at machine speed, with the automated chaining of complex attack paths scaling intrusions exponentially" (GTIG/Mandiant).

Its recommended controls are, tellingly, not AI controls: "control-plane isolation, short-lived credentials, least privilege, segmentation, and behavioral detection." Alongside them, it recommends egress control and watching for "previously unseen destinations, particularly webhook services, OAST infrastructure, tunneling platforms... and external AI platforms that are not required by the workload."

Read the last clause again: external AI platforms that are not required by the workload. If your app calls OpenAI and nothing else, a sudden call to a different model provider is not a feature — it is the fingerprint of someone else running inference on your dime.

One more caveat worth holding, because the hype cuts the other way too. Cairn, the harness Perplexity recovered, is an orchestration layer over standard penetration-testing techniques — SSRF, credential dumping, git-history scanning. Nothing about this is AI-native. The change is autonomy, speed, and scale, and GTIG says the same dynamic applies to pre-existing weaknesses. So "AI hacked Perplexity" is the wrong headline. The right one is: an agent made an old class of attack cheap and relentless enough to run around the clock.

5. The leaked-credential blast-radius pass

Here is the reusable part. Six surfaces an autonomous agent mines. For each, what it looks like on your stack, and the one reducer that shrinks your blast radius. Do them in this order — the first two are where most leaked credentials actually live.

Surface 1 — Git history and unreachable objects. Everything you have ever committed, on every ref, plus objects no branch points at. Check: gitleaks detect --no-git on the working tree, then gitleaks detect on the full history; git log -p --all | grep -iE 'AKIA|asia|sk-|token|secret'; and git rev-list --objects --all to see what is reachable. Reducer: for anything ever committed, rotate it — do not just delete the file. Deleting a file in a new commit leaves the old blob intact. You must rewrite history (git filter-repo) and rotate the secret, because you cannot assume nobody cloned the repo before you rewrote it.

Surface 2 — Published build artifacts. Packaged npm/PyPI releases, container layers, installers. This is the surface operators forget, because the secret is not in the source tree — it is baked into a layer or a bundle. Check: pull your published image and grep -r inside its layers; unpack your published package. Reducer: never bake secrets into an artifact. Inject them at runtime from a secret store; scan images in CI and fail the build on a hit.

Surface 3 — Object storage and config paths. The agent did not guess clever names. It guessed the boring ones: .env.production, .aws/credentials, state.tfstate. Check: is your bucket public? Are those paths reachable? For Terraform state, assume it contains secrets and treat it as sensitive. Reducer: block public access at the bucket level, and keep state in an encrypted backend with access logging.

Surface 4 — URL-fetch and SSRF. Any feature that fetches a URL a user supplies — link previews, "import from URL," webhooks you can point at a host. The target is the cloud metadata endpoint 169.254.169.254, which can hand out instance credentials. Check: can a user make your server fetch an arbitrary URL, including http://169.254.169.254/ and its decimal and hex rewrites? Reducer: block link-local and private destinations at connection time, after DNS resolution — not with a string match on the hostname, which DNS rebinding defeats. Prefer IMDSv2 (which requires a token) on AWS. And never let the fetch follow a redirect into a private range.

Surface 5 — Exposed demo and staging admin APIs. Company B fell here: a management API on a demo environment. Demos are where "we will secure it later" lives. Check: enumerate your public hostnames and ask which ones are not production but are internet-reachable. Reducer: put demo and staging behind auth or behind your VPN, and turn them off when you are not demoing.

Surface 6 — Every credential's blast radius. This is the question that decides everything else, and it is the one almost nobody asks. For each key, token, and role you own: can this invoke — or pay for — a frontier model, and what else can it reach? Reducer: make it short-lived and least-privilege, so a stolen copy expires on its own and cannot invoke the expensive thing even while it lives.

Then four reducers that cut across all six surfaces:

  • Prefer short-lived credentials over static keys.** A static key is a liability with no expiry. Short-lived tokens (workload identity, assumed roles, OIDC federation) expire whether or not you notice the leak.
  • Least privilege by default, broad IAM by exception.** The attacker's prompt literally asks for AdministratorAccess. Do not hand it one by accident. If your key only needs to read one bucket, it should only be able to read one bucket.
  • Deny egress by default.** Allow the destinations your app actually needs; alert on new ones — especially other AI providers. This is the control GTIG names, and it is the one that turns "your key is spending my money" into a blocked connection.
  • Rotate anything ever committed.** Not delete. Rotate. Then remove. In that order.

6. Where you will get stuck

Two places, and both are worth pre-empting.

"I searched, I did not find anything, so I am clean." A working-tree search finds working-tree secrets. The whole point of surfaces 1 and 2 is that the credential is not in the working tree. If your audit is "grep the repo," you have checked the one place a competent agent looks last. Run the history scan and the artifact scan, or you have not run the audit.

"We have an AI guardrail, so we are covered." This is the reflex the incident is built to break. Perplexity's controls that held were not model guardrails — they were outbound URL validation and authorization checks, enforced outside the model, at the connection and the request. Keep your guardrails; add the credential hygiene. They are different layers and the attacker reached for the one you probably have not audited since launch.

There is a fifth reducer that is easy to miss because it sounds like advice for someone else: point the same class of agent at your own stack. Perplexity's own takeaway is that "a]gent harnesses make it cheap to probe targets around the clock and adapt as requests fail. Defenders can use that same capability proactively, running autonomous agents against their own code and external surfaces to catch leaked secrets or exposed endpoints before an attacker does" ([Perplexity). Find the leak on your side of the log line, with a scan you control, before someone else runs the same scan and does not tell you.

7. The compressed ending

Four lines to keep.

  • The loot changed from data to compute.** In the agent era, a leaked key is not only a data-access risk — it is a standing authorization to spend, at machine speed, from your billing account. The attacker's prompt asked for a credential that invokes a frontier model, preferably with broad IAM.
  • "Deleted" is not "dead."** A credential lives on in git history, unreachable objects, container layers, and build artifacts — the exact surfaces an agent mines around the clock. Rotate anything ever committed; do not just delete it.
  • Scope is the variable.** Company A's stolen AWS credentials were real and still could not invoke the models, because they lacked Bedrock permissions. Short-lived and least-privilege is what turns a leak into a nuisance instead of an invoice.
  • Defend the layer the attacker touched.** The doors that opened were mundane — a token in deleted history, an exposed demo API. Deny egress by default, and run the same class of agent against your own surfaces first.

The standing question for every key you own: what can this invoke, and how long does it live? If you cannot answer both, you do not know your blast radius — and an autonomous agent will find out for you.

---

Precision notes. (a) The third-party breaches ("Company A," "Company B") are described from the attacker agent's own recovered workspace records, per Perplexity's Scope-and-Limitations section, which warns the agent "can misread responses or overstate partial access" and that Perplexity did not test the recovered credentials against third-party systems — attribute them accordingly, not as confirmed facts about those companies. (b) The SSRF attempts against the AWS metadata endpoint were blocked; nothing reached it. Do not read the technique list as a success list. (c) The LLMJacking dollar figures ($100k/day, $1M cumulative) come from GTIG/Mandiant's separate report about a different set of incidents — they are evidence that the motive is economically viable, not facts about this specific campaign. (d) The operator's identity and purpose are unknown; Perplexity states the prompt shows the operator wanted frontier Bedrock access "but not for what purpose." Do not speculate on who or why. (e) Perplexity is both the reporter and the vendor whose product (Computer) is central to its own defence story; the internals are a one-sided account. The event itself was carried by multiple independent outlets. (f) The telemetry, the two-week timeline, the two unnamed companies, and the LLMJacking figures are a late-2026 snapshot — read this as "as of early December 2026," not a permanent verdict. The durable, checkable artifacts are the Perplexity post-mortem, the two GTIG/Mandiant reports, and the Cairn repository.

---

Sources

  • Perplexity — How Perplexity defended against an autonomous AI attacker (primary, the defender, Dec 2 2026) — the two-week autonomous-agent campaign (late Oct–early Nov 2026); probing peaking Nov 2 at ~48,000 requests in 13 minutes across ~28,000 guessed API routes at 200+ req/s; 40+ disposable accounts and ~290 proxies; the recovered project.goal operator prompt ("Obtain an AWS AKIA/ASIA key pair or Bedrock bearer token... Prefer credentials with BROAD IAM permissions"); the mining surfaces (git history and unreachable objects via git log -p --all / git cat-file --batch-all-objects / gitleaks, package/container/HF unpacking, storage-key guessing, metadata SSRF); the Cairn task graph (276 tasks / 277 intents / 265 facts over 19.5h, up to 14 parallel); Company A and Company B impacts; the exposed attacker server (207 open ports, 29 open dirs, 10,000+ files); the "Scope and limitations" caveat; and the defensive-agent takeaway.
  • The Hacker News — Perplexity uncovers autonomous AI agent attack (independent, Dec 2026) — corroborates the telemetry; names Cairn as the open-source harness (github.com/oritera/Cairn); carries the Perplexity quote on the two companies' footholds (a live customer OAuth credential in deleted git history; an exposed management API on a demo environment).
  • TechCrunch — Perplexity caught an autonomous AI hacker trying to steal tokens (independent, Dec 2 2026) — the credential-gathering-then-privilege-escalation sequence and the hijack-Bedrock-account objective; the command-and-control server left publicly exposed; "at least two other companies were targeted... neither is named."
  • BleepingComputer — Autonomous AI attack targeted Perplexity to steal cloud credentials (independent, Dec 2 2026) — the 276-tasks-over-19.5-hours / up-to-14-parallel detail; 207 open ports and 10,000+ files on the attacker server; Perplexity's caution that the third-party findings rest on the agent's own recorded observations.
  • Help Net Security — Perplexity autonomous AI agent attack (independent, Dec 3 2026) — corroborates the two-week timeline and the Company A "live customer OAuth credential in deleted git history" detail.
  • Google Threat Intelligence Group / Mandiant — The Rise of LLMJacking (primary, cross-vendor, Nov 2 2026) — hijacked enterprise LLM access across cloud providers; fraudulent charges "exceeding $100,000 USD in a single day, with cumulative charges at some organizations reaching $1 million USD"; initial access via exposed/stolen cloud identity tokens and LLM API keys; "LLM Mixers" reselling unauthorized access; stealth validation calls (max_tokens=1).
  • Google Threat Intelligence Group / Mandiant — ARTEX and Friends: Enter Agentic Offensive Frameworks (primary, cross-vendor, Oct 30 2026) — ARTEX/Hexstrike/CAIRN in live incident-response engagements; "intrusions occurring at machine speed" (27 events in 23s); recommended controls ("control-plane isolation, short-lived credentials, least privilege, segmentation, and behavioral detection"); egress monitoring for "external AI platforms that are not required by the workload."
  • Cairn agent harness — github.com/oritera/Cairn (open-source, referenced in the Perplexity report and by GTIG) — a pointer to the harness, not independent evidence of the described behaviour; no verification in this piece that the repo's code matches the campaign.

---

X entryway list (from the approved angle)

Distribution entryways named in the angle brief. Hooks are not yet written as posts — this names each post's type, the one claim or mechanism it carries, and whether it links.

  • Hook type: surprising proof.** The recovered attack prompt did not ask for customer records. It asked for "an AWS AKIA/ASIA key pair or Bedrock bearer token (ABSK) that directly invokes bedrock-runtime," and it preferred accounts with AdministratorAccess. The loot was AI compute, not data. → Links to article (the prompt is the post; the article develops the mechanism and the blast-radius pass).
  • Hook type: mechanism.** The agent's search surface is the credential you think you deleted. It ran gitleaks and git log -p --all, unpacked container layers and PyPI packages, and guessed .env.production and .aws/credentials — then validated the key with one stealthy call before anyone noticed. "Deleted" from the working tree is not dead in history. → Links to article (the mechanism stands alone; the article carries the six surfaces and the reducers).
  • Hook type: workflow.** The credential-blast-radius pass: the six surfaces an agent mines (git history, build artifacts, storage keys, SSRF/metadata, demo admin APIs, egress), and one reducer per credential — short-lived, least-privilege, rotated if ever committed, egress denied — with the standing question "what can this invoke and pay for?" → Links to article (the workflow is the actionable core; the article is the reasoning behind each line and the "where you will get stuck" notes).
  • Hook type: risk.** The controls that held at Perplexity — outbound URL validation, IP allowlists, short-lived credentials — were baseline engineering hygiene, not AI defence. The two companies that got breached lost to a live OAuth token in deleted git history and an exposed demo admin API. You are probably defending the model while the credential that grants it sits in your history. → Links to article (names the trap in one line; the article shows why the layer you are defending is the wrong one and gives the fix).
  • Hook type: result.** The same class of agent can be pointed at your own stack first: Perplexity's own advice is to "run autonomous agents against your own code and external surfaces to catch leaked secrets or exposed endpoints before an attacker does." Find the leak on your side of the log line. → Links to article (the reframe is the post's own claim; the article develops what "run the scan yourself" means concretely).

Hook-type map: 1 = surprising proof; 2 = mechanism; 3 = workflow; 4 = risk; 5 = result. All five link, and each link is a bonus — every post carries a claim that stands alone. These are the five entryways the angle brief named; none was invented and none repeats another's hook.