An attacker ran an autonomous AI agent against Perplexity for about two weeks in an attempt to steal credentials that could invoke frontier models through Amazon Bedrock, the company said in a postmortem published on December 2. Perplexity says its controls blocked every probe. Files on the attacker’s exposed server revealed active intrusions at two other companies, it says, and it notified both on November 4.

The attacker created disposable accounts from October 24 and began high-rate sweeps on November 2, when Computer, Perplexity’s agent platform, flagged the activity to the security team. The largest sweep that day sent roughly 48,000 requests in 13 minutes across 28,000 guessed API routes, peaking at more than 200 requests per second. Each time rate limits or blocks kicked in, the attacker moved to new infrastructure, and by November 4 it had used more than 40 disposable-email accounts and about 290 residential and cloud proxy addresses. The last disposable accounts were created on November 6, and the probing had stopped by November 8.

The agent tried server-side request forgery against features that fetch user-supplied links, aiming at AWS metadata services, localhost and private network ranges. It rewrote the metadata address in decimal and hex, bounced redirects through tunnel services and used DNS-rebinding domains. Over a 14-hour window, Perplexity’s cloud audit logs recorded 3,681 failed S3 lookups across more than 3,300 guessed keys, including paths such as .env.production and .aws/credentials.

Several probes pointed back to one external server that the attacker used to stage payloads. A scan of it found 207 open ports, 29 of which served unauthenticated directory listings exposing more than 10,000 files, including live campaign workspaces against two organizations Perplexity calls Company A and Company B. The workspaces showed the attacker running Cairn, the open-source agent harness used in an attack on universities that Amazon disclosed and in operations against at least 19 organizations reported by Unit 42.

In all three workspaces, the goal was the same: cloud credentials or service tokens able to invoke two latest-generation frontier models through Bedrock. The operator’s prompt for Company A, which Perplexity published with the company and model names replaced, told the agent to prefer credentials with broad IAM permissions and to “sweep ALL Bedrock regions” if a key’s home region failed. Perplexity says the prompt does not show what the operator wanted the models for.

From a single bootstrap task, the agent in the Company A workspace created 276 more tasks on its own over 19.5 hours, running up to 14 at once. It found a live customer OAuth credential in deleted git history, took administrative control of that customer’s workspace and obtained short-lived AWS workload credentials, which lacked permission to invoke Bedrock. At Company B, it logged into an exposed management API on a demo environment and planted a command runner that recorded about 1,000 callbacks over 15 hours, collecting Kubernetes secrets and EC2 instance-role credentials. Its attempts to call models through Company B’s Bedrock proxy were rejected.

Perplexity cautions that its account of the two intrusions draws on the attacking agent’s own records, and that “agents can misread responses or overstate partial access.” It did not test the recovered credentials against third-party systems. Keys stolen from customers in an October breach at Railway ran up an estimated $740,000 in unauthorized AI usage, the hosting company said in November.

Sources: Perplexity, BleepingComputer

–
By the Control Plane Editorial Team