Perplexity says an attacker’s AI agent spent two weeks probing its systems for Amazon Bedrock credentials and left with nothing. The campaign peaked on 2 November with roughly 48,000 requests in 13 minutes. While tracing the probes, Perplexity found the attacker’s own server open on the internet, holding live campaign workspaces aimed at two other companies. Perplexity says the agent got into both of them, and that it warned them on 4 November. CEO Aravind Srinivas shared a summary of the post-mortem on X, and the full write-up is on Perplexity’s blog.
What happened
The attacker ran the campaign with Cairn, an open-source agent harness, between 24 October and 8 November, according to Perplexity’s timeline. It began with low-volume scouting from disposable accounts and switched to high-rate sweeps on 2 November. Perplexity Computer, the company’s agent platform, flagged the new accounts that day after grouping them by shared source IPs, email domains and callback hosts. No single account showed the whole campaign, because the agent moved to a fresh signup or proxy whenever a rate limit hit. By 4 November it had cycled through more than 40 disposable accounts and about 290 residential and cloud proxy addresses.
The largest sweep sent about 48,000 requests across 28,000 guessed routes at over 200 requests a second, and every guess came back 404. Over a 14-hour window, Perplexity’s cloud audit log recorded 3,681 failed S3 lookups across more than 3,300 keys, for files such as .env.production, .aws/credentials and state.tfstate.
| Technique | What the agent did | Outcome at Perplexity |
|---|---|---|
| SSRF | Supplied URLs and redirect chains aimed at cloud metadata and internal services | Blocked by outbound URL validation |
| Object-storage enumeration | Guessed object keys for secrets and config files | No private objects accessed |
| API route discovery | Swept thousands of candidate paths in bursts | Guessed paths returned 404 |
| Privilege escalation | Probed organisation and admin permission endpoints | Denied |
| Cross-tenant access | Tested identifiers for other users’ threads, files and workspaces | Denied |
| Evasion | Rotated accounts, proxies and callback domains | Activity correlated across rotations |
The SSRF attempts, and a test I ran
Server-side request forgery, or SSRF, tricks a server into fetching an address it shouldn’t, such as the cloud metadata endpoint at 169.254.169.254 that hands out credentials. Perplexity’s link-fetching features were the target. After plain internal addresses were rejected, the agent rewrote the address in decimal and hex, malformed URLs to confuse parsers, bounced redirects through public tunnel services and used DNS-rebinding names on rbndr.us. In a rebinding attack a hostname resolves to a safe public address during the check, then flips to the internal one when the real request goes out. Perplexity says its validator resolves hostnames and blocks private and link-local destinations at connection time, so all of it failed.
I wanted to see why connection time matters, so I built a small lab. A canary server on loopback stands in for the metadata endpoint. I pointed three URL validators at eight encodings of loopback, the same trick as the decimal and hex forms Perplexity describes, and fetched each URL with curl to see whether the canary answered. The machine was a 4 vCPU Intel Xeon at 2.1 GHz with 16 GB of memory and a 252 GB disk, running Ubuntu 24.04 with Python 3.13 and curl 8.5.0.

A validator that matched the host against a list of strings, such as localhost and 127.0.0.1, let through six of the eight: the decimal, hex, octal and short forms, the IPv6-mapped form and 0. A validator that parsed the host as an IP address and blocked private ranges also passed six, because localhost and forms like 2130706433 don’t parse as addresses in Python’s ipaddress module, so it took them for hostnames. Curl reached the canary on seven of the eight URLs. The only miss was the IPv6-mapped form. A validator that resolved the name with getaddrinfo and tested every returned address blocked all eight.
Resolving once to check isn’t enough either. I modelled a resolver that answers with a public address the first time and loopback the second. A validator that resolves to check, then lets the HTTP client resolve again, passed the URL and then fetched the canary. A validator that resolves once, tests that address and connects to it never touched the canary. I didn’t test the rbndr.us and nip.io names from Perplexity’s post, because the box can’t do outbound DNS lookups for them, so the rebinding case is a model and not the live service. I didn’t run Cairn.
def blocked_ip(ip):
a = ipaddress.ip_address(ip)
if a.version == 6 and a.ipv4_mapped:
a = a.ipv4_mapped
return (a.is_private or a.is_loopback or a.is_link_local
or a.is_reserved or a.is_unspecified)
ip = socket.getaddrinfo(host, port)[0][4][0] # resolve once
if blocked_ip(ip): # check that address
raise ValueError("blocked")
sock = socket.create_connection((ip, port)) # connect to the same one
For HTTPS you also keep the original hostname for the TLS handshake and the Host header, so the pinned address doesn’t break certificate checks.

Inside the harness
Cairn is an AGPL-licensed project on GitHub that describes itself as a general-purpose state-space search engine, validated first on autonomous penetration testing. It keeps a shared board of facts, which are confirmed findings, and intents, which are directions to explore, and a human can add hints. Workers run as CLI coding agents and read the whole graph before choosing what to try next. Its README says to use it only where you have explicit authorisation.
Perplexity’s recovered workspace shows how that plays out. A dispatcher started the first task, and the worker agent created 276 more over 19.5 hours, with up to 14 running at once and a median task time of 11 minutes. Every later task cited between one and six earlier facts. Thirty-seven conclusions were marked dead ends, and new tasks cited 19 of those within a median of 31 minutes. In one case a task found that GitHub code search needed a token, and within 25 minutes three tasks were running, one hunting for a token and two mining other public sources.

