Autonomous AI attack targeted Perplexity to steal cloud credentials

by · BleepingComputer

Perplexity was targeted by an autonomous AI hacking agent in an unsuccessful attempt to steal cloud credentials that would provide access to advanced AI models through Amazon Bedrock.

Amazon Bedrock is an AWS service that provides API access to AI models from Amazon and other AI companies.

While Perplexity successfully blocked the attacks, its investigation uncovered an exposed server operated by the attacker that showed evidence of successful breaches at two other unnamed companies.

In a report published today, Perplexity says the attacks against its infrastructure began in late October and continued for approximately two weeks.

The attacks were detected on November 2 by Perplexity Computer, the company's AI agent platform, which identified newly registered accounts probing APIs and features that retrieve content from external URLs.

The attacker conducted server-side request forgery (SSRF) attacks in an attempt to access AWS metadata services and internal systems. The agent also attempted to enumerate cloud storage for sensitive files, discover API endpoints, escalate privileges, and access other customers' data.

At its peak, the attack generated approximately 48,000 requests in 13 minutes, targeting 28,000 potential API endpoints and reaching more than 200 requests per second.

To evade rate limits and blocks, the attacker utilized more than 40 accounts registered with disposable email addresses and approximately 290 residential and cloud proxy IP addresses.

Perplexity says its existing security controls blocked the attacks, preventing access to internal services, private customer data, or platform secrets.

However, while investigating the campaign, the security team discovered that several of the probes pointed to an external server used by the attacker to stage payloads and receive responses.

"We went looking for copper and found gold: the scan turned up 207 open ports, nearly all running ad-hoc Python HTTP services spun up for individual attack steps," explains Perplexity.

Of these ports, 29 exposed web servers with unauthenticated directory listings that allowed access to more more than 10,000 files used by the attacker, including custom scripts, logs, and active attack workspaces targeting two other companies.

The exposed files revealed that the attacker was using Cairn, an open-source penetration testing tool that coordinates AI agents to autonomously perform cybersecurity tasks based on a goal supplied by an operator.

As previously reported by BleepingComputer, threat actors have already abused Cairn to discover and exploit a zero-day vulnerability to gain root access to a server.

Across all three attacks, the objective was to obtain cloud credentials or service tokens capable of accessing two unnamed, latest-generation AI models through Amazon Bedrock.

The AI agent searched public code repositories, Git history, software packages, container images, and applications for exposed credentials.

When these searches failed, the agent registered disposable accounts to gain authenticated access to targeted platforms and search for credentials.

The attacker's files and scripts also showed how the agent can operate independently, changing its approach when encountering roadblocks. In one campaign, the agent created 276 additional tasks over 19.5 hours, with up to 14 running simultaneously.

At one of the other companies, the agent reportedly discovered exposed credentials that allowed it to gain administrative control of a customer's workspace, access internal systems, and obtain AWS credentials.

At the second unnamed company, the agent reportedly breached a demo environment, established persistent access, and collected sensitive data, including password stores, Kubernetes secrets, and AWS credentials.

However, neither intrusion yielded credentials that allowed the attacker to access the targeted AI models through Amazon Bedrock.

Perplexity notified both companies on November 4, while the attacks were still underway.

Perplexity cautions that its findings regarding the other organizations are based on the AI agent's own recorded observations, which could misinterpret responses or overstate the extent of the breaches.

It also remains unclear what the attacker intended to use the AI models for.

"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," concluded Perplexity.

3,000 AI builds later, ask us anything

On December 15th, join Eoin Hinchy, our co-founder and CEO; Martin Moroney, our Head of AI Transformation; and Christina Troy, our Sr. Manager, IT for an open conversation about what worked, what didn't, and what we learned along the way.

Bring your questions and get candid insights!

Register and ask your question