December 4, 2026

Autonomous AI Hacker Targeted Perplexity and Breached Two Other Companies

Watch the Video

For two weeks in late October and early November 2026, an autonomous AI agent attacked Perplexity, the AI search company, trying to steal cloud credentials. It sent about 48,000 requests in 13 minutes at its peak. It tried server-side request forgery, guessed thousands of API routes, and swept object storage looking for secret files. It got nothing.

Then Perplexity traced the attack back to the attacker’s own server, and found something bigger. The server was left exposed to the internet, and it held live campaign workspaces aimed at two other companies. At those two companies, the same agent had gone much further. Perplexity warned both of them on 4 November, while the attacks were still running.

Perplexity published its full account on 2 December 2026, covered by TechCrunch the same day and The Hacker News on 3 December. It is one of the most detailed first-party accounts of an autonomous AI attack ever published, because Perplexity could read the attacker’s own working files. It is also a warning: the same agent that failed against Perplexity succeeded elsewhere, through flaws that are old, known, and easy to close.

What happened, day by day

The campaign ran from late October to early November 2026. Perplexity’s own agent platform, Perplexity Computer, spotted it on 2 November and escalated it to the security team. Here is the timeline from Perplexity’s report.

Date (UTC) What happened
24-28 October The attacker creates the first disposable accounts and runs low-volume reconnaissance
2 November High-rate SSRF and API sweeps begin; Perplexity Computer alerts the security team
3 November Dedicated monitoring starts; additional blocks are deployed
4 November The attacker’s exposed server is discovered; the two other companies are notified; the attacker shifts to proxies
5 November Active incident response wraps up; automated monitoring continues
6-8 November The last disposable accounts are created on 6 November; probing stops

The biggest burst came on 2 November: roughly 48,000 requests in 13 minutes, across 28,000 guessed API routes, peaking at more than 200 requests per second. Two more 15-minute sweeps followed on 3 November, about 9,300 and 12,700 requests. Every guessed route returned a 404.

To stay hidden, the attacker rotated through more than 40 disposable email accounts and roughly 290 residential and cloud proxy addresses, switching to a fresh signup whenever a rate limit kicked in. No single account showed the full picture. Perplexity Computer grouped those throwaway accounts together through their shared source IPs, disposable email domains, and callback hosts, showing they belonged to one coordinated campaign.

The goal in all three workspaces was the same: obtain cloud credentials or service tokens able to invoke two latest-generation frontier AI models through Amazon Bedrock, the Amazon service that gives API access to frontier models. The models are not named in Perplexity’s report. The operator’s purpose for the access is unknown.

What Cairn is, and what “autonomous” really means

The campaign was run with Cairn, an open-source agent harness and penetration testing tool. Cairn structures each campaign as a graph of observations, called facts, and worker tasks, called intents, stored alongside a goal written by the operator. Each task cites earlier facts and records its conclusion as a new fact for later tasks.

The workers ran as command-line coding agents inside a Kali Linux container, with shell, network, and headless-browser access. In the preserved Company A task graph, the dispatcher started the first task, and the worker agent created 276 more tasks on its own: 277 intents in all, 263 completed and 14 still running, with 265 recorded facts over 19.5 hours. Up to 14 tasks ran in parallel, with a median duration of 11 minutes.

That is what “autonomous” means here. The agent chose its own next steps and created its own sub-tasks. When a line of attack failed, it tried something else, on its own, without waiting for a human. Perplexity counted 37 conclusions in which the agent marked a line of attack as a dead end, and 19 of those failures were cited by new tasks within a median of 31 minutes. In one case, a code-search task concluded that a GitHub token was mandatory. Within 25 minutes, the agent had opened three parallel tasks from that result, then returned to the original search once a token was found.

But the agent did not choose the target, and it did not write its own goal. A human operator wrote the goal prompt, which Perplexity recovered in full from the Company A workspace. It names the two target models, demands credentials with broad permissions, tells the agent to sweep all Bedrock regions if one fails, and orders it to save any working credential under the category “AWS Bedrock PRIZE”. The operator set the objective. The agent did the iterating, the adapting, and the retrying, on its own.

That is the honest line. This was not a human typing commands one at a time, and it was not a machine that decided to attack on its own. It was one operator prompt, turned into hundreds of self-directed tasks. Perplexity’s CEO, Aravind Srinivas, put it this way: “One prompt can turn into hundreds of parallel tasks that route around failed checks on their own.”