The operator’s prompt was the same goal in all three workspaces. Perplexity published the Company A version with names and model identifiers removed.
the credential MUST be able to invoke [Model A]. SECONDARY: [Model B].
Operator prompt, as published by Perplexity
The prompt also told the agent to prefer credentials with broad IAM permissions, to sweep every Bedrock region if a key’s home region failed, and how to fix an account data-retention setting that one of the models required. The agent worked through the same stages at each target:
- It mapped hosts from certificate-transparency logs, passive DNS and web archives, and switched to a headless browser when curl was blocked.
- It mined public code and git history, including one task that queued 4,328 forks of ten repositories and completed 4,281 scans.
- It unpacked npm and PyPI releases, container layers, Hugging Face repositories and mobile builds for embedded secrets.
- It tested only complete credentials, such as an AWS key ID found beside its 40-character secret, and verified them with
sts:GetCallerIdentity. - When public sources gave nothing, it automated disposable-email signups to get an authenticated session and probed from inside.
The other two targets
Perplexity’s account of Company A and Company B comes from the attacking agent’s own compressed notes and callback logs, not from the companies. Perplexity says agents can misread responses or overstate partial access, and that it didn’t test the recovered credentials against outside systems.
At Company A, the agent found a live customer OAuth credential in deleted git history, took administrative control of that customer’s workspace and ran code on managed compute. From there it reached internal endpoints behind IP allowlists, captured a stored Git token and obtained short-lived AWS workload credentials that lacked permission to invoke Bedrock. At Company B, it logged into an exposed management API on a demo environment and deployed a persistent command runner that recorded roughly 1,000 callbacks over 15 hours. It collected local password stores, Kubernetes secrets and EC2 instance-role credentials, but its attempts to use Company B’s Bedrock proxy were rejected. Perplexity sent both security teams reports and indicators on 4 November, while the operations were still running.

The attacker left the door open
Several of the SSRF and callback probes pointed back to one external server, which the attacker used to stage payloads and catch responses. Perplexity scanned it to inspect the redirector scripts and found 207 open ports, nearly all running throwaway Python HTTP services. Twenty-nine ports served unauthenticated directory listings, exposing more than 10,000 files, including the live workspaces against the two other companies. Perplexity says it was almost certainly one slice of a larger operation, because Cairn’s control plane ran elsewhere.
It isn’t the first exposed Cairn setup. Amazon Threat Intelligence found an unauthenticated Cairn instance on 10 September, and NorForge counted more than 20 exposed Cairn control panels that it judged likely malicious.
Not the first Cairn campaign
| When | Who reported it | What they found |
|---|---|---|
| September | Gambit Security, as NorForge describes it | A financially motivated actor targeting online marketplaces, using harnesses including Cairn |
| 8 to 10 September | Amazon Threat Intelligence | A Chinese-nexus actor targeting East Asian universities. Agents found an unpatched path-traversal flaw in an open-source medical imaging app in about 11 minutes |
| 19 October | NorForge | More than 20 exposed Cairn panels, apparently financially motivated |
| 24 October to 8 November | Perplexity | This campaign, aimed at Bedrock access across three targets |
| 30 October | Google Threat Intelligence Group | ARTEX, PentAGI and Cairn seen in Mandiant incident-response work since late August |
Amazon notes that Cairn “was built as a research and problem-solving engine for defenders”, and that its ease of use makes it attractive to threat actors. TechCrunch likens it to ARTEX, the harness behind the FBI’s flash alert. Google’s ARTEX report is the wider map. I’ve also covered Google’s finding on agents turning patches into exploits and Switzerland’s first confirmed AI-agent attacks.
What it means for defenders
The target was credentials that can call frontier models, not customer data. Perplexity’s prompt doesn’t say what the operator wanted the access for. What the logs show is cost and speed: one prompt, hundreds of self-directed tasks, and a 48,000-request burst that failed on a basic control. Perplexity credits that control, plus authorisation checks, for the clean result, and says it added blocks on the DNS services the attacker used, tighter network restrictions around metadata destinations and stricter access controls at the edge during the campaign.
Google’s defensive advice for these frameworks is old practice applied faster: isolate the control plane, use short-lived credentials, give each identity the least it needs, segment networks and watch for behavioural change. The Perplexity case adds a few concrete checks:
- Test the address you connect to, not the address you looked up earlier.
- Group new signups by source IP, email domain and callback host, since one account never shows the campaign.
- Treat a burst of guessed routes returning 404 as a signal, not noise.
- Scrub secrets from git history, because Company A’s customer credential was in deleted commits.
- Keep demo environments and management APIs off the open internet, as Company B’s wasn’t.
Perplexity also argues that defenders should run autonomous agents against their own code and public surfaces to find leaked secrets first. That pitch is for its own Computer product, which I haven’t tested, so the detection details here are Perplexity’s account. Perplexity hasn’t named Company A or Company B, the operator or the purpose of the Bedrock access.




