Autonomous AI Agent Hunted Perplexity's Bedrock Keys for Two Weeks With 48,000 Requests in 13 Minutes and Failed, but the Same Cairn Agent Breached Two Other Companies

Perplexity says a Cairn-driven AI agent spent two weeks probing its platform with SSRF, DNS rebinding and S3 guessing to steal Amazon Bedrock credentials and failed, while its exposed server showed the same agent took a customer workspace, Kubernetes secrets and EC2 role credentials at two other firms.
Perplexity has published a detailed account of a two-week campaign in which an attacker pointed an autonomous AI agent at its platform with a single instruction: find AWS keys or bearer tokens that can call two frontier models on Amazon Bedrock. The company says the agent got nothing from Perplexity. The bigger news is in the attacker's own files. Perplexity found the operator's server left open, and its workspaces show the same agent did break into two other companies. It took a customer workspace at one and Kubernetes secrets and EC2 instance-role credentials at the other.
The write-up came out on Wednesday, 2 December 2026, and CEO Aravind Srinivas summarised it in a post on X. It is one of the most detailed public records so far of what an LLM-driven attacker actually does over days of unattended work, and it follows recent government warnings about AI hacking frameworks being used in real attacks.
What Happened
According to Perplexity, the operator created the first disposable accounts and started low-volume reconnaissance between 24 and 28 October 2026. On 2 November the agent switched to high-rate sweeps. At the peak it sent about 48,000 requests in 13 minutes, more than 200 requests per second, against roughly 28,000 guessed API routes. Two more 15-minute bursts of about 9,300 and 12,700 requests followed on 3 November.
Every rate limit the agent hit, it got around by signing up again or switching proxy. By 4 November it had used more than 40 disposable-email accounts, getting signup passcodes through a throwaway mail service, and about 290 residential and cloud proxy addresses. Active incident response ended on 5 November, the last new accounts appeared on 6 November, and probing stopped by 8 November.
Perplexity says the attacker reached no internal services, customer data or platform secrets.
Technical Details: What the Agent Tried
The campaign used familiar techniques, but at machine speed and with no sign of tiring:
- Route guessing: tens of thousands of invented API paths. All of them returned 404.
- Authorisation probing: requests to organisation and admin permission endpoints, plus attempts to open other users' threads, files and workspaces by guessing their IDs. All were denied.
- Object-storage hunting: over a 14-hour window, 3,681 failed S3 lookups across more than 3,300 unique keys, looking for files such as
.env.production,.aws/credentialsand Terraformstate.tfstatefiles, which often hold cloud secrets. - Server-side request forgery (SSRF): the longest effort. The agent tried to make Perplexity's link-fetching features request the AWS metadata endpoints at 169.254.169.254 and 169.254.170.2, which hand out temporary cloud credentials.
When direct internal IPs were blocked, the agent tried decimal and hexadecimal IP encodings, malformed URLs, redirect chains through public tunnels and DNS rebinding. With rebinding, a domain resolves to a harmless public address when the server checks it, then to an internal address when the real request goes out. Every attempt failed for one reason: Perplexity's outbound validator resolves the hostname and blocks private and link-local destinations at connection time. The address it checks is the address it actually connects to.
How It Was Caught
Perplexity says it spotted the campaign using its own agent platform, Perplexity Computer, which watches application logs and triages alerts. Computer linked the throwaway accounts through shared IP addresses, email domains and callback hosts, and flagged the campaign to the security team on 2 November. Looked at one account at a time, the activity would not have seemed like a single operation.
From 3 November, a dedicated workflow ran for more than five days. It followed the attacker's newly rotated infrastructure and drafted hardening changes for engineers to review and ship while the attack was still going. Those changes included blocking the DNS services the attacker relied on, tightening network restrictions around internal and metadata destinations, and stricter access control at the edge.
Inside the Attacker's Exposed Server
On 4 November, Perplexity's team scanned the host serving the attacker's redirector scripts and found it wide open. It had 207 open ports, 15 HTTP redirectors, mock MCP servers, an OAuth registration responder, callback receivers, and 29 unauthenticated directory listings exposing more than 10,000 working files. Among them were live campaign workspaces for Perplexity and two other companies.
The tool was Cairn, an open-source AI framework whose project page calls it "a general-purpose AI state-space search engine, validated first on autonomous penetration testing". It can drive Claude Code, Codex or Pi as workers. It keeps a shared graph of confirmed facts and planned "intents", and each worker task reads earlier facts, runs probes, writes new facts back and queues the next tasks. Cairn's repository says it is meant only for authorised testing. Amazon's threat intelligence team reported in November that a China-nexus operator used Cairn agents to find a zero-day in a medical imaging application. Perplexity has not linked its attacker to that operator or to any group or country.
The workspaces show how much the agent did on its own. Against one target, the operator created a single bootstrap task. Over 19.5 hours the agent generated 276 more, with up to 14 running in parallel. It mined certificate transparency logs, web archives, npm and PyPI packages and mobile app builds, and scanned 4,281 forks of 10 public GitHub repositories for complete key pairs. It marked 37 branches as dead ends. Nineteen of those led to a workaround, typically within about 31 minutes. "One prompt can turn into hundreds of parallel tasks," Srinivas said.
Who Was Affected
Perplexity does not name the two other victims, which it calls Company A and Company B, or the two Bedrock models, which are redacted in its write-up.
- Company A: the agent found a live customer OAuth credential in deleted git history. It used that credential to take admin control of a customer workspace, run code on managed compute, reach IP-allowlisted endpoints and capture a Git token. It also got short-lived AWS workload credentials, but they had no Bedrock permissions.
- Company B: the agent logged into an exposed management API on a demo environment and deployed a persistent command runner that called home about 1,000 times over 15 hours. It collected password stores, Kubernetes secrets and EC2 instance-role credentials. Its calls to the target models through a Bedrock proxy were rejected.
Perplexity says it notified both companies' security teams within hours of finding the server, while the intrusions were still in progress. Neither company has made a public statement.
Indicators (Defanged)
- Attacker workspace, command receiver and SSRF redirector: 185.87.121[.]140
- Application probing: 2a11:3b80::3eec:efff:fe1e:5738, 147.124.211[.]248 (early), 35.73.178[.]124 (later; possibly shared cloud egress)
- Account sign-ups: 14.99.110[.]22, 159.86.136[.]5
- Disposable email domains and subdomains: arcadehearth[.]com, roomsranked[.]com, marchslurp[.]com
- DNS rebinding: *.a9fea9fe.rbndr[.]us, *.a9feaa02.rbndr[.]us; SSRF payloads also used nip[.]io and sslip[.]io
- Callback listeners presented self-signed TLS certificates with CN=oob, no subject alternative name and two to five days of validity
What To Do Now
Both intrusions that worked started from ordinary, avoidable exposure, not from any new technique. Priorities:
- Validate outbound URLs at connection time, not at parse time, and block private, loopback and link-local ranges (169.254.0.0/16, fd00:ec2::254) for every server-side fetcher.
- Lock down cloud metadata: require IMDSv2 with a hop limit of 1 on EC2, and give workload roles only the permissions they need. A role that cannot call Bedrock cannot leak Bedrock access.
- Scrub git history, including deleted commits and forks, and rotate any credential that was ever committed. Treat a "removed" secret as public.
- Keep management APIs, demo environments and directory listings off the internet. Demo systems often hold real credentials.
- Enforce authorisation on every object and admin endpoint. Guessable IDs should never be enough.
- Correlate across accounts: link sign-ups by IP, email domain and callback host so that a rotating agent shows up as one campaign.
To check whether EC2 instances still accept IMDSv1:
aws ec2 describe-instances \
--query 'Reservations[].Instances[?MetadataOptions.HttpTokens==`optional`].[InstanceId]' \
--output text
Why It Matters
Nothing the agent did at Perplexity was new: SSRF, rebinding, bucket guessing and IDOR probing are textbook techniques. What has changed is that they now cost almost nothing. One goal sentence turned into hundreds of tasks, days of work with no human at the keyboard, and an attacker that routes around every dead end. Basic controls stopped it at Perplexity, and a leaked token and an exposed demo API let it in elsewhere. The lesson for defenders is simple: an attacker that never gets bored will find every gap you have left open.