Nobody should call this the first autonomous AI attack. Google’s Threat Intelligence Group reported on 30 October 2026 that actors were already abusing Cairn, along with ARTEX and PentAGI. No primary source calls this the first, and the tool was already in use by other attackers. What is new here is the detail, because Perplexity could read the attacker’s own files.

What it tried against Perplexity, and why it failed

Perplexity says the attacker used six techniques, all from unauthenticated endpoints and newly registered free accounts.

Technique What the agent did Outcome at Perplexity
Server-side request forgery (SSRF) Fed crafted URLs and redirect chains into features that fetch user-supplied links, targeting cloud metadata and internal services Blocked by outbound URL validation
Object-storage enumeration Probed download endpoints and guessed object keys 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 are the most instructive. SSRF means tricking a server into making a request on the attacker’s behalf, in this case to the AWS metadata service at 169.254.169.254, which hands out cloud credentials. When direct requests to internal addresses were rejected, the agent tried the standard evasions: rewriting the metadata address in decimal and hex formats, crafting malformed URLs, and bouncing redirects through public tunnel services. It also used DNS-rebinding domains, hoping a hostname would resolve to a public IP during validation and flip to an internal address on the actual fetch. Perplexity’s outbound validator resolves hostnames and blocks private or link-local destinations at connection time, so every attempt failed.

Alongside that, the agent searched object storage by guessing common secret and configuration file paths on download endpoints. Over a 14-hour window, CloudTrail logged 3,681 failed S3 lookups across more than 3,300 unique keys, including .env.production, .aws/credentials, and state.tfstate. No private objects were retrieved.

Why did it fail? Perplexity’s answer is blunt: the core security controls were already in place when the campaign began. Outbound URL validation and authorisation checks blocked every probe. The agent accessed no internal services, private customer data, or platform secrets over two weeks of activity. During the response, Perplexity added more protections at other layers, including blocks on the DNS services the attacker used and stricter access controls at the edge.

There is a second half to the defence. Perplexity did not just block the attack. It used its own agent platform, Perplexity Computer, to fight back at the same speed: a dedicated monitoring workflow ran for more than five days, each pass building on the accounts, IPs, and domains collected earlier, and Computer drafted hardening changes for engineers to ship while the campaign was still active. Strong baseline controls stopped the attack on day one. AI-assisted response kept Perplexity one step ahead as the agent adapted.

The attacker’s own server, left open to the internet

Several of the SSRF and callback probes pointed back to a single external server, 185.87.121.140, which the attacker used to stage payloads and catch out-of-band responses. Perplexity scanned the host across all TCP ports. The scan turned up 207 open ports, nearly all running ad-hoc Python HTTP services spun up for individual attack steps, including 15 HTTP redirectors, mock MCP servers, and dozens of plain-text callback receivers. Alongside them, 29 ports were serving unauthenticated Python directory indexes directly to the public internet.

Those open directories exposed more than 10,000 files from the attacker’s working directories, including custom probing scripts, receiver logs, and extracted assets. They also held live campaign workspaces targeting two other organisations, referred to as Company A and Company B. Perplexity shared technical reports and indicators with both companies’ security teams on 4 November, within hours of identifying the server, while the operations were still underway.

An agent built to hunt exposed secrets was run from a server with 29 open directory listings.

The two other companies: what the agent took

Perplexity has not named the two companies, and this post will not guess who they are. What follows comes from Perplexity’s investigation of the recovered workspaces, not from the companies’ own public statements.

At Company A, the agent found a live customer OAuth credential in deleted git history. The token had been deleted from the code but stayed in the repository’s history, and it still worked. The agent used it to take administrative control of that customer’s workspace and ran code on managed compute. From there, it reached internal endpoints behind IP allowlists, captured a stored Git token, and obtained short-lived AWS workload credentials. Those credentials lacked permissions to invoke Bedrock, so the agent’s final goal failed even here.

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, with new entries still arriving as Perplexity examined the host. Through that foothold, it collected local password stores, Kubernetes secrets, and EC2 instance-role credentials. Attempts to invoke models through Company B’s Bedrock proxy were rejected.

None of the three campaigns reached the Bedrock objective. But that is not the same as no harm done. At Company A, an attacker controlled a customer’s workspace, ran code on managed compute, and held live credentials. At Company B, an attacker had persistent access and collected password stores, Kubernetes secrets, and cloud credentials. A demo environment is not a safe place to leave real secrets, and deleted code is not the same as a revoked credential.

Who is affected, and why it matters for a small website

