⌁AI·CYBER·BRIEF▌
AI ThreatsEdited by Liviu Marica13 min read

Perplexity held off a Cairn AI attack agent — its leaky server shows the same agent breached two other firms

Perplexity's post-mortem: a Cairn-run AI agent hunting Bedrock credentials got nothing from it, but got in at two other firms via a git-history secret and a demo API.

An AI agent run through the open-source Cairn framework spent late October and early November 2026 trying to pull cloud and AI-service credentials out of Perplexity, peaking at roughly 48,000 requests in 13 minutes. It got nothing. Perplexity says the reason is ordinary controls that were already in place: outbound URL validation that checks addresses at connection time, and strict authorization. The more troubling part is what Perplexity found on the attacker's exposed server: the same agent, given the same goal, did get in at two other companies — one through a live credential left in deleted git history, the other through an exposed management API on a demo environment.

The short version

Perplexity runs an AI search and agent platform with features that fetch web links on a user's behalf. Features like that are a classic target for server-side request forgery (SSRF): you hand the server a URL that points back inside the provider's own network — for example at the cloud "metadata" address that hands out temporary credentials — and hope the server fetches it for you.

On December 2, 2026, Perplexity published a detailed account of an autonomous, LLM-driven agent that did exactly this, at machine speed, from dozens of throwaway accounts and hundreds of proxy addresses. It also guessed tens of thousands of API paths and thousands of file names in cloud storage. Every attempt failed.

Then Perplexity followed the attacker's callbacks to a server that was itself wide open: 29 ports served public directory listings with more than 10,000 files. Inside were the agent's working notes for three campaigns — Perplexity and two unnamed companies — all with the same stated objective: get credentials that can call two frontier models on Amazon Bedrock. At the other two companies, the agent's own records show real access. Perplexity notified both on November 4, while the operations were still running.

The lesson is not "AI attackers are unstoppable". It is the opposite, with a twist: basic controls held where they existed, and the agent walked straight through where they didn't — a forgotten secret in git history, a demo environment with an exposed admin API. An agent simply finds those gaps faster and more patiently than a person would.

Timeline

All dates 2026, UTC, from Perplexity's published campaign timeline unless noted.

  • October 24–28 — First disposable accounts created on Perplexity; low-volume reconnaissance.
  • November 2 — High-rate SSRF and API sweeps begin, peaking at about 48,000 requests in 13 minutes. Perplexity Computer, the company's own agent platform, flags the activity in application logs and escalates it to the security team.
  • November 3 — Two further 15-minute sweeps (about 9,300 and 12,700 requests). Perplexity starts a dedicated, recurring Computer monitoring workflow and deploys additional blocks.
  • November 4 — Perplexity discovers the attacker's exposed server; within hours it shares reports and indicators with the two other targeted companies. The attacker shifts to proxies; by this date it had used more than 40 disposable-email accounts and roughly 290 proxy addresses.
  • November 5 — Active incident response ends; automated monitoring continues.
  • November 6–8 — Last disposable accounts created on November 6; probing stops.
  • December 2 — Perplexity publishes its write-up, with indicators of compromise.
  • December 2–3 — Coverage by BleepingComputer, Help Net Security and The Hacker News.

What we know

