The company Perplexity suffered a large-scale cyberattack by an autonomous hacker AI agent that attempted to steal cloud credentials to access advanced AI models through the Amazon Bedrock service. The company successfully blocked the intrusion, and during the investigation discovered the attacker's exposed server with evidence of successful breaches of two other organizations.

According to Perplexity's report, the attack on its infrastructure began in late October and lasted about two weeks. The intrusion was detected on November 2 with the help of Perplexity's own agent platform Perplexity Computer, which identified suspicious activity by newly registered accounts, BleepingComputer reports.

How the attack took place

The attacker carried out SSRF attacks, attempting to reach AWS metadata services and internal systems. The agent also tried to scan cloud storage in search of confidential files, look for hidden API endpoints, escalate privileges, and gain access to other clients' data.

At its peak, the attack generated about 48,000 requests in 13 minutes (over 200 requests per second), covering 28,000 potential API endpoints. To bypass rate limits and blocking, the agent used more than 40 accounts registered to disposable email addresses, as well as about 290 residential and cloud proxy servers.

Perplexity stated that the existing security mechanisms stopped the attack, so the attacker did not gain access to internal services, private customer data, or the platform's secret keys.

Attacker's mistake and the Cairn tool

Investigating the request routes, the Perplexity security team discovered an external server that the attacker used to deploy malicious tools and collect responses.

"We went looking for copper and found gold: the scan revealed 207 open ports, on almost all of which temporary HTTP services in Python were running, launched for individual stages of the attack," Perplexity said.

Web servers with open directory browsing without authentication were running on 29 of these ports. This gave the specialists access to over 10,000 files belonging to the attacker: custom scripts, action logs, and workspaces of active attacks against two other unnamed companies.

The found files showed that the attacker used Cairn — an open-source penetration testing tool that coordinates AI agents to autonomously perform cybersecurity tasks based on a goal set by the operator.

Scale of the autonomous campaign and breaches of other companies

In all three cases, the main goal of the attacker was cloud keys or service tokens for access to two unnamed latest-generation AI models via Amazon Bedrock (why exactly the hacker needed them is unknown).

First, the agent searched for exposed credentials in public code repositories, Git history, software packages, container images, and applications. When this did not work, it began automatically registering disposable accounts on the target platforms in order to search for keys from the inside. During one of the campaigns, the agent independently created 276 additional subtasks in 19.5 hours, up to 14 of which were executed simultaneously.

According to the files on the server, in the first unnamed company the agent found open credentials, which allowed him to seize administrative control over the client's workspace, penetrate internal systems, and obtain AWS keys. In the second company, he breached a demonstration environment, established persistence in the system, and collected confidential data, including password vaults, Kubernetes secrets, and AWS access keys.

However, none of these intrusions yielded keys with access to the needed AI models in Amazon Bedrock. Perplexity notified both affected organizations on November 4, when the attacks were still ongoing. At the same time, the company cautioned that conclusions about other victims are based on the AI agent's own notes, which may have misinterpreted system responses or exaggerated the scale of the breach.

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