Perplexity reported an attack that began in late October and continued for about two weeks. The attacker used an autonomous agent powered by a large language model to obtain credentials for accessing cloud services and AI infrastructure. The attack included mass API scanning, SSRF attempts, and path enumeration in object storage.
How Perplexity discovered the campaign
Activity peaked on November 2, when the system recorded about 48,000 requests in 13 minutes. The agent created disposable accounts, used proxies, and switched to a new account after reaching limits or having the previous one blocked.
The Perplexity Computer platform combined data from dozens of accounts and identified common indicators: source IP addresses, temporary email domains, and callback hosts. Correlating application logs with cloud audit data showed that the requests were part of a single coordinated campaign.
To track the attack infrastructure, the team created a separate workflow in Computer. It was run at regular intervals for more than five days, with information about accounts, IP addresses, and domains passed between iterations.
Methods used by the agent
Against Perplexity, the attacker used six techniques and targeted unauthorized endpoints along with recently registered free accounts. The main areas of activity were:
- testing functions that process user URLs for SSRF vulnerabilities;
- attempting to access AWS metadata services, localhost, and private IP address ranges;
- scanning object storage and API paths;
- enumerating configuration files and other potentially sensitive objects;
- looking for ways to escalate privileges and obtain credentials.
To bypass filters, the agent represented the address 169.254.169.254 in different formats, generated malformed URLs, and used third-party redirects. It also used DNS rebinding domains, including rbndr.us. Outbound connection checks resolved hostnames directly when establishing a connection and blocked requests to local and private addresses.
After some endpoints rejected its requests, the attacker switched to other URL-accepting functions and compared the error messages. This made it possible to test suspected internal hostnames without successfully accessing internal services.
Attempts to access object storage and APIs
Over a 14-hour period, CloudTrail recorded 3,681 failed attempts to access S3 objects. The requests targeted more than 3,300 unique keys and included searches for .env.production, .aws/credentials, and state.tfstate files. The agent also attempted to anonymously retrieve bucket policies and access control lists.
The attacks on web APIs occurred in short, intensive bursts, with peak rates exceeding 200 requests per second. Some SSRF requests and callback requests pointed to the same external server: 185.87.121[.]140. Perplexity scanned the host and found 207 open TCP ports, most of which were running temporary Python HTTP services.
The server contained listeners for experiments involving HTTP redirection, MCP server emulation, JSON-RPC, OAuth registration, and callbacks. Another 29 ports provided unauthenticated Python SimpleHTTP directories.
The open directories contained more than 10,000 files from the attacker’s working directories: probing scripts, handler logs, and extracted resources. They also contained workspaces for active campaigns and data receivers used against two other organizations.
Evidence of attacks on other companies
Analysis of the workspaces showed that the campaigns were launched autonomously using Cairn, an open-source agent framework. It represents a campaign as a graph of facts and tasks stored in graph.yaml. The results of each step, including negative results and script output, became input for subsequent actions.
In one campaign, the agent found OAuth credentials for an active customer in a remote Git history. It then gained administrative control of the workspace, ran code on managed computing resources, reached internal endpoints behind IP allowlists to retrieve permission lists, and seized a stored Git token. The temporary AWS credentials it obtained could not be used to call Bedrock.
In a second campaign, the agent connected to an exposed management API in a demo environment and deployed a persistent command executor. Over 15 hours, it recorded about 1,000 callbacks and gained access to local password stores, Kubernetes secrets, and EC2 role credentials. Attempts to call models through another company’s Bedrock proxy were rejected.
Investigation findings
According to Perplexity, the agent did not gain access to internal services, confidential customer data, or the platform’s secret keys. Outbound URL checks and access controls blocked attempts to reach internal infrastructure and credentials.
During the response, engineers added measures related to the identified attack methods: they blocked the attacker’s DNS services, strengthened network restrictions for internal and AWS metadata components, and tightened access controls at the network edge. Perplexity uses Computer to analyze alerts and monitor application logs.