Perplexity says an attacker ran an autonomous AI agent against its platform for two weeks in late October and early November, hunting for Amazon Bedrock credentials, and came away with nothing.
The agent ran on Cairn, an open-source AI penetration-testing framework, and at its peak fired roughly 48,000 requests in 13 minutes. The operator’s prompt held a single goal: AWS keys or bearer tokens able to invoke two frontier models on Amazon Bedrock.
Perplexity disclosed the campaign on Wednesday, December 2, in a technical write-up with threat indicators, and CEO Aravind Srinivas walked through it in a post on X.
Perplexity says no internal services, customer data or platform secrets were accessed. The same operator got further at two other companies, which Perplexity has not named: the agent took admin control of a customer workspace at one and harvested Kubernetes secrets and EC2 instance-role credentials at the other, though neither intrusion produced working Bedrock access.
How the AI Agent Attacked Perplexity
The attacker created the first disposable accounts and ran low-volume reconnaissance between Saturday, October 24, and Wednesday, October 28. High-rate sweeps began on Monday, November 2, peaking at more than 200 requests per second across roughly 28,000 guessed API routes. Two more 15-minute bursts of about 9,300 and 12,700 requests followed on November 3.
The storage hunt ran over a 14-hour window: 3,681 failed S3 lookups across more than 3,300 unique keys, guessing filenames such as .env.production, .aws/credentials and state.tfstate, a Terraform state file that often holds cloud secrets. None reached a private object. The route sweep returned 404 errors, probes of organisation and admin permission endpoints were denied, and attempts to open other users’ threads, files and workspaces by guessing their identifiers failed authorisation checks.
The most persistent effort targeted Perplexity’s link-fetching features with server-side request forgery (SSRF), which tricks a server into fetching an address it should never touch. The targets were the AWS metadata endpoints at 169.254.169.254 and 169.254.170.2, which hand temporary cloud credentials to callers inside the network.
When Perplexity blocked direct internal IPs, the agent switched to decimal and hexadecimal IP encodings, malformed URLs, redirect chains through public tunnels and DNS rebinding. Rebinding uses a domain that resolves to a harmless public IP when the server checks it, then flips to an internal IP when the real request goes out. The attacker used rbndr[.]us subdomains whose names encode the two metadata addresses in hex.
Every SSRF attempt failed because Perplexity’s outbound validator resolves the hostname and blocks private and link-local destinations at connection time, so the address it checks is the address it actually connects to.
Whenever per-account rate limits kicked in, the agent signed up again or switched proxies. By November 4 it had cycled through more than 40 disposable-email accounts, using GuerrillaMail for signup passcodes, and about 290 residential and cloud proxy addresses.
How Perplexity Caught the Campaign
Perplexity detected the attack with its own agent platform, Perplexity Computer, which the company uses to watch application logs and triage alerts. Computer linked the throwaway accounts through shared IP addresses, email domains and callback hosts, and flagged the campaign to the security team on November 2. Viewed one account at a time, the activity would not have looked like a single operation.
From November 3, Perplexity ran a dedicated Computer workflow for more than five days that tracked the attacker’s newly rotated infrastructure and drafted hardening changes for engineers to review and ship during the attack. The changes included blocks on DNS services the attacker relied on, tighter network restrictions around internal and metadata destinations, and stricter access controls at the edge. Active incident response ended on November 5, the last disposable accounts appeared on November 6, and probing stopped by November 8.
Inside the Attacker’s Exposed Cairn Server
On November 4, Perplexity’s security team scanned the server hosting the attacker’s redirector scripts and found it wide open. It had 207 open ports running 15 HTTP redirectors, mock MCP servers, an OAuth registration responder and callback receivers, plus 29 unauthenticated Python SimpleHTTP directory listings that exposed more than 10,000 working files. Among them were live campaign workspaces targeting Perplexity and two other companies.
Cairn runs command-line coding agents inside a Kali Linux container with shell, network and headless-browser access. Each campaign lives in a single graph.yaml file with three parts: the operator’s goal, a list of facts the agent has observed (dead ends included), and a list of intents, or worker tasks. Each task reads earlier facts, runs scripts or probes, writes new facts back and queues the next tasks.
In the workspace for one of the other targets, the operator created a single bootstrap task, and the agent generated 276 more on its own over 19.5 hours, 263 completed and 14 still running when Perplexity captured the files. Up to 14 tasks ran in parallel, with a median run time of 11 minutes. The agent mined certificate transparency logs, web archives, npm and PyPI packages and mobile app builds, and scanned 4,281 forks of 10 public GitHub repositories looking for complete key pairs. It only validated complete credentials, such as an AWS access key ID paired with its 40-character secret.
Failure barely slowed the agent down. It marked 37 branches as dead ends, and 19 of those triggered follow-up workarounds within a median of 31 minutes. When GitHub code search demanded authentication, the agent launched three parallel tasks within 25 minutes, one to find a GitHub token and two to mine other public sources, then returned to code search once it had a token. “One prompt can turn into hundreds of parallel tasks,” Srinivas said.
Cairn has turned up in other recent campaigns: Amazon Threat Intelligence reported in November that a Chinese-nexus operator’s Cairn agents found a zero-day in the MONAI Label medical imaging app. Perplexity has not attributed its attacker to any group or country.
What the Agent Got at the Other Two Companies
The operator gave all three campaigns the same goal, and none reached it. At the first company, which Perplexity calls Company A, the agent found a live customer OAuth credential in deleted git history. It used that to take admin control of a customer workspace, run code on managed compute, reach IP-allowlisted endpoints and capture a Git token. It also obtained short-lived AWS workload credentials, but those lacked Bedrock permissions.
At 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 attempts to invoke the target models through a Bedrock proxy were rejected.
Perplexity says it compiled technical reports and indicators within hours of finding the server on November 4 and notified both companies’ security teams while the intrusions were still in progress. The company has not named either victim or the two Bedrock models, which are redacted in its write-up.
Perplexity Attack Indicators and What Defenders Should Do
Perplexity published network indicators for the campaign. The attacker’s workspace, command receiver and SSRF redirector server sat at 185.87.121[.]140. The main application probing came from 2a11:3b80::3eec:efff:fe1e:5738, early probing from 147.124.211[.]248, and later probing from 35.73.178[.]124, which Perplexity says may be shared cloud egress. Accounts using the actor’s email domains came from 14.99.110[.]22 and 159.86.136[.]5.
The disposable email domains were arcadehearth[.]com, roomsranked[.]com and marchslurp[.]com, including their subdomains. DNS rebinding used *.a9fea9fe.rbndr[.]us and *.a9feaa02.rbndr[.]us, and SSRF payloads used the wildcard DNS services nip[.]io and sslip[.]io. The attacker’s HTTPS callback listeners presented self-signed TLS certificates with CN=oob, no subject alternative name and a validity of two to five days. Perplexity did not publish user agents or file hashes.
Perplexity’s guidance rests on baseline controls. Validate outbound URLs at connection time rather than at parse time, enforce strict authorisation on every object and admin endpoint, and restrict access to cloud metadata addresses. Both successful intrusions started from avoidable exposure, so scrub secrets from git history, including deleted commits, and keep management APIs and unauthenticated directory listings off the public internet, demo environments included.
Perplexity also recommends running autonomous agents against your own code and public surfaces to find leaked keys before an attacker does, and using them during live incidents to keep pace with automated attackers.
Community Discussion
Join the conversation. Ask questions, share solutions, and help others.
Be the first to start the discussion!
