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

AI · 2026-12-03 · By Reef Reporter

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:

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.

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)

What To Do Now

Both intrusions that worked started from ordinary, avoidable exposure, not from any new technique. Priorities:

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.

Sources

REEF SENTINEL