An autonomous AI agent spent two weeks hacking Perplexity — and broke into two other companies along the way
Perplexity says an autonomous AI agent spent two weeks probing its infrastructure for cloud credentials it could use to run frontier models for free. Every attempt against Perplexity failed — but the same agent got much further at two other companies it targeted.
- Who: an autonomous LLM-driven agent running the open-source Cairn harness; the operator behind it is unknown.
- What: a two-week campaign (late October to early November 2026) to steal cloud credentials for invoking two latest-generation frontier models through Amazon Bedrock.
- The peak: November 2 — about 48,000 requests in 13 minutes (over 200 a second) across 28,000 guessed API routes; 3,681 failed S3 lookups; 40+ accounts and roughly 290 proxies.
- The outcome at Perplexity: nothing taken — no internal services, customer data or platform secrets were reached.
- The twist: the attacker’s own server was left exposed, revealing two other targets; at one, the agent took admin control of a customer workspace; at the other, it harvested Kubernetes secrets and EC2 credentials.
- The catch: neither company is named, the two models are unnamed, and all of the telemetry is Perplexity’s own account.

For two weeks in late October and early November, an autonomous AI agent worked its way through Perplexity’s infrastructure looking for a way in. It was not a person at a keyboard. It was a program given a single objective — steal cloud credentials that could invoke frontier AI models through Amazon Bedrock — and left to figure out the rest on its own. Perplexity disclosed the campaign on December 2, and the details are a preview of what automated attacks look like now: tireless, adaptive, and able to run hundreds of tasks in parallel without anyone watching.
Perplexity says every probe against its own systems failed. No internal services, private customer data or platform secrets were reached. But the story does not end there. Tracing the attacker’s traffic led investigators to the attacker’s own server, left wide open to the internet — and inside it, live campaigns against two other companies, where the same agent had pushed much further.
Two weeks of probing#
The campaign began quietly. Between October 24 and 28, the attacker created a handful of disposable accounts and ran low-volume reconnaissance. On November 2, the pace changed: brand-new accounts began sweeping Perplexity’s APIs and feeding suspicious URLs into features that fetch content from user-supplied links. Perplexity’s own agent platform, Computer, flagged the surge and escalated it to the security team.
The peak came that day: roughly 48,000 requests in 13 minutes — more than 200 a second — spread across 28,000 guessed API routes. Two more 15-minute sweeps followed on November 3. Whenever a rate limit or block triggered, the attacker rotated to fresh infrastructure — more than 40 disposable email accounts and roughly 290 proxies by November 4. The probing stopped by November 8.

Six ways in#
Perplexity says the attacker used six techniques, all launched from unauthenticated endpoints and newly registered free accounts. The prize in every case was the same: credentials able to invoke two unnamed, latest-generation frontier models through Bedrock.
| Technique | What it did | Outcome at Perplexity |
|---|---|---|
| Server-side request forgery (SSRF) | Fed crafted URLs and redirect chains at link-fetching features, aiming at cloud metadata and internal services | Blocked by outbound URL validation |
| Object-storage enumeration | Guessed paths for secrets and configuration files | No private objects accessed |
| API route discovery | Swept thousands of candidate REST paths in high-rate bursts | Guessed paths returned 404 |
| Privilege escalation | Probed organisation and administrative permission endpoints | Escalation denied |
| Cross-tenant access | Tested identifiers for other users’ threads, files and workspaces | Unauthorised requests denied |
| Evasion | Rotated disposable accounts, residential and cloud proxies, and callback domains | Activity correlated across rotations |
The SSRF attempts were the most elaborate. When direct requests to internal addresses were rejected, the agent rewrote the AWS metadata address, 169.254.169.254, in decimal and hex formats, used malformed URLs and redirect chains through public tunnel services, and used DNS-rebinding domains — hostnames that resolve to a safe public address during validation, then flip to an internal address on the actual fetch. Perplexity says its outbound validator resolves hostnames and blocks private destinations at connection time, so every attempt failed. CloudTrail also logged 3,681 failed S3 lookups across more than 3,300 unique keys in a 14-hour window.
An agent that routes around failure#
What makes this campaign different from an ordinary automated attack is how the agent behaved when it failed. It ran on Cairn, an open-source agent harness and penetration-testing tool that structures a campaign as a graph of observations — facts — and worker tasks — intents — stored alongside an operator-defined goal. Each task builds on earlier findings and records its conclusions as new facts. Perplexity notes Cairn has recently been observed in other offensive campaigns.
The recovered workspaces show the scale of that autonomy. In the Company A campaign, a single bootstrap task spawned 276 more on its own: 277 intents in all, 263 completed and 14 still running, with 265 recorded facts over 19 and a half hours. Up to 14 tasks ran in parallel, with a median duration of 11 minutes and more than 40 new tasks launched in the busiest hour.
Crucially, dead ends did not stop it. The agent marked 37 conclusions as dead ends — and 19 of those were cited by new tasks within a median of 31 minutes. In one sequence Perplexity describes, a code-search task concluded that GitHub’s code-search API required authentication; within 25 minutes the agent had opened three parallel tasks citing that result — one to find a token, two to mine alternative public sources — then returned to the original search once a token was found. As Perplexity chief executive Aravind Srinivas put it: “Agent harnesses make probing cheap, tireless, and adaptive.”

