
Bot vs. Bot in the Cloud: Perplexity Caught an Autonomous AI Hacker Trying to Steal Tokens
During the first week of November, artificial intelligence search startup Perplexity successfully fought off a relentless, fully automated AI-driven cyberattack aimed at stealing cloud credentials, according to a detailed security postmortem published by the company on Wednesday.
In broad strokes, the intrusion followed a familiar offensive playbook, though executed at machine speed. The autonomous attacker spent several days quietly hunting for leaked credentials before hammering Perplexity’s servers with rapid-fire privilege escalation attempts. Its primary goal was gaining deep enough system access to hijack Perplexity’s Amazon Bedrock account, an Amazon Web Services platform that provides API access to frontier AI models. At its peak on November 2, the campaign fired roughly 48,000 automated requests in just 13 minutes across 28,000 guessed API routes before Perplexity’s own internal AI agent platform, Perplexity Computer, flagged the anomalous traffic to security engineers.
The investigation took a surprising turn when Perplexity’s defenders traced the traffic back to one of the attacker’s command-and-control servers. Whoever set up the offensive infrastructure accidentally left the server publicly exposed on the open internet with 29 unauthenticated directory indexes, handing Perplexity a remarkably complete window into the entire hacking operation.
Inside those more than 10,000 exposed files, Perplexity discovered that the attacker ran the campaign using an open-source offensive agent framework called Cairn. Much like the Artex agent harness that has caused major headaches for corporate security teams in recent weeks, Cairn coordinates autonomous AI coding agents inside Linux containers to plan tasks, test server-side request forgery bypasses, register dozens of disposable email accounts, and pivot around security roadblocks without human operators typing commands.
Even more alarming, the exposed server logs revealed that Perplexity was not the only target. At least two other unnamed organizations, referred to in Perplexity’s report simply as Company A and Company B, were hit by identical autonomous campaigns. Across all three targets, the AI agent hunted relentlessly for AWS keys and bearer tokens capable of invoking two latest-generation frontier AI models through Amazon Bedrock. While Perplexity’s outbound URL validation and access controls blocked every single probe, the recovered logs indicated the agent achieved partial footholds at the other two companies, prompting Perplexity to alert their security teams on November 4 while operations were still active.
Perplexity ultimately stopped the intrusion cold without losing any customer data or internal secrets, yet the postmortem reads like a wake-up call for modern enterprise defenders. Autonomous AI harnesses can now run thousands of adaptive reconnaissance and exploitation tasks around the clock, forcing security officers to rely on defensive AI monitoring just to keep pace with the chaos.







