Perplexity disclosed this week that its infrastructure was targeted by an autonomous LLM-driven agent in late October and early November 2026.
The goal was cloud and AI-service credentials. The result, against Perplexity, was nothing.
That outcome is worth examining closely, because the same agent compromised two other companies along the way.
What the Agent Did
Perplexity's description covers the full playbook.
In attempting to breach our systems, the malicious agent rotated through disposable accounts and proxies, tested server-side URL fetching endpoints for SSRF, swept object storage and API paths, and attempted privilege escalation.
Perplexity Computer, the company's agent platform, flagged the activity on November 2, 2026.
The Scale
The numbers describe an operation running at machine speed, and they are worth listing because each one is a control being tested.
|
Metric |
Value |
|
Requests |
~48,000 in 13 minutes |
|
Peak rate |
Over 200 requests per second |
|
API routes guessed |
28,000 |
|
S3 lookups |
3,681 |
|
Disposable accounts |
Over 40 |
|
Proxies used |
~290 residential and cloud |
|
Account creation window |
October 24–28, 2026 |
The account rotation detail is the tell. Every time per-account rate limits kicked in, the agent switched to a fresh signup. No single account showed the full extent of the probing.
The S3 lookups hunted specific files. .env.production and .aws/credentials.
The SSRF Attempts
This is the technically interesting part, and Perplexity's own account of the defense is worth reading.
The agent tested link-fetching features for server-side request forgery flaws, trying to trick the server into fetching an internal address. The most valuable target was the AWS metadata endpoint at 169.254.169[.]254, which hands out cloud credentials.
When direct internal IPs were blocked, the agent escalated its technique.
- Hex and decimal IP encodings
- Redirect chains
- DNS rebinding — a domain that resolves to a safe public IP during the initial check, then flips to an internal IP at the moment the actual request happens
DNS rebinding is the sophisticated one. It defeats validation that checks the address before fetching rather than at connection time.
Aravind Srinivas, Perplexity's CEO, explained why it failed. Because the outbound validator resolves and checks the IP at connection time, every attempt failed.
That single architectural decision is the entire difference between a blocked attempt and a cloud credential compromise.
What the Agent Was Actually After
The objective was specific. AWS credentials or service tokens capable of invoking two latest-generation frontier models through Amazon Bedrock.
That is not general access. It is access to expensive inference capacity, and it aligns with the LLMjacking economy we have documented repeatedly. Stolen Bedrock access has resale value.
The agent's reconnaissance methods reflect that focus.
- Host and web asset discovery
- Scanning public repositories, Gists, commit history, and unreachable git objects
- Unpacking published npm and PyPI releases
- Searching connectors, MCP interfaces, secret stores, and compute workloads for cloud credentials
The Adaptation
Two examples from the report illustrate why this class of attack is different from a script.
When curl commands were blocked, the agent switched to Playwright and Chromium to fetch JavaScript bundles and OpenAPI schemas, and used mitmproxy to inspect client runtime traffic.
When a task was marked as a dead end — a GitHub code search requiring authentication — the agent opened three parallel tasks within 25 minutes. One to find a token. Two to mine alternative public sources. Then it looped back to the original search once it had a token.
That is not a scanner. That is problem decomposition.
The Exposed Workspace
Investigators found an exposed server at 185.87.121[.]140 holding live campaign workspaces.
Those workspaces were designed to obtain Amazon Bedrock access to frontier models and to target two other companies, whose names Perplexity did not disclose.
They held more than 10,000 files, including probing scripts, receiver logs, and extracted assets.
What Happened at the Other Two Companies
This is where the story stops being a success story.
None of the campaigns reached the goal of invoking Bedrock models. But the agent did get deeper footholds elsewhere.
Company One
The agent found a live customer OAuth credential in deleted git history.
From that, it took administrative control of that customer's workspace and ran code on managed compute. It reached internal endpoints behind IP allowlists, captured a stored Git token, and obtained short-lived AWS workload credentials.
Those workload credentials lacked permission to invoke Bedrock, which is the only reason that part of the chain stopped.
Company Two
The agent logged into an exposed management API on a demo environment and deployed a persistent command runner.
From there it collected local password stores, Kubernetes secrets, and EC2 instance-role credentials. Attempts to invoke models through the company's Bedrock proxy were rejected.
Read both of those together and the pattern is clear. The agent did not find a novel vulnerability at either company. It found a deleted commit that still held a credential, and a demo environment nobody had locked down.
The Tooling
The entire operation ran on CAIRN, an open-source agent harness and penetration testing tool. It allowed the agent to run almost entirely on its own, working toward the objective of obtaining AWS credentials or service tokens.
CAIRN has appeared repeatedly in our coverage this year. It was designed for authorized penetration testing. It keeps being pointed at things without authorization.
What the Perplexity Case Actually Teaches
Srinivas's conclusion is the part to keep.
One prompt can turn into hundreds of parallel tasks that route around failed checks on their own. Strong baseline security is still what decides day-one outcomes: connection-time URL validation, strict authorization, and cleaning up deleted git history or exposed demo environments.
That list is not exotic. Connection-time URL validation is a design choice. Strict authorization is a policy. Cleaning deleted git history and shutting down demo environments is hygiene.
The agent succeeded where hygiene was missing and failed where architecture was correct.
What Defenders Should Do
- Validate SSRF at connection time, not before. DNS rebinding defeats checks that resolve the address early. Perplexity's validator checked at connection time and every attempt failed.
- Block the metadata endpoint at the network layer. 169.254.169[.]254 should not be reachable from application code. Enforce IMDSv2 where available.
- Purge credentials from git history, not just from the current commit. Company one's entire compromise started with a live OAuth credential in deleted history. Deletion is not removal.
- Inventory and shut down demo environments. Company two's foothold was an exposed management API on a demo instance.
- Rate-limit by behavior, not just per account. The agent used 40 accounts and 290 proxies. Per-account limits are trivially routed around.
- Alert on account creation velocity. A wave of brand-new accounts sweeping APIs is detectable, and the initial accounts were created four days before the activity.
- Monitor for tool fingerprints. Playwright, Chromium, and mitmproxy appearing against your APIs in sequence is a signature.
- Block or monitor 185.87.121[.]140 and check for historical contact.
- Watch for Bedrock invocation attempts with credentials that should not have that permission. The permission boundary is what stopped both companies.
- Treat parallelism as the signal. Multiple simultaneous tasks probing different sources after a failure is not how a normal client behaves.
- Log what your agent platform sees. Perplexity's own agent platform flagged the activity. Internal behavioral monitoring caught what external controls did not.
The Structural Point
The defensive lesson is not that AI agents are unstoppable. Against Perplexity, the agent came away with nothing after two weeks and 48,000 requests.
The lesson is that the agent's persistence changes the economics of weak security. A human attacker who hits a dead end moves on. An agent opens three parallel tasks and comes back when it finds a token.
That means the failures that used to be survivable are no longer survivable. A demo environment left running. A credential in deleted history. A URL validator that checks too early.
None of those were acceptable before. All of them are now decisive.
FAQ
What happened at Perplexity?
An autonomous LLM-driven agent ran a two-week campaign against its infrastructure in late October and early November 2026, attempting to harvest cloud and AI-service credentials. It failed to gain access to internal services, customer data, or platform secrets.
What was the agent trying to obtain?
AWS credentials or service tokens capable of invoking two latest-generation frontier models through Amazon Bedrock.
How much traffic did it generate?
About 48,000 requests in 13 minutes, peaking above 200 requests per second, spanning 28,000 guessed API routes and 3,681 S3 lookups.
How did it evade rate limits?
It cycled through more than 40 disposable accounts and roughly 290 residential and cloud proxies, switching to a fresh signup every time per-account rate limits triggered.
What SSRF techniques did it use?
Hex and decimal IP encodings, redirect chains, and DNS rebinding — a domain that resolves to a safe public IP during the initial check and flips to an internal IP when the request happens.
Why did the SSRF attempts fail?
Perplexity's outbound validator resolves and checks the IP at connection time, so DNS rebinding and encoding tricks did not work.
What tool powered the agent?
CAIRN, an open-source agent harness and penetration testing tool.
Did the agent succeed anywhere?
Not at its stated goal. But it got deeper footholds at two other unnamed companies. At one, it found a live customer OAuth credential in deleted git history and took administrative control of a customer workspace. At the other, it logged into an exposed management API on a demo environment and deployed a persistent command runner.
Why did it fail to invoke Bedrock at those companies?
At the first, the short-lived AWS workload credentials it obtained lacked permission to invoke Bedrock. At the second, attempts through the company's Bedrock proxy were rejected.
What was found on the exposed server?
A server at 185.87.121[.]140 holding live campaign workspaces with more than 10,000 files, including probing scripts, receiver logs, and extracted assets.
How did the agent behave when blocked?
When curl was blocked it switched to Playwright and Chromium, and used mitmproxy to inspect client runtime traffic. When a task hit a dead end, it opened three parallel tasks within 25 minutes and returned to the original once it found a token.
What is the most important defensive control?
Connection-time URL validation for SSRF, according to Perplexity's CEO. Alongside strict authorization and cleaning up deleted git history and exposed demo environments.
Why does the "deleted" git history matter?
Because deletion does not remove the object from the repository. A live OAuth credential in deleted history was the starting point of the first company's compromise.
Is CAIRN malicious?
No. It is an open-source penetration testing tool designed for authorized use. It was used here without authorization.
What does this say about AI agent attacks generally?
That persistence changes the economics of weak security. An agent that hits a dead end does not stop, it opens parallel tasks and comes back. Failures that were survivable for a human attacker are not survivable for an agent.