On the morning of November 2, something strange started happening inside Perplexity’s systems. Brand-new accounts were signing up in waves, then immediately feeding suspicious web addresses into the company’s link-fetching features. No single account did anything dramatic. But taken together, the pattern was unmistakable.
Someone — or something — was casing the building. And it was not a person at a keyboard. According to Perplexity, the intruder was an autonomous AI agent: software that sets its own sub-tasks, changes course when blocked, and keeps going without human help.
For nearly two weeks it probed the AI search company’s infrastructure, hunting for cloud credentials it could use to call frontier AI models at someone else’s expense.
Perplexity published its account of the incident on December 2, and the story it tells is a first: a detailed, first-party record of an attack run by an AI agent, not a human.
The good news is that its defences held. The attacker reached no internal service, no customer data and no platform secret. The bad news is what investigators found when they traced the attack back to its source — the same agent had already broken into two other companies.
What the Attacker Was After
The prize was not data or money in the usual sense. The agent wanted cloud credentials powerful enough to invoke two unnamed, latest-generation AI models through Amazon Bedrock, the cloud service that rents out access to frontier models.
Stolen keys like that would let an operator run expensive AI workloads on another company’s bill. Cloud credentials have become a kind of currency for AI misuse.
Earlier this year, attackers who stole AI keys from Railway racked up around $740,000 in fraudulent charges, and the Fireworks AI breach exposed customer datasets in a similar hunt for secrets.
Perplexity says the campaign began quietly. Between October 24 and 28, the attacker created its first disposable accounts and ran low-volume reconnaissance. Nothing about the early traffic looked like an emergency. Then, on November 2, the pace changed completely.
How the Perplexity Autonomous AI Attack Unfolded
The largest burst arrived on November 2: roughly 48,000 requests in 13 minutes, sweeping some 28,000 guessed API routes at more than 200 requests per second. Two more 15-minute sweeps followed on November 3, at about 9,300 and 12,700 requests.
Every guessed route returned the same answer: 404, not found. Perplexity’s own agent platform, Perplexity Computer, spotted the surge. It was already being used to triage alerts and watch application logs, and it flagged activity far beyond routine internet scanning.
That early warning is what turned a quiet probe into a watched incident. But the attacker made itself hard to see. Whenever a rate limit or a block kicked in, it simply switched to a fresh signup.
By November 4 it had cycled through more than 40 disposable email accounts and roughly 290 residential and cloud proxy addresses. No single account ever showed the full campaign. Only by grouping accounts through shared IPs, disposable domains and callback hosts could the team see one coordinated operation.
The agent tried six techniques in all. The first was server-side request forgery, or SSRF: feeding crafted URLs into features that fetch user-supplied links, hoping the server would call back to cloud metadata services or internal systems.
When direct requests to internal addresses were rejected, it tried familiar evasions. It rewrote the AWS metadata address 169.254.169.254 in decimal and hexadecimal forms, and used DNS-rebinding domains that resolve to a public IP during validation and flip to an internal address on the real fetch.
Next came object-storage enumeration. Over a 14-hour window, the agent made 3,681 failed S3 lookups across more than 3,300 unique keys, guessing paths like .env.production, .aws/credentials and state.tfstate.
It also probed permission endpoints, tested identifiers for other users’ threads and files, and kept rotating accounts and proxies to stay ahead of the blocks. Every attempt failed.
The Exposed Server That Gave the Game Away
The turning point came when investigators followed the attacker’s own callbacks. Several SSRF and callback probes pointed back to a single external server, and when Perplexity’s team scanned it across all TCP ports, they found 207 open ports.
Nearly all of them were running ad-hoc Python HTTP services spun up for individual attack steps. The server held 15 HTTP redirectors, mock MCP servers, an OAuth registration responder and dozens of plain-text callback receivers.
Alongside them, 29 ports were serving unauthenticated Python directory indexes directly to the public internet. Those open directories exposed more than 10,000 files from the attacker’s working directories, including custom probing scripts, receiver logs and extracted assets.
Most importantly, the directories held live campaign workspaces aimed at two other organisations, which Perplexity calls Company A and Company B. The agent had not only been probing Perplexity. It had been running the same campaign against three targets at once — and the other two had fared worse.
Inside Cairn: The Harness Running the Show
The recovered workspaces showed how the campaign was being run. The attacker used Cairn, an open-source agent harness that has recently been observed in other offensive campaigns. Cairn structures each campaign as a graph of observations, called facts, and worker tasks, called intents.
The worker agents ran as command-line coding agents inside a Kali Linux container, with shell, network and headless-browser access. In the preserved Company A task graph, a single bootstrap task started the campaign — and the worker then created 276 further tasks on its own.
In total there were 277 intents and 265 recorded facts over 19.5 hours, with up to 14 tasks running in parallel and more than 40 new tasks launched in the busiest hour.
This is the same family of tooling behind AI agents that found a zero-day in 11 minutes, and it shows how quickly an automated attacker can adapt.
The agent learned from its own failures. Thirty-seven conclusions explicitly marked an investigated branch as a dead end, and 19 of those were cited by new tasks within a median of 31 minutes.
In one sequence, a code-search task concluded that a GitHub token was mandatory — and within 25 minutes the agent had opened three parallel tasks to find one and mine alternative sources.
Two Other Companies Were Not So Lucky
Against Perplexity, the agent recovered no victim or platform credentials. Company A was a different story. There, the agent found a live customer OAuth credential in deleted git history and took administrative control of that customer’s workspace.
From there it ran code on managed compute, reached internal endpoints behind IP allowlists, and captured a stored Git token. It also obtained short-lived AWS workload credentials — though those lacked the permissions to invoke Bedrock models.
Company B fared worse still. The agent 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, with new entries still arriving as Perplexity examined the host.
Through that foothold it collected local password stores, Kubernetes secrets and EC2 instance-role credentials, although its attempts to invoke models through Company B’s Bedrock proxy were rejected. None of the three campaigns reached the Bedrock objective.
Perplexity is careful about what it claims. Its picture of Companies A and B comes from the coding agent’s own compressed task records, and agents can misread responses or overstate partial access.
The recovered credentials were not tested against third-party systems, and the operator’s prompt reveals it wanted frontier Bedrock access — but not what for.
Why Perplexity’s Defences Held — and What Comes Next
Perplexity says the attack failed mainly because its core controls were already in place when the campaign began. Outbound URL validation and authorisation checks blocked every probe before it could reach an internal service.
During the response, the team added blocks on the DNS services the attacker used, tighter network restrictions, and stricter access controls at the edge.
There is a larger lesson here, and Perplexity states it plainly. Agent harnesses make it cheap to probe targets around the clock and adapt every time a request fails. Defenders can use that same capability proactively, running autonomous agents against their own code to catch leaked secrets before an attacker does.
When a live campaign hits, pairing strong baseline controls with AI-assisted response lets security teams match that speed. In this incident, Perplexity Computer helped flag the November 2 sweeps, track rotating accounts and proxies, and ship hardening changes while the campaign was still active.
Perplexity notified both other companies on November 4, within hours of identifying the server.
The attacker was one operator prompt, hundreds of self-directed tasks, and probing that adapted every time a request failed. It came away from Perplexity with nothing — but the workspaces it left behind show it was not the only target, and it will not be the last campaign of its kind.



