An AI hacker spent two weeks on Perplexity. It left its own notes on an open server
An autonomous agent hunted Perplexity for Amazon Bedrock credentials and got nowhere. Its unlocked staging server showed two other companies weren't so lucky.
One operator wrote one prompt, and software did the rest. For about two weeks starting in late October, an autonomous AI agent probed Perplexity's systems from dozens of throwaway accounts, guessed tens of thousands of web addresses and tried every trick it knew to reach the company's cloud credentials. Perplexity says nothing got through. When its security team traced the attacker back to a server, they found the door open and the agent's own notes inside, including records of break-ins at two other companies.
Perplexity published its postmortem on December 2, and TechCrunch and BleepingComputer covered it the same day. The write-up runs long and gets specific, down to how many tasks the agent spawned in its busiest hour (more than 40).
The shopping list
Perplexity says the objective, the same at all three targets, was to "obtain cloud credentials or service tokens capable of invoking two latest-generation frontier models through Amazon Bedrock," the AWS service that rents out models from several AI labs. The operator's prompt, which Perplexity quotes with the model names redacted, asked for an AWS access key pair or a Bedrock bearer token, with broad permissions preferred, up to full administrator access. Perplexity admits it can't see the motive. The prompt shows the operator "wanted frontier Bedrock access, but not for what purpose."
The agent started quiet. Between October 24 and 28 it created disposable accounts and ran low-volume reconnaissance. On November 2 it switched to volume. At its peak it fired about 48,000 requests in 13 minutes across 28,000 guessed API routes, more than 200 a second. The guessed paths all came back 404.
Most of its effort went into server-side request forgery, an old trick. You ask a web service to fetch a URL on your behalf, then point it somewhere it should never go, like the AWS metadata address that hands out credentials to the machine itself, or localhost, or a private network range. The agent rewrote IP addresses in decimal and hex, sent malformed URLs, bounced through public tunnels and used DNS-rebinding domains that change their answer between checks. Perplexity's outbound URL validation blocked the lot. The agent also ran 3,681 failed lookups against Perplexity's S3 storage over 14 hours, hunting for files named things like .env.production and .aws/credentials.
By November 4 it had cycled through more than 40 disposable-email accounts, with sign-ups automated through GuerrillaMail, and about 290 residential and cloud proxy addresses. Perplexity Computer, the company's own agent platform, flagged the probing in application logs on November 2 and grouped the throwaway accounts by shared IPs, email domains and callback hosts. The first defender to spot this AI attacker was another AI.
The open server
The break came when Perplexity's team ran a full port scan of the attacker's host. It had 207 open ports, most running quick Python web servers: redirectors, mock MCP servers, an OAuth responder. Twenty-nine of those ports served directory listings with no password. Inside sat more than 10,000 files, including scripts, logs and the live workspaces for two other victims that Perplexity calls Company A and Company B. "We went looking for copper and found gold," the company wrote.
Company A's folder kept the agent's full task graph, and it gives you a rare look at an autonomous intruder at work. The harness was Cairn, an open-source agent framework on GitHub that Perplexity says has turned up in other offensive campaigns. Cairn tracks a goal, a list of facts and a list of intents, and its workers ran as command-line coding agents inside a Kali Linux container. Against Company A the agent created 276 follow-on tasks over 19.5 hours and ran up to 14 at once. It marked 37 lines of inquiry as dead ends. When a GitHub search told it a token was required, it opened three parallel tasks within 25 minutes to go and find one. One task queued 4,328 forks of ten public repositories so it could dig through their commit histories.
The digging paid off. According to the agent's notes, it found a live customer OAuth credential in deleted git history at Company A, took admin control of that customer's workspace, ran code on managed compute, reached internal endpoints behind IP allowlists and grabbed a stored Git token. It also got short-lived AWS credentials, though they lacked Bedrock permissions. At Company B it logged into an exposed management API on a demo environment, planted a command runner that called home about 1,000 times over 15 hours, and collected password stores, Kubernetes secrets and EC2 instance credentials. Company B's Bedrock proxy rejected its attempts to call models.
Perplexity says it sent technical reports and indicators to both companies' security teams on November 4, within hours of finding the server. It hasn't named them, and neither have TechCrunch or BleepingComputer. The company is upfront about the limits of its evidence. "Agents can misread responses or overstate partial access," it wrote, and the Company A and B findings come from the agent's compressed notes. Perplexity didn't test the recovered credentials against anyone's systems, and the Cairn control plane ran on a different machine, so the files show one slice of a larger operation.
It doesn't name the model that powered the attacker either. The post calls it an autonomous LLM-driven agent and moves on. The defenses that stopped it at Perplexity were plain ones. "Outbound URL validation and authorization checks blocked every probe," the company wrote. Company A had left a live customer credential in a deleted commit, and an agent with 276 tasks and nobody telling it to stop went and found it. Perplexity's closing line is the one worth pinning above your desk: "We were one of at least three targets."
Sources: Perplexity: How Perplexity defended against an autonomous AI attacker, TechCrunch: Perplexity caught an autonomous AI hacker trying to steal tokens, BleepingComputer: Autonomous AI attack targeted Perplexity to steal cloud credentials.
More from the feed
An AI dented tomorrow's encryption. The NSA says adopt it faster anyway
Anthropic says an unreleased Claude model found a weakness in the math behind post-quantum encryption. Two days later the NSA told America's most sensitive networks to switch to that math sooner.
Google will stop training AI on your searches if you ask. It won't say about the past
A new setting lets you keep your search history without feeding Google's generative AI. It covers your future activity, and Google hasn't said what happens to everything before it.
AI 'unlearning' passed the test. Ask again, and the facts come back
Microsoft and UMass Amherst researchers made an AI model forget, then got the forgotten facts back up to 84% of the time by rewording the question.