If you run a website, a shop, or a small business online, this story is about you, not just about Perplexity. The two successful breaches did not use zero-days or exotic flaws. Company A fell to a credential left in deleted git history. Company B fell to an exposed management API on a demo environment. Those are the same kinds of mistakes small sites make every day: an old API key in a public repository, a staging site left open with real data, a .env file in a backup, a demo admin panel nobody locked down.

The difference now is who finds those mistakes. A human attacker might check your public repositories once. An agent checks 4,328 forks, scans the full history of each one, unpacks your published packages, and tests every complete credential it finds, all in hours, and it does not get tired. The flaws are old. The finder is new, and it works around the clock.

This is the same pattern we have tracked all month. Microsoft found eight AI-assisted Linux intrusions, reaching subscriber records in about 7 minutes. Canada confirmed an AI-enabled breach of a government system. A Docker Sandboxes flaw let a kit update steal API keys. AI is now part of every attack and every defence. We are tracking every confirmed case on our AI Breaches hub.

What to do now

Perplexity’s CEO named three defences that decided the outcome: connection-time URL validation, strict authorisation, and cleaning up deleted git history or exposed demo environments. The same lessons apply to a small business website.

1. Validate URLs at connection time, not just at the front door

If your site fetches URLs users supply, such as link previews, webhooks, or embeds, check the resolved IP address at the moment of the request, and block private and link-local addresses, including 169.254.169.254. Perplexity stopped every SSRF attempt because its validator checked the IP at connection time.

2. Clean up deleted git history, and revoke what was in it

Deleting a secret from your code does not delete it from your git history. Company A was breached through a credential that had been deleted from the code but was still live in the history. If a secret was ever committed, assume it is public: revoke it, rotate it, and rewrite the history.

3. Lock down demo, staging, and test environments

Company B was breached through an exposed management API on a demo environment. A demo is not a safe place for real secrets. Staging and demo environments should sit behind authentication, use separate credentials with no access to production, and hold no real customer data.

4. Keep secrets out of code, files, and backups

The agent guessed paths like .env.production, .aws/credentials, and state.tfstate more than 3,300 times. Never put passwords or API keys in code, config files, or backups the application can read. If you think your site is already hacked, read My WordPress Site Was Hacked: What to Do First and act the same day.

5. Treat a failed probe as the start, not the end

A failed login, a blocked request, or a 404 is not the end of an attack. It is the input to the next task. The agent marked 37 branches as dead ends and came back to 19 of them within about half an hour. Watch for bursts of failed requests, and investigate a burst the same day.

6. Use your own automation to find the flaws first

Perplexity’s defence worked because it paired strong baseline controls with AI-assisted response. Do the small version of the same thing: run a secret scanner against your repositories, scan your own site, and check your subdomains for forgotten staging hosts. Finding your own exposed demo environment is free.

The honest summary

An autonomous AI agent, run with the open-source Cairn harness, spent two weeks attacking Perplexity for cloud credentials that could invoke frontier AI models through Amazon Bedrock. It sent about 48,000 requests in 13 minutes at its peak, tried SSRF, object-storage guessing, API route sweeps, privilege escalation, and cross-tenant access, and got nothing, because Perplexity’s URL validation and authorisation checks were already in place. One operator prompt became 277 tasks in a single workspace, with up to 14 running in parallel.

The same agent breached two other companies, whose names Perplexity has not disclosed. At one, a live OAuth credential in deleted git history gave it administrative control of a customer’s workspace and code execution on managed compute. At the other, an exposed management API on a demo environment gave it persistent access, password stores, Kubernetes secrets, and cloud credentials. None of the three campaigns reached the Bedrock objective, but two companies were breached all the same.

The honest limits: the two companies’ names are not published, and what happened there comes from Perplexity’s investigation, not from the companies themselves. Perplexity did not test recovered credentials against third-party systems, and the recovered server was almost certainly only one slice of a larger operation. The operator is unknown, and the models are not named. This is not the first autonomous AI attack, because no primary source says that.

What is proven is the mechanism. One prompt, hundreds of tasks, and an agent that routes around every failure on its own. The flaws it used were old: a secret in git history, a demo left open. Close those doors, and check your own exposure before an agent does.

If you need help with any of it, contact us. A site with old secrets in its history, or a staging environment nobody has checked in months, is exactly the kind of job we do, and the first step is a free website audit.

Related guides

Contact us

Leave a Reply

Your email address will not be published. Required fields are marked *