For about two weeks this fall, something kept knocking on Perplexity’s servers. It signed up for throwaway accounts, fed strange links into features that fetch web pages, guessed tens of thousands of API addresses and swapped IP addresses every time it got blocked. On November 2 it sent roughly 48,000 requests in 13 minutes. There was no human typing those requests. It was an AI agent, running on its own, and it wanted one thing: keys that would let it run frontier AI models on Perplexity’s Amazon Bedrock account.
It didn’t get them. On December 2, Perplexity published a detailed postmortem of the attack, and the most surprising part isn’t how advanced the attacker was. It’s how ordinary the defenses that beat it were. The same campaign did break into two other companies, though, and the details of how it got in should worry anyone who has ever committed a secret to a git repo.
The short version
- Who was hit: Perplexity, plus two unnamed companies called “Company A” and “Company B”
- What it wanted: AWS credentials or tokens able to call two frontier models through Amazon Bedrock
- The tool: Cairn, an open source agent harness, with workers running as CLI coding agents inside a Kali Linux container
- Peak: about 48,000 requests in 13 minutes across 28,000 guessed API routes, more than 200 per second
- Result at Perplexity: no credentials, customer data, internal services or platform secrets accessed
- Result elsewhere: a customer workspace takeover at Company A and a persistent foothold at Company B
How the attack unfolded
The campaign started quietly. Between October 24 and October 28, the attacker created a handful of disposable accounts and did low volume reconnaissance, the kind of traffic that blends in with normal sign ups. Then it opened the throttle.
On November 2, a wave of brand new accounts started hammering Perplexity’s API and pasting suspicious URLs into the features that fetch outside web pages. The first alarm didn’t come from a human analyst. It came from Perplexity Computer, the company’s own agent platform, which it uses to triage logs. The agent noticed that dozens of seemingly unrelated accounts shared source IPs, disposable email domains and callback hosts, grouped them together and flagged the cluster to the security team.
That matters more than it sounds. Each individual account stayed under per-user rate limits, so none of them looked alarming on its own. It was only by connecting them that the campaign became visible. Perplexity then ran a dedicated monitoring workflow on the attacker for more than five days.
What the AI attacker actually tried
None of the techniques were new. What was new was the pace and the persistence. A human red team might try a few hundred variations of an attack in a day. This agent tried tens of thousands, logged what failed, and moved on to the next idea without getting tired or bored.
| Technique | What the agent did | Outcome |
|---|---|---|
| Server-side request forgery | Tricked URL-fetching features into calling the cloud metadata address 169.254.169.254, rewritten in decimal and hex, through redirect chains and DNS rebinding domains | Blocked by outbound URL validation |
| Storage guessing | 3,681 failed S3 lookups across 3,300+ unique keys in 14 hours, hunting files like .env.production, .aws/credentials and state.tfstate | No private objects read |
| API route discovery | Tens of thousands of guessed REST paths | 404 errors across the board |
| Privilege escalation | Poked at organization and admin endpoints | Denied |
| Cross-tenant access | Tried to read other users’ threads and files | Denied |
| Evasion | 40+ disposable email accounts and about 290 residential and cloud proxies by November 4 | Correlated and blocked |
The SSRF attempts are the most interesting technically. The trick is old: if a service fetches a URL on your behalf, you try to make it fetch an internal address instead, such as the cloud metadata endpoint that hands out temporary credentials. Attackers disguise that address in odd number formats or use domains that resolve to a harmless IP the first time and an internal one the second time. Perplexity says its validator resolves the hostname and blocks private destinations at the moment of connection, which is exactly why the rebinding tricks fell flat.
The attacker left its own server wide open
The turning point came on November 4. Perplexity found the attacker’s campaign host sitting on the public internet with 207 open ports, 29 of them serving open directory listings. Inside were more than 10,000 files from the agent’s working directories. In other words, the AI hacker had automated everything except locking its own front door.
Those files let Perplexity reconstruct how Cairn works. The harness organizes a job as a graph of “facts” (things it has observed) and “intents” (tasks it wants to do next), stored in a file called graph.yaml, all driven by a single top-level goal string. Worker agents ran as command-line coding agents inside a Kali Linux container with shell access, network access and a headless browser. When plain curl requests failed, they switched to Playwright. In one logged task, the agent queued 4,328 scans of repository forks looking for leaked secrets.
Why “open source harness” matters: Cairn isn’t a secret nation-state tool. Like the Artex harness that has been turning up in attacks for weeks, it’s software anyone can download and point at a coding model. On December 1, CISA said federal agencies had been hit in numerous attacks using Artex and other AI hacking agents. The barrier to running a tireless, multi-week intrusion campaign is now close to zero.
Where it got in: Company A and Company B
The exposed files also showed that Perplexity wasn’t the only target, and that the others fared worse. Perplexity says it notified both companies’ security teams “while the operations were still underway.”
Company A
The agent found a live customer OAuth credential in deleted git history and used it to take admin control of that customer’s workspace. It ran code on managed compute, reached internal endpoints behind IP allowlists, grabbed a stored Git token and obtained short-lived AWS credentials. Those lacked Bedrock permissions. The task graph shows 277 tasks, up to 14 running at once, over 19.5 hours.
Company B
The agent logged into an exposed management API on a demo environment, installed a persistent command runner and collected local password stores, Kubernetes secrets and EC2 instance-role credentials. Its attempts to call models through Company B’s Bedrock proxy were rejected.
Notice the pattern. Neither break-in used an exotic zero-day. One started with a secret that someone thought they had deleted, and the other with a demo environment nobody was watching closely. These are exactly the kinds of loose ends that humans forget and an agent with infinite patience will eventually find. We saw a similar chain last month when a single stolen AI API key let attackers backdoor a Claude Code extension.
Perplexity adds some honest caveats. Part of what it knows comes from the coding agent’s own compressed notes, it didn’t test the recovered credentials against anyone else’s systems, and it probably saw only one slice of a larger operation.
Why AI model keys are the new prize
It’s worth pausing on the goal. The attacker didn’t go after customer databases or payment data first. It wanted credentials that could “invoke” two specific frontier models, which Perplexity redacted in its report. A recovered operator prompt reportedly insisted the stolen keys had to work with those exact models and told the agent to sweep across AWS regions.
Access to top models is expensive and rate limited, and in some countries it’s restricted altogether. A working Bedrock key is a way to get that compute for free, on someone else’s bill, without identity checks or usage policies tied to the attacker. It also means the attack can feed itself: stolen model access can power the next round of autonomous agents. Bill Gates predicted in October that the next year of AI would belong to hackers rather than rogue robots, and this campaign looks a lot like what he meant.
What actually stopped it
Perplexity’s own summary is five words long: “Strong baseline controls stopped it.” Look at the list of defenses that held and almost none of it is cutting edge:
- URL validation at connection time, so the fetch features could never reach private or metadata addresses
- Proper authorization checks on admin and cross-tenant endpoints
- No secrets sitting in guessable storage paths
- Cloud audit logs (CloudTrail) to prove nothing was read, rather than trusting application 404s
- AI-assisted correlation to spot a swarm of low-volume accounts acting as one
That last item is the only genuinely new piece, and it’s a fair point. If attackers are going to run agents that never sleep, defenders will need agents of their own to keep up with the triage. Perplexity’s broader advice is to run autonomous agents against your own code and public surfaces first, so you find the leaked secrets and forgotten endpoints before someone else’s agent does.
A quick checklist for teams running AI in the cloud
If you build on Bedrock or any other hosted model service, a few commands go a long way. Force IMDSv2 on EC2 so a simple SSRF can’t pull instance credentials, and scan your full git history, not just the current branch, for secrets:
# Require session tokens for the instance metadata service (blocks basic SSRF credential theft)
aws ec2 modify-instance-metadata-options \
--instance-id i-0123456789abcdef0 \
--http-tokens required --http-endpoint enabled
# Scan every commit, including "deleted" history, for leaked keys
gitleaks detect --source . --log-opts="--all"Beyond that, scope IAM roles so the credentials on any single workload can’t call Bedrock unless they truly need to (Company A’s stolen AWS credentials failed for exactly this reason), rotate any key that has ever touched a repo, and shut down or lock away demo environments. Finally, alert on clusters of new accounts that share infrastructure, not just on single accounts that break rate limits.
Bottom line: The Cairn campaign is a preview of what security teams will deal with constantly: attacks that run for weeks at hundreds of requests per second, adapt to every block and cost the attacker almost nothing. The good news from Perplexity’s report is that the fundamentals still work. The bad news is in Company A and Company B’s columns. An AI agent will find the one secret you forgot about, so the time to go looking for it yourself is now.
About this article: GeekBlog covers U.S. technology news, AI, phones, smartwatches and gaming. Every story is written and checked under our Editorial Policy. Spotted a mistake or have a story tip? Contact our editors.

