Perplexity has disclosed that an autonomous, AI-driven hacking agent spent two weeks attacking its infrastructure in late October and early November, trying to steal cloud credentials that would unlock access to advanced AI models through Amazon Bedrock. Every probe was blocked — but the investigation uncovered evidence that the same attacker had already breached two other companies.

The AI search company published a post-mortem on December 2, calling it one of the first documented cases of a fully autonomous AI agent attacking a major tech company. The attacker was not a person at a keyboard. It was Cairn, an open-source penetration-testing tool that coordinates AI agents to carry out hacking tasks on their own, guided only by a goal set by its operator.

48,000 requests in 13 minutes

The campaign began quietly. Between October 24 and 28, the agent created disposable accounts and ran low-volume reconnaissance against Perplexity's systems. Then, on November 2, it escalated sharply. Perplexity Computer — the company's own AI agent platform — flagged a surge of brand-new accounts sweeping the company's APIs and feeding suspicious URLs into features that fetch content from external links.

At its peak, the attacker fired roughly 48,000 requests in 13 minutes across 28,000 guessed API routes — more than 200 per second. When rate limits or IP blocks kicked in, it rotated infrastructure, burning through 40-plus disposable-email accounts and about 290 proxy addresses by November 4.

It tried six techniques: server-side request forgery aimed at Amazon's cloud metadata service, cloud-storage enumeration, API route discovery, privilege escalation, cross-tenant access tests, and constant evasion. Over one 14-hour window, Perplexity's logs recorded 3,681 failed attempts to guess cloud storage locations, including paths such as .env.production and .aws/credentials — the files where cloud keys are often stored.

The attacker's exposed server told on itself

Perplexity traced the attack to a server the attacker had left exposed online, holding more than 10,000 files across 207 open ports. Inside were live workspaces aimed at two other unnamed companies — referred to only as Company A and Company B — and evidence suggesting both had suffered breaches. Perplexity notified both companies on November 4, while the attacks were under way.

In all three cases, the goal was the same: credentials able to invoke two of the latest frontier AI models through Amazon Bedrock. The workspaces showed the agent mining code repositories, git history, packages, container images and apps for exposed credentials, then testing any it found.

Perplexity cautioned that its conclusions about the other two companies rest on the attacker's recorded observations, which could overstate the breaches. It also said neither intrusion yielded credentials that would have allowed access to the targeted models through Bedrock, and it did not identify the attacker.

AI versus AI is the new normal

For Perplexity itself, the outcome was a clean sheet. Its security controls blocked every probe; the attacker reached no internal services, private customer data or platform secrets. Probing stopped by November 8. "We were one of at least three targets, and after tens of thousands of probing attempts against our systems, the attacker came away with nothing," the company said.

The episode is a milestone all the same. An AI agent planned its own tasks, adapted as it went, and kept attacking for two weeks without human direction — and it was caught, in part, by another AI agent watching the logs. Expect more attacks that never sleep. The defences that held were not exotic: outbound URL validation, authorisation checks, and rate limits. The basics still work — but they must be in place before the agent arrives.