Perplexity attack: how an autonomous Cairn AI agent hunted Amazon Bedrock credentials at three companies
Perplexity attack explained: an autonomous Cairn AI agent probed for AWS and Bedrock credentials and breached two other firms. Attack chain, IOCs, what to do.
Key facts
- What was exposed
- Nothing at Perplexity: no internal services, customer data or platform secrets. At Company A, a customer workspace, a stored Git token and short-lived AWS workload credentials. At Company B, local password stores, Kubernetes secrets and EC2 instance-role credentials. None of the stolen credentials could invoke the targeted Bedrock models.
- Confirmed by
- Perplexity, in a report published 2 December 2026. Findings at Company A and Company B come from the attacking agent's own logs and were not independently tested.
- Status
- Probing against Perplexity stopped by 8 November 2026. Perplexity notified both other companies on 4 November. Neither company and none of the targeted models have been named. The attacker's purpose is unknown.
- What to do now
- Block SSRF to metadata and private ranges at connection time, scan git history and published packages for live credentials, scope cloud keys away from Bedrock, and hunt for the published IOCs.
The Perplexity attack is one of the clearest public looks so far at an autonomous AI agent running an intrusion campaign end to end. On 2 December 2026, Perplexity published a report on an attacker who, in late October and early November, used an LLM-driven agent built on the open-source Cairn harness to hunt for AWS keys and Amazon Bedrock bearer tokens. Perplexity says its controls blocked every probe. The same campaign, however, broke into two other companies that Perplexity calls Company A and Company B.
The goal in all three cases, according to Perplexity, was credentials able to invoke two unnamed latest-generation frontier models through Amazon Bedrock. None of the campaigns reached it.
What happened
| Date (UTC) | Event |
|---|---|
| 24 to 28 October 2026 | The attacker creates disposable accounts on Perplexity and runs low-volume reconnaissance. |
| 2 November | High-rate SSRF and API sweeps begin. The largest sends about 48,000 requests in 13 minutes across 28,000 guessed routes, peaking above 200 requests per second. Perplexity’s monitoring alerts the security team. |
| 3 November | Two more 15-minute sweeps (about 9,300 and 12,700 requests). Perplexity deploys additional blocks. |
| 4 November | Perplexity finds the attacker’s exposed server and notifies the two other targets while their intrusions are still running. |
| 6 to 8 November | The last disposable accounts are created on 6 November. Probing stops. |
To get around rate limits, the attacker cycled through more than 40 disposable-email accounts and roughly 290 residential and cloud proxy addresses by 4 November.
The attack chain, step by step
- Reconnaissance. The agent pulled hostnames from certificate-transparency logs, passive DNS and web archives, and generated
-testingand-stagingvariants. When a target blockedcurl, it switched to a headless browser to fetch JavaScript bundles and OpenAPI schemas. - Secret mining in public code. It enumerated contributor and partner accounts on GitHub, GitLab and Sourcegraph and scanned repositories, Gists, commit history and unreachable git objects with tools such as gitleaks and Nuclei. One task queued 4,328 forks of ten public repositories for full-history scanning.
- Packages and binaries. It unpacked npm and PyPI releases, container layers, Hugging Face repositories and mobile builds.
- Validation. It tested only complete credentials, for example an AWS access key ID together with its 40-character secret, and checked them with
sts:GetCallerIdentityor vendor APIs. - Authenticated probing. When public sources gave nothing, it signed up with disposable email OTPs and went after features that fetch user-supplied URLs. At Perplexity, that meant SSRF attempts against
169.254.169.254written in decimal and hex, malformed URLs, redirect chains and DNS-rebinding names. Over 14 hours, CloudTrail logged 3,681 failed S3 lookups for paths such as.env.production,.aws/credentialsandstate.tfstate. - Pivot to the cloud. At Company A, it found a live customer OAuth credential in deleted git history, took over that customer’s workspace, ran code on managed compute, reached internal endpoints behind IP allowlists and obtained short-lived AWS workload credentials. At Company B, it logged into an exposed management API on a demo environment, planted a persistent command runner that logged about 1,000 callbacks over 15 hours, and collected password stores, Kubernetes secrets and EC2 instance-role credentials.
The operator’s prompt for Company A, which Perplexity quotes, asked for an AWS key pair or Bedrock bearer token, preferred credentials with broad IAM permissions such as AdministratorAccess, and told the agent to sweep all Bedrock regions if the home region failed.
Why it worked (and why it failed at Perplexity)
At the two victims, the entry points were ordinary: a credential left in deleted git history and a management API exposed on a demo environment. What changed is the operator’s cost. In the preserved Company A task graph, one bootstrap task led the agent to create 276 more tasks on its own over 19.5 hours, with up to 14 running in parallel. When a path was marked a “dead end”, new tasks picked up the lesson within a median of 31 minutes.
At Perplexity, the controls that mattered were basic and correctly placed. Its outbound validator resolves hostnames and blocks private and link-local destinations at connection time, which defeats DNS rebinding because the check applies to the address actually used. Authorization checks stopped cross-tenant and privilege-escalation attempts.
The attacker’s own operational security was poor. Its staging server had 207 open ports, and 29 of them served unauthenticated directory listings exposing more than 10,000 files, including live campaign workspaces.
What defenders should do
- Fix SSRF at the socket, not the string. Validate the resolved IP at connection time and block
169.254.169.254,169.254.170.2, localhost and private ranges on every URL-fetching feature. Require IMDSv2 on EC2. - Scan history, not just HEAD. Run secret scanners over full git history, forks you control, published npm/PyPI packages, container images and mobile builds. Revoke anything found; deleting the commit is not enough.
- Scope AI-service access. Restrict
bedrock:InvokeModelandbedrock:PutAccountDataRetentionto the roles that need them, and alert on Bedrock calls from unexpected principals or regions. - Kill demo and staging exposure. Inventory management APIs on demo environments. The Company B foothold started there.
- Correlate signups. Group new accounts by source IP, email domain and callback host, as Perplexity did, so rotation does not hide one campaign.
The same pattern of stolen cloud and AI keys appeared in the React2Keys React2Shell credential-theft campaign, and Kubernetes secrets were the prize in the Rackspace Spot breach.
How to check if you are affected
Search proxy, DNS, WAF and application logs for the indicators Perplexity published (defanged here):
- IPv4: 185.87.121[.]140 (workspaces, receivers and SSRF redirectors), 147.124.211[.]248, 35.73.178[.]124 (possibly shared cloud egress), 14.99.110[.]22, 159.86.136[.]5
- IPv6: 2a11:3b80::3eec:efff:fe1e:5738 (primary probing source)
- Email domains used for disposable accounts: arcadehearth[.]com, roomsranked[.]com, marchslurp[.]com and their subdomains
- DNS rebinding names: *.a9fea9fe.rbndr[.]us and *.a9feaa02.rbndr[.]us, which encode 169.254.169.254 and 169.254.170.2
- Wildcard DNS in SSRF payloads: nip[.]io, sslip[.]io
- TLS callback listeners: self-signed certificate with CN=oob, no SAN, 2 to 5 day validity
Also check CloudTrail for bursts of failed S3 object lookups on keys like .env.production or state.tfstate, sts:GetCallerIdentity from unknown IPs, and Bedrock invocations from principals that never used it before.
My take
The interesting part is not that an AI agent attacked a company. It is that the attacker wanted model access itself, enough to write data-retention permissions into the prompt. Frontier inference capacity has become loot, like crypto-mining compute used to be, and any key that can call Bedrock is now worth stealing.
The second lesson is that autonomy turns cheap mistakes into reachable ones. A secret in deleted git history or a forgotten demo API was always a risk, but someone had to find it. An agent that runs 277 tasks overnight and learns from its dead ends will find it. Perplexity held because its SSRF check runs on the resolved address and its authorization is boring and complete. That is the bar. Caveat: the Company A and B details come from the attacker’s agent logs, which Perplexity says can overstate access. More in AI security.
Sources
- How Perplexity defended against an autonomous AI attacker · Perplexity, 2 December 2026
- Autonomous AI attack targeted Perplexity to steal cloud credentials · BleepingComputer, 2 December 2026
- Perplexity caught an autonomous AI hacker trying to steal tokens · TechCrunch, 2 December 2026