Perplexity said on December 2, 2026 that it stopped an autonomous AI agent that spent two weeks trying to break into its systems to steal cloud credentials. The attack, described in a detailed post-mortem published by the company, peaked with roughly 48,000 requests in 13 minutes as the agent probed for a way to reach Amazon Bedrock, the cloud service that provides access to frontier AI models.

The campaign is one of the clearest public examples yet of an AI agent running a cyberattack largely on its own: one operator prompt, hundreds of self-directed tasks, and probing that adapted every time a request failed.

What Happened

According to Perplexity, the attack began quietly in late October. Between October 24 and 28, the attacker created disposable accounts and ran low-volume reconnaissance. On November 2, the campaign escalated into high-rate server-side request forgery (SSRF) and API sweeps. Perplexity Computer, the company’s own AI agent platform, flagged the activity in application logs and escalated it to the security team.

The largest sweep on November 2 sent about 48,000 requests in 13 minutes across 28,000 guessed API routes, peaking at more than 200 requests per second. Two more 15-minute sweeps followed on November 3, with roughly 9,300 and 12,700 requests. Over a 14-hour window, the attacker also made 3,681 failed lookups against Perplexity’s object storage, guessing paths for secrets and configuration files such as .env.production, .aws/credentials and state.tfstate. To dodge rate limits, the attacker rotated through more than 40 disposable-email accounts and about 290 residential and cloud proxy addresses.

perplexity timeline

Perplexity’s timeline of the autonomous AI attack. Graphic: GPTOnline, based on Perplexity’s published timeline.

Perplexity says its controls held throughout. Outbound URL validation and authorization checks blocked every probe, and the attacker accessed no internal services, private customer data or platform secrets over the two weeks of activity. Probing stopped by November 8.

How the Attack Worked

The attacker ran the campaign with Cairn, an open-source agent harness that structures each campaign as a graph of observations, called facts, and worker tasks, called intents, stored alongside an operator-defined goal. In the workspace targeting one of the other victims, the agent created 276 tasks on its own over 19.5 hours, with up to 14 tasks running in parallel and a median task length of 11 minutes. When a line of attack hit a dead end, the agent opened new tasks to work around it, including three parallel follow-ups within 25 minutes of learning that GitHub code search needed an authentication token.

The agent used six techniques against Perplexity: SSRF, object-storage enumeration, API route discovery, privilege escalation, cross-tenant access attempts and evasion. Its SSRF probes rewrote the cloud metadata address 169.254.169.254 in decimal and hex formats, used malformed URLs and redirect chains, and tried DNS-rebinding domains in the hope that a hostname would resolve to a public address during validation and flip to an internal metadata address on the actual fetch. Perplexity said its outbound validator blocks private and link-local destinations at connection time, so those attempts failed too.

In all three workspaces the objective was the same: obtain cloud credentials or service tokens able to invoke two latest-generation frontier models through Amazon Bedrock. The operator’s written goal, preserved in one workspace, asked for an AWS key pair or Bedrock bearer token that could directly invoke the target models, preferably with broad IAM permissions such as AdministratorAccess or PowerUserAccess.

Two Other Companies Were Hit Harder

Investigating the attack led Perplexity to the attacker’s own infrastructure. Several probes pointed back to a single server that the attacker had left publicly exposed. A scan of that host found 207 open ports, most running ad-hoc Python HTTP services, and 29 ports serving unauthenticated directory listings that exposed more than 10,000 files, including live campaign workspaces aimed at two other organizations.

At the first company, referred to as 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 captured a stored Git token and obtained short-lived AWS workload credentials, though those lacked permission to invoke Bedrock models. At Company B, the agent logged into an exposed management API on a demo environment and deployed a persistent command runner that logged about 1,000 callbacks over 15 hours, collecting local password stores, Kubernetes secrets and EC2 instance-role credentials. Attempts to invoke models through Company B’s Bedrock proxy were rejected.

Perplexity said it compiled technical reports and shared them with both companies’ security teams on November 4, within hours of identifying the server. The company also cautioned that its picture of the other two campaigns comes from the attack agent’s own compressed records, that agents can misread responses or overstate partial access, and that it did not test recovered credentials against third-party systems. The operator’s ultimate purpose remains unknown.

perplexity quote

Graphic: GPTOnline, quoting Perplexity’s December 2, 2026 security report.

Why It Matters

Perplexity’s report is a rare, detailed look at what an autonomous AI attack looks like in practice, and the pattern is worrying even though this attempt failed. TechCrunch noted that Cairn resembles the Artex harness that has caused problems in recent weeks, and the blog says Cairn has already been observed in other offensive campaigns. One operator can now launch a campaign that probes around the clock, learns from failures and re-plans without human input.

“This incident shows what an autonomous AI attack looks like in action: one operator prompt, hundreds of self-directed tasks, and probing that adapts every time a request fails.”

The incident also shows the defensive side of the same coin. Perplexity’s own agent platform spotted the probing, grouped dozens of throwaway accounts into a single campaign, drafted hardening changes while the attack was still running and helped compile the intelligence shared with the other victims. Perplexity argues defenders should use autonomous agents the same way, running them against their own code and external surfaces to catch leaked secrets or exposed endpoints before an attacker does. As AI agents get cheaper and more capable, that race between autonomous offense and autonomous defense is likely to define the next phase of cybersecurity.

Sources