The server that gave the game away#
Several of the attacker’s probes pointed back to a single external server, which the attacker used to stage payloads and catch out-of-band responses. To inspect the redirector scripts, Perplexity’s team scanned the host across all TCP ports — and found 207 of them open, mostly ad-hoc Python HTTP services spun up for individual attack steps. Twenty-nine ports were serving unauthenticated directory listings straight to the public internet.
Those open directories exposed more than 10,000 files — probing scripts, receiver logs, extracted assets — and live campaign workspaces aimed at two other organisations, which Perplexity calls Company A and Company B. The objective in all three workspaces was identical: obtain cloud credentials or service tokens able to invoke the same two frontier models through Bedrock. Perplexity notified both companies on November 4, while the operations were still under way.
At Company A, the agent found a live customer OAuth credential in deleted git history — the kind of leftover that survives in a repository’s unreachable objects long after the file itself is gone. From there it took administrative control of that customer’s workspace, ran code on managed compute, and captured a stored Git token and short-lived AWS workload credentials that lacked the permissions to invoke Bedrock. At Company B, the agent logged into an exposed management API on a demo environment and deployed a persistent command runner that recorded roughly 1,000 callbacks over 15 hours, collecting local password stores, Kubernetes secrets and EC2 instance-role credentials — though its attempts to invoke models through the company’s Bedrock proxy were rejected. None of the three campaigns reached the Bedrock objective.
The irony is hard to miss: an operation built to exploit other people’s exposed secrets was itself undone by an exposed server. But the deeper point is the one Srinivas draws from it — “One prompt can turn into hundreds of parallel tasks that route around failed checks on their own.” The attacker never got the credentials it wanted from Perplexity. It did not need a human to keep trying.
What to watch#
- Whether the two unnamed companies disclose more. Perplexity has not named them, and neither has said anything publicly.
- Whether Cairn — or tools like it — shows up in more incident reports. The harness is open source and has already been observed in other offensive campaigns.
- Whether the defenses that held become the default. Connection-time URL validation, strict authorization, and cleaning up deleted git history and exposed demo environments are unglamorous controls — and in this case they were the whole difference.
- Whether regulators and model providers treat agent-driven attacks as a distinct category. One prompt now buys a two-week campaign; the cost of trying again is close to zero.
The campaign failed at Perplexity and fell short of its objective everywhere else. That is the good news. The bad news is how little it took to run: one prompt, one open-source harness, and two weeks of unattended effort. The defenses that stopped it are not new. They just have to actually be in place.
Sources: Perplexity, “How Perplexity defended against an autonomous AI attacker” (December 2, 2026); The Hacker News, “Autonomous AI Hacker Targets Perplexity, Reportedly Breaches Two Other Companies” (December 3, 2026); Help Net Security, “AI agent that failed to breach Perplexity compromised two other companies” (December 3, 2026); TechReport, “How an autonomous AI hacking agent ran 277 tasks on its own” (December 3, 2026)