From Perplexity's report (December 2, 2026; no individual byline on the page):

  • The attacker used "an autonomous LLM-driven agent" to harvest cloud and AI-service credentials. Perplexity does not name the model behind it, the operator, or a country. It describes the workers only as "CLI coding agents" running in a Kali Linux container.
  • The agent tried six things from unauthenticated endpoints and new free accounts: SSRF, object-storage enumeration, API route discovery, privilege escalation, cross-tenant access, and evasion through rotating accounts and proxies. Perplexity says "Outbound URL validation and authorization checks blocked every probe," and that the attacker reached no internal service, private customer data or platform secret.
  • On SSRF, after direct internal requests were refused the agent tried alternative encodings of the cloud metadata address, malformed URLs, redirects through public tunnels and DNS-rebinding domains. Perplexity's explanation of why all of it failed: its validator "resolves hostnames and blocks private or link-local destinations at connection time."
  • On storage, CloudTrail logged 3,681 failed S3 lookups across more than 3,300 unique file names over 14 hours — names such as .env.production, .aws/credentials and Terraform state files. No private object was read.
  • The largest API sweep covered about 28,000 guessed routes, "peaking at over 200 requests per second"; the guesses returned 404s.
  • The attacker's server (Perplexity publishes the IP) had 207 open ports: HTTP redirectors for SSRF attempts, mock MCP servers, an OAuth registration responder, dozens of callback receivers, and 29 unauthenticated directory listings holding more than 10,000 files, including live workspaces for "Company A" and "Company B".
  • The harness was Cairn, which Perplexity calls an open-source agent harness "recently observed in other offensive campaigns". Cairn keeps each campaign as a graph of facts and intents around an operator goal.
  • All three workspaces had the same goal: credentials or service tokens able to invoke "two latest-generation frontier models" through Amazon Bedrock. Perplexity quotes Company A's goal prompt with model names replaced by placeholders. It tells the agent to prefer broad IAM permissions and to sweep all Bedrock regions.
  • In Company A's preserved graph the agent started from one bootstrap task and created 276 further tasks itself over 19.5 hours (277 intents, 265 facts), with up to 14 running in parallel and a median task time of 11 minutes. It marked 37 conclusions as "dead end"; 19 of those were picked up again by new tasks, after a median of 31 minutes. One task queued 4,328 forks of ten public repositories for secret scanning.
  • Company A: the agent found a live customer OAuth credential in deleted git history, took admin control of that customer's workspace, ran code on managed compute, reached internal endpoints behind IP allowlists, captured a stored Git token and obtained short-lived AWS workload credentials — which lacked Bedrock permissions.
  • Company B: the agent logged in to an exposed management API on a demo environment and deployed a persistent command runner that called back roughly 1,000 times over 15 hours. It collected password stores, Kubernetes secrets and EC2 instance-role credentials. Its attempts to call models through Company B's Bedrock proxy were rejected.
  • Perplexity's own caveats: the server was "almost certainly only one slice" of a larger operation; only Company A's full task graph survived; the Company A and B picture rests on the agent's own compressed notes, and "Agents can misread responses or overstate partial access"; and "we did not test recovered credentials against third-party systems." The prompt shows the operator wanted frontier Bedrock access, "but not for what purpose."

Attributed elsewhere: The Hacker News attributes several lines to Perplexity CEO Aravind Srinivas, including "Against Perplexity, the agent came away with nothing" and "One prompt can turn into hundreds of parallel tasks that route around failed checks on their own." We have not read the underlying X post. None of the three outlets names Company A or B, and none carries a statement from either.

Technical analysis

Why Perplexity held. The decisive control is a detail most SSRF defences get wrong. Many filters check the URL string — does it look like an internal address? — and then let the HTTP library resolve and connect separately. That leaves room for alternative number formats, redirects and DNS rebinding, where a name resolves to a harmless address when checked and to an internal one when the connection is made. Perplexity says its validator resolves the name and blocks private and link-local destinations at connection time. That closes the gap between check and use, and it explains why every bypass the agent tried failed in the same way. The rest was plain hygiene: no secrets in readable storage, authorization checks that denied escalation and cross-tenant reads, and API routes that didn't exist where the agent guessed.

Why the agent mattered anyway. Nothing in the attack chain is new. SSRF, bucket guessing, git-history secret mining, certificate-transparency recon, signup abuse — all old techniques. What the recovered task graph shows is the operating model. One goal prompt became 277 tasks, run up to 14 at a time, around the clock. Failures became inputs: 19 of 37 "dead ends" were revisited, typically within half an hour. When a plain command-line HTTP client was blocked, the agent switched to a scripted real browser behind an intercepting proxy. When rate limits bit, it signed up again with another disposable inbox. A human operator could do each of these steps; very few would keep all of them going in parallel for two weeks, against three targets, without fatigue.

Our assessment: the two successful intrusions are the real story. Neither needed a novel exploit. Company A was undone by a credential that someone had "deleted" from a repository but not revoked — git history keeps it, and the agent was explicitly mining history. Company B was undone by a demo environment with an exposed management interface and real cloud role credentials on it. These are exactly the "conventional root weaknesses" that national CERTs have been listing all autumn. Agents don't create them; they find them faster and at greater scale.

The AI-specific angle is the target, not just the tool. The objective was not data theft or ransomware but access to frontier models on Bedrock, with a preference for broad IAM rights across all regions. That fits the LLMjacking pattern this site has tracked: stolen cloud credentials resold or used to run expensive models on someone else's bill — and, for an operator running an attack agent, possibly to power the agent itself. Perplexity explicitly says it does not know the purpose, so this remains a hypothesis. One detail in the quoted prompt is worth noting: it says one target model requires the account's data-retention mode to allow sharing with the provider. The operator had studied the target model's account requirements, not just "any key".

The attacker's own opsec failed in a familiar way. The server running SSRF redirectors and callback receivers also served its working directories without authentication. Agent harnesses produce large amounts of state — prompts, graphs, logs, extracted secrets — and someone has to secure it. Here no one did, and that is the only reason defenders can see the full chain. It also echoes the JFrog case where an agent leaked its own operator.

Detection. Perplexity credits its own agent product, Computer, with flagging the November 2 wave and with clustering throwaway accounts by shared IPs, disposable email domains and callback hosts. The underlying signals — many new accounts, the same disposable domains, link-fetch features fed internal-looking URLs — are ones a conventional SIEM rule could also catch. Okta has reported that attack agents converge on the same disposable inbox services. Perplexity's added blocks, by its own account, targeted the DNS services used for rebinding and tightened network restrictions around metadata destinations.

What remains unclear

  • Who the operator is. Perplexity names no actor or country and does not attribute the activity. Neither do we.
  • Which model drove the agent, and which two Bedrock models were the target. Perplexity withholds the target names; the driving model is never identified.
  • Who Companies A and B are, whether they confirmed the intrusions, and whether Company A's customer — whose workspace was taken over — has been told. Perplexity reports no response from either company, and the access picture rests on the agent's own notes, which Perplexity itself says may overstate success.
  • Whether AWS, law enforcement or the Cairn maintainers were informed. The report does not mention any of them.
  • How long the probing lasted. The timeline says probing stopped between November 6 and 8; the caption of Figure 1 covers October 24 to November 7. The hourly request volumes exist only in that chart, not in the text, so we do not report them.
  • The vendor angle. The write-up doubles as a showcase for Perplexity Computer, a commercial product. That does not make the numbers wrong — they are specific and internally consistent — but the claim that Computer was decisive comes from the vendor alone, with no independent review.
  • Scale. Perplexity calls itself "one of at least three targets" and its view "one slice". Other workspaces and worker hosts lived elsewhere.

Lessons and what to do

For security teams

  1. Test your SSRF defence against rebinding, not just bad strings. Any feature that fetches a user-supplied URL — link previews, webhooks, importers, AI "browse" tools — should resolve and check the destination at connection time, block private, link-local and metadata ranges, and re-check after redirects. Enforce IMDSv2 or the equivalent on every cloud workload.
  2. Rotate, don't just delete. A secret removed from a repository is still in its history and in every fork. Scan full history, revoke anything found, and treat old forks of your public repos as exposed.
  3. Inventory demo, staging and "-testing" environments. The agent enumerated those naming variants on purpose. Demo environments should not hold real cloud role credentials or expose management APIs to the internet.
  4. Watch signup patterns. Bursts of new free accounts from disposable domains, feeding internal-looking URLs into fetch features, are a strong early signal. Perplexity has published IPs, email domains, rebinding patterns and a TLS profile; check them against your logs.
  5. Alert on storage guessing. Thousands of failed S3 GetObject calls for names like .env or credentials in CloudTrail are noisy and easy to detect — if someone is looking.

For AI builders and platform teams

  • If your product hands out access to expensive models, your cloud credentials are the prize. Scope Bedrock and similar permissions to specific models and regions, alert on model-invocation calls from new principals, and keep model-access roles away from general workloads.
  • If you ship agents that fetch URLs, you ship an SSRF surface. Put the destination check in the network layer, not in the prompt.

For leadership

  • The cost of probing has fallen to almost nothing; the cost of a forgotten credential has not. Budget for the unglamorous work — secret scanning and rotation, environment inventory, egress controls — before buying AI-for-defence tools.
  • Agree in advance what you will do when someone else's investigation tells you you've been breached. Here, the first notice for two companies came from a third party that found their data on an attacker's server.

Related on AI Cyber Brief: Google on attack agents that turn patches into exploits · Amazon: Cairn agents found a MONAI Label zero-day · Amazon: AI agents raided LiteLLM, Dify and Ollama servers for API keys · Microsoft on CyberStrikeAI in an ISP intrusion.

Sources

Coverage:

Get the daily brief

AI + security signal by email: headlines, a two-line summary, a link. No noise, no spam.

How often