Ai Agents 6 min read

Perplexity published the attacker's prompt: a Cairn agent ran 276 self-assigned tasks hunting for Bedrock access

An autonomous agent probed Perplexity for two weeks and got nothing, but got inside two other companies. The recovered task graph shows how it handled dead ends, and the goal prompt suggests specific AWS permissions to watch.

On December 2, 2026, Perplexity published a post-mortem of an autonomous agent that probed its systems from October 24 to early November. The agent wanted AWS credentials that could run two frontier models through Amazon Bedrock. Perplexity says its controls blocked every attempt and that no internal services, private customer data or platform secrets were accessed.

The more useful material comes from the attacker’s own server, which was open to the internet. It exposed more than 10,000 files, including the operator’s goal prompt, one full task graph, and evidence that the same operation was inside two other companies. Perplexity calls them Company A and Company B and says it notified both on November 4.

What the probing looked like from the inside

Activity peaked on November 2, when one sweep sent about 48,000 requests in 13 minutes across 28,000 guessed API routes. They returned 404s. Over a separate 14-hour window, CloudTrail logged 3,681 failed S3 lookups for names such as .env.production, .aws/credentials and state.tfstate.

The quieter work targeted features that fetch a user-supplied URL. The agent tried to make them request the AWS metadata address, 169.254.169.254, which can hand out temporary credentials. When direct requests failed, it rewrote the address in decimal and hex, bounced through redirects, and used DNS-rebinding names that can resolve to a public address during validation and an internal one at fetch time.

That last trick defeats validators that check a hostname once and then let the HTTP client resolve it again. Perplexity says its validator resolves hostnames and blocks private and link-local destinations at connection time, which closes that gap.

Per-account rate limits did not stop the campaign. The attacker had used more than 40 disposable-email accounts and roughly 290 proxy addresses by November 4. Detection came from grouping accounts by shared source IPs, email domains and callback hosts. Perplexity credits its own Computer agent with that work, so the post is also a product showcase.

One prompt, then 276 tasks the agent chose itself

The campaign ran on Cairn, an open-source harness that stores an operation as a graph of facts and intended tasks. Its workers were command-line coding agents in a Kali Linux container.

Company A’s graph survived intact. After one bootstrap task, the agent created 276 more over 19.5 hours, running up to 14 in parallel with a median duration of 11 minutes. Of the 277 total, 263 had completed and 14 were still running.

Failure was an input. The agent marked 37 conclusions as dead ends, and new tasks cited 19 of them within a median of 31 minutes. When one task found that GitHub code search needed a token, three parallel tasks followed within 25 minutes: one to find a token, two to mine other public sources. It returned to the original search once it had a token.

It was also thorough in places people rarely check. One task queued 4,328 forks of ten public repositories for full-history scanning and finished 4,281. Others unpacked npm and PyPI releases, container layers, desktop installers and mobile apps.

Where it got in

None of the three campaigns reached the Bedrock goal, but the outcomes were very different.

TargetWhat the agent obtainedWhy it fell short of Bedrock
PerplexityNo victim or platform credentialsRequests blocked or denied
Company AA live customer OAuth credential from deleted git history, admin control of that customer’s workspace, code execution on managed compute, a stored Git token and short-lived AWS credentialsThe AWS credentials lacked permission to invoke Bedrock
Company BAccess through an exposed management API on a demo environment, a persistent command runner, password stores, Kubernetes secrets and EC2 role credentialsPreserved attempts through its Bedrock proxy were rejected

The entry points were a secret someone thought they had deleted and a demo environment. At Company A, least privilege on a workload role was the control that held after several others had failed.

The prompt is a detection guide

The goal prompt asks for an AWS key pair or Bedrock bearer token and prefers broad IAM permissions. It tells the agent to sweep every Bedrock region if the home region fails. It also anticipates a specific obstacle: the primary model needs the account’s data retention mode set to provider_data_share, so a key that hits a retention error needs bedrock:PutAccountDataRetention to change it.

That suggests an unusually specific alert. AWS documentation describes the setting as per-Region and now labels provider_data_share a legacy mode, recommending aws_review for new configurations. Few workloads have a reason to change it. Our reading of the prompt points to four checks:

  • Deny bedrock:PutAccountDataRetention to workload roles, and alert on any attempt to use it.
  • Alert when one identity tries Bedrock calls across many Regions in a short period.
  • Limit bedrock:InvokeModel to roles and models that need it, and restrict unused Regions.
  • Revoke any credential that ever reached a commit. Deleting the file, or the branch, does not revoke the key.

The prompt does not say why the operator wanted the models. Resale is one possibility, since Google has described services that pool and resell model access, but nothing Perplexity published establishes that motive.

CISA had named Cairn two days earlier

On November 30, the US Cybersecurity and Infrastructure Security Agency issued an alert naming ARTEX, Cairn, PentAGI, HexStrike and Cyber Strike AI. It says it has responded to “numerous incidents” involving such frameworks across federal civilian agencies, state and local governments, and critical infrastructure. Federal News Network notes that CISA did not say which agencies were targeted or how many.

CISA’s position is that these tools do not change attackers’ techniques or the vulnerabilities they target. They change speed, scale and the variety of paths tried. Perplexity’s evidence fits: SSRF, leaked keys and exposed admin APIs are all old problems. Amazon’s November report complicates it slightly, because there Cairn agents found an unknown flaw in MONAI Label without being pointed to it.

What the evidence cannot show

This is one company’s account of an attack on itself, and the other two victims are unnamed. Perplexity is candid about the limits. It says the server was almost certainly one slice of a larger operation, with Cairn’s control plane running elsewhere. The details on Companies A and B come partly from the agent’s own compressed notes, and agents can misread responses or overstate access. Perplexity did not test the recovered credentials.

It also does not identify the operator or the model driving the workers. Two things to watch are whether either company discloses its breach, and whether AWS or other targets match the published indicators, which include the server address 185.87.121[.]140.

Get Insanely Good at AI

Get Insanely Good at AI

The book for developers who want to understand how AI actually works. LLMs, prompt engineering, RAG, AI agents, and production systems.

Keep Reading

Ai Agents

ADK Adds Native Live Evaluation for Voice Agents

Learn how to evaluate real-time voice agents in Google ADK with audio simulation, trajectory rubrics, CLI automation, and ADK Web playback.

Ai Agents

Google found exploit_agent: a framework that diffs patches, writes the exploit and fires it with no human involved

GTIG's Q4 2026 AI Threat Tracker reports the first fully automated patch-to-exploit pipeline seen on an attacker's server, plus LLM Mixers reselling stolen model access and a Claude Code settings.json backdoor. What the evidence supports and what to change.

Ai Agents

Switzerland confirms its first AI-agent breaches as Italy's CSIRT maps a six-agent DeepSeek attack harness

Switzerland's NCSC said on November 24 that every AI-agent attack it knows of compromised the victim, including critical infrastructure operators in at least two sectors. A day earlier, Italy's CSIRT published 81 CVEs, ten indicator feeds and the anatomy of the frameworks behind similar campaigns.

Ai Agents

Amazon: a China-linked actor's Cairn agents found a MONAI Label zero-day on their own and went from API map to file write in 11 minutes

Amazon Threat Intelligence says autonomous agents told only to 'obtain shell access' found an unknown path traversal in MONAI Label and got a root shell on a university server. The fix is merged, but no patched release has shipped.

Ai Agents

Cloudflare: 50+ AI pentest frameworks scanned its customers in three days, and traffic is up 30x since October 1

Cloudflare's November 13 report says taking ARTEX offline produced a hydra effect: hundreds of forks, 50+ framework families and a 30x rise in agentic attack traffic. Here is what the data shows, what it leaves out, and what a stolen CI/CD token looked like in one incident.