Cloud Credential Theft Checklist: 7 Controls That Held (and Failed) Against the Perplexity AI Attacker

Perplexity has published a detailed account of an AI-agent campaign that went after its cloud credentials for two weeks in late October and early November and came away with nothing. The same operation got further at two other companies. One lost AWS workload credentials and the other lost Kubernetes secrets and EC2 instance-role credentials. The attacker was an AI agent harness, but that is not the useful part of the story. What decided each outcome was ordinary configuration, so this cloud credential theft checklist is built from the controls that held at Perplexity and the gaps that gave way at the other two.

Yesterday we argued that AI-assisted attacks still depend on readable secrets and flat networks. Today is practical: seven checks you can run before Monday.

What happened, briefly

According to Perplexity’s write-up, the attacker began creating disposable accounts on 24 October. High-rate sweeps started on 2 November and peaked at about 48,000 requests in 13 minutes across roughly 28,000 guessed API routes. By 4 November the operator had cycled through more than 40 disposable-email accounts and about 290 proxy addresses, opening a new account whenever it was rate-limited.

The goal in all three targets was the same: cloud credentials or tokens able to invoke two frontier models through Amazon Bedrock. The tooling was Cairn, an open-source agent harness, running in a Kali Linux container. In one victim’s workspace it created 276 follow-on tasks over 19.5 hours on its own.

Perplexity found the attacker’s own server exposed to the internet, which is how it learned about the other two victims. It notified both companies on 4 November.

One caveat before the checklist. For the two other companies, Perplexity’s account rests on the agent’s own records. In its words, “Agents can misread responses or overstate partial access.” Treat those details as strong indicators, not forensic findings.

Technical analysis: what held at Perplexity

SSRF against cloud metadata failed. The attacker tried decimal and hex encodings of 169.254.169.254, malformed URLs, redirects through public tunnels, and DNS-rebinding domains. Perplexity’s outbound validator “resolves hostnames and blocks private or link-local destinations at connection time.” Checking at connection time, not when the URL is parsed, is what defeats DNS rebinding: the hostname can resolve to a harmless address at validation and to the metadata address a second later.

Guessing S3 object names failed. CloudTrail logged 3,681 failed lookups across more than 3,300 key names over 14 hours, including .env.production, .aws/credentials and state.tfstate. Nothing private was public, so the guesses had nothing to hit.

Privilege escalation and cross-tenant access failed. Server-side authorization checks denied them, and guessed API paths returned 404.

Mining git history failed against Perplexity, though not for lack of effort. One task queued 4,328 forks for full-history scanning, including unreachable git objects.

Technical analysis: what gave way elsewhere

Company A had a live customer OAuth credential sitting in deleted git history. That one token gave administrative control of the customer’s workspace. From there the agent ran code on managed compute, reached endpoints behind IP allowlists, collected a stored Git token, and obtained short-lived AWS workload credentials.

Company B had an exposed management API on a demo environment. The agent logged in, deployed a persistent command runner (about 1,000 callbacks over 15 hours), and collected password stores, Kubernetes secrets and EC2 instance-role credentials.

In both cases the Bedrock calls were rejected. The stolen credentials simply did not carry model-invocation permissions. Least privilege did its job at the last step, even after every earlier step had failed.

The cloud credential theft checklist

  1. Validate outbound URLs at connection time. Any feature that fetches a user-supplied URL (link previews, webhooks, imports) should resolve the hostname and block private, loopback and link-local ranges on the connection actually being made. Pin the resolved IP for that request. A regex on the URL string is not a control.

  2. Require IMDSv2 everywhere, and set it as the account default. IMDSv2 needs a session token obtained with a PUT request, which most SSRF primitives cannot send. Set HttpTokens=required on instances and launch templates, and use the EC2 account-level instance metadata defaults so new instances start that way. Keep the hop limit at 1 unless a container on the host genuinely needs metadata access. Our 28 November round-up covered the same path through the GeoServer SSRF chain.

  3. Treat any secret that ever reached git as compromised, and rotate it. Rewriting history does not remove a secret that has been pushed: forks, clones, caches and unreachable objects keep it. Perplexity’s attacker scanned 4,281 forks precisely because of this. Rotate first, then clean history, then turn on push-time secret scanning.

  4. Find and close demo, staging and trial environments. Company B’s breach started with a management API on a demo stack. List every environment with an internet-facing management interface and give each an owner and an expiry date. If it has no owner, shut it down.

  5. Scope model-invocation permissions to named roles. Bedrock InvokeModel should be granted only to the roles that need it, ideally enforced with a service control policy across the organisation. This is the control that saved both victims at the final hop.

  6. Alert on first use of a model by a new principal. Bedrock invocations are recorded in CloudTrail. A role that has never invoked a model suddenly doing so, or invocations from an unfamiliar network, is a high-signal alert. Stolen model access (“LLMjacking”) is billed to you.

  7. Rate-limit by behaviour, not only by account. Forty disposable accounts and 290 proxies defeat per-account and per-IP limits. Watch for sign-up bursts from disposable email domains, many accounts hitting the same 404 routes, and route-guessing patterns across accounts.

Impact assessment

Risk rating: High for any organisation running workloads with instance roles, managing secrets in git, or keeping internet-facing non-production environments. The techniques are not new. What has changed is that an agent harness tries all of them, around the clock, for the cost of compute. Every gap in the list above will be found by somebody’s agent; the question is whose.

CloudShieldSecure perspective

Checks 2, 4 and 5 are configuration questions, and configuration drifts. CloudShieldSecure flags instances and launch templates that still answer IMDSv1, internet-exposed management endpoints (including on forgotten demo accounts), and IAM roles that have gained model-invocation permissions they did not have last week. At CloudKonsult we see the same pattern Perplexity describes: the controls that held were set up well before the attack, not during it.

  • Today: run an IMDSv1 inventory and set the account-level default to IMDSv2.
  • This week: list every non-production environment with a public management interface, and assign an owner or a shutdown date.
  • This week: review who can call bedrock:InvokeModel and add an alert for first-time callers.
  • This month: run secret scanning across full git history, including forks you control, and rotate everything it finds.
  • Ongoing: as Perplexity suggests, point your own automated scanning at your code and external surface so you find leaked secrets and exposed endpoints first.

Sources and references

Assess your security posture today

CloudShield Secure scans, validates, and prioritises threats across your entire attack surface.

Explore CloudShield Secure →
← AI-Assisted Cyberattacks Aren't Autonomous Yet, …