AI agent that failed to breach Perplexity compromised two other companies

An autonomous AI agent spent two weeks trying to pull cloud credentials out of Perplexity’s infrastructure to reach Amazon Bedrock models, and got much further at two other companies it went after.

Perplexity AI agent attack

The attacker wanted access to Amazon Bedrock, the AWS service that offers frontier AI models from several providers through one API, but none of the agent’s attempts against Perplexity’s systems got through, the company said in an incident write-up.

“Perplexity Computer, our agent platform, flagged the probing in our application logs and escalated it to the security team,” the company noted.

“Our security controls held,” Perplexity wrote. “Outbound URL validation and authorization checks blocked every probe,” and “none of the attacker’s attempts to reach internal services, other users’ data, or credentials succeeded.”

Two weeks of probing

According to Perplexity, the attacker created a handful of disposable accounts in late October and ran low-volume reconnaissance before the agent switched to high-rate sweeps on November 2, peaking at about 48,000 requests in 13 minutes, or more than 200 requests per second. Two more 15-minute bursts followed the next day, with about 9,300 and 12,700 requests.

The sweeps included server-side request forgery (SSRF) attempts, where an attacker tries to trick a server into making requests on their behalf, in this case to cloud metadata services that can hand out credentials. The agent used filter evasion tricks, DNS rebinding domains and redirect chains to get past Perplexity’s checks, and all of them failed.

It also guessed at the locations of secret and config files in Amazon S3 storage. AWS’s CloudTrail audit logs recorded 3,681 failed lookups for more than 3,300 different file names over 14 hours, and no private file was opened. Attempts at privilege escalation and at reaching other customers’ data were denied as well.

To avoid being blocked, the attacker rotated through more than 40 disposable email accounts and about 290 proxy addresses, and the probing stopped within a week of the first big sweep.

A campaign built on Cairn

Going through files the attacker had left exposed on its own server, Perplexity found the operation ran on Cairn, an open-source AI penetration testing framework. “Cairn structures each campaign as a graph of observations,” the company explained. The operator sets a goal, and the system records what it learns as “facts” and hands out work to agents as “intents.”

Each worker agent ran inside a container with Kali Linux, a Linux distribution built for security testing, with shell, network and headless browser access. In one campaign, a single worker created 276 follow-up tasks on its own over 19.5 hours, running up to 14 of them in parallel.

Perplexity counted 37 conclusions in which the agent marked a line of attack as a “dead end,” and later tasks went back to 19 of those failures and used them as a starting point for something new.

Stolen tokens and secrets at two other firms

The server, which Perplexity’s team tracked down while the attack was still under way, had 207 open ports, 29 of them serving public directory listings with more than 10,000 files anyone could browse. Those files showed the agent had been working on other targets, and Perplexity notified two companies it identified there but didn’t name.

At the first company, the agent “found a live customer OAuth credential in deleted git history,” a token that had been deleted from the code but stayed in the repository’s history and still worked. The agent used it to take admin control of that customer’s workspace and obtained short-lived AWS credentials, which turned out to lack Bedrock permissions.

At the second company, “the agent logged into an exposed management API on a demo environment and deployed a persistent command runner.” Over 15 hours, that implant called back to the attacker about 1,000 times and gathered password stores, Kubernetes secrets and EC2 role credentials, though its attempts to reach Bedrock through a proxy were rejected.

Open questions

Perplexity was upfront about the limits of what it knows. The server it uncovered was likely one part of a bigger operation, some campaign workspaces held only partial data, and the company warned that “agents can misread responses or overstate partial access,” so the agent’s notes on its own success may not be accurate.

“Agent harnesses make it cheap to probe targets around the clock and adapt as requests fail,” the company cautioned, adding that “defenders can use that same capability proactively” by running agents against their own code and internet-facing systems to find leaked secrets and exposed endpoints before an attacker’s agent does.