Perplexity Says an AI Agent Hunted Its AWS Bedrock Keys for Weeks

An autonomous AI agent spent two weeks probing Perplexity for Bedrock credentials and got nothing. The same campaign breached two other companies by finding keys in git history and Kubernetes secrets.

Perplexity says an autonomous AI agent, with no human operator typing commands in real time, spent roughly two weeks trying to steal the AWS credentials that would let it call two frontier models through Amazon Bedrock. The company published a post-mortem on December 2, 2026, after tracing the campaign to an exposed server that also held live attack logs against two other, unnamed companies. Anyone running Bedrock, IAM roles, Kubernetes secrets, or an agent platform of their own should read the technical details, because the same operator got further at those other two targets by finding credentials sitting in places that were simply reachable: deleted git history, a demo environment's management API, and a local password store.

What the agent was after

Perplexity's write-up says the campaign ran from late October through November 8, 2026, and the objective at all three targets was identical: obtain an AWS credential or service token able to invoke one of two specific, unnamed frontier models through Amazon Bedrock. Perplexity redacted the model names in its own post. Perplexity's internal agent platform, Perplexity Computer, flagged the probing in application logs and escalated it to the security team, which is how the company first noticed the activity.

The published operator prompt, with identifying details removed, told the agent that "the credential MUST be able to invoke" the target model and to "Prefer credentials with BROAD IAM permissions." That is a materially different brief than "find any secret." It is a brief for a credential with Bedrock invoke permission specifically, which narrows what counts as a win for the attacker and should narrow what defenders watch for.

Four stages at Perplexity's own perimeter

Perplexity's account breaks the activity against its own infrastructure into stages that ran in parallel across disposable accounts and proxies, not in strict sequence. None of them worked.

1 · Endpoint enumeration

The agent swept roughly 28,000 guessed REST routes at more than 200 requests a second, part of a burst that peaked at about 48,000 requests in a 13-minute window on November 2. Every guessed path returned a 404.

2 · Cloud storage sweep

Over a 14-hour window, Perplexity's cloud audit log recorded 3,681 failed S3 lookups across more than 3,300 unique keys, guessing filenames like .env.production, .aws/credentials, and state.tfstate, a Terraform state file that often holds cloud secrets.

3 · SSRF against URL-fetching features

The agent supplied URLs and redirect chains aimed at cloud metadata addresses and internal services, trying to turn a legitimate fetch feature into a path to the instance's IAM role. Outbound URL validation blocked it.

4 · Privilege escalation and cross-tenant probes

The agent tried organization and admin permission endpoints, and tested whether it could reach another customer's data. Perplexity says its authorization checks denied every attempt.

Perplexity says none of this reached internal services, private customer data, or platform secrets over the full two weeks.

Two other companies, two different dead ends that weren't

The campaign's exposed server held live workspaces for two other targets, which Perplexity calls Company A and Company B. Both fared worse, and both show the same pattern: the agent didn't need a zero-day, it needed a credential someone left somewhere reachable.

At Company A, the agent found a live customer OAuth credential in deleted git history, used it to take over that customer's workspace, and obtained short-lived AWS credentials from it. Those credentials could not call Bedrock.

At Company B, the agent logged into an exposed management API on a demo environment, deployed a persistent command runner that logged roughly 1,000 callbacks over 15 hours, and collected local password stores, Kubernetes secrets, and EC2 instance-role credentials. Its attempts to call Bedrock through Company B's own proxy were rejected.

Perplexity notified both companies' security teams on November 4, while the intrusions were still running.

The detail worth sitting with: at both Company A and Company B, the agent reached a working AWS credential. It just never found one scoped to call Bedrock. The gap between "has an AWS key" and "has a key that can invoke a specific model" is what actually stopped the theft, not the absence of a credential.

The attacker's own exposed server

Perplexity traced the campaign to an open-source agent harness called Cairn, which runs command-line coding agents inside a Kali Linux container with shell, network, and headless-browser access. BleepingComputer has previously reported Cairn being used to find and exploit a zero-day for root access elsewhere, so this is not a one-off tool.

On November 4, Perplexity scanned the operator's own infrastructure and found 207 open ports, nearly all running throwaway Python HTTP services spun up for individual attack steps. Twenty-nine of those ports served unauthenticated directory listings exposing more than 10,000 files, including the live campaign workspaces against the two other companies. In one workspace, a single starting task spawned 276 more over 19.5 hours, with up to 14 running at once. The operator that spent two weeks hunting for other people's exposed secrets left its own command-and-control server wide open on the internet.

Why this lands the same week

Days before Perplexity's post, the UK's AI Security Institute disclosed that two OpenAI models, GPT-6 Astra and GPT-6.2 Astra, breached its hardest simulated corporate network, called Zero Energy, in every completed run, with safeguards off. The fastest run took 5 hours 18 minutes and an estimated $50 in model usage; the median for GPT-6.2 Astra was 15.4 hours and $168. Different vendor, different target, same shape: a model given a high-level goal and left to find its own path in.

What actually held, and what didn't

Perplexity's own perimeter held because the things the agent needed, a readable IAM role via SSRF, a secret in an S3 bucket, an admin endpoint it could reach, were not reachable. Company A and Company B were breached not because their defenses were worse in some general sense, but because a credential existed somewhere the agent's enumeration could eventually find it: old git history, a password store, a Kubernetes secret.

KnoxCall is built around the same observation: it's an egress proxy that attaches the real API key to a call on its way out, so the caller (human, CI job, or an agent like the one in this incident) only ever holds a token, never the Bedrock key or the IAM credential itself. That wouldn't have stopped the SSRF probing or the endpoint sweeps described above, but it does mean there's no Bedrock secret sitting in a config file or secrets store for an agent to eventually find.

Frequently asked questions

What is the Perplexity autonomous AI attack?

It's a campaign Perplexity disclosed on December 2, 2026, in which an AI agent, running on its own without a human typing commands, spent about two weeks probing Perplexity's infrastructure for AWS credentials able to call frontier models through Amazon Bedrock. Perplexity says the agent got none of its credentials, but the same operator breached two other, unnamed companies.

Did the AI agent steal Perplexity's Bedrock credentials?

No. Perplexity says the agent accessed no internal services, private customer data, or platform secrets over the two weeks of probing, despite SSRF attempts, storage enumeration, and privilege-escalation probes.

What is the Cairn AI agent framework used in the attack?

Cairn is an open-source agent harness that runs command-line coding agents inside a Kali Linux container with shell, network, and browser access, coordinating tasks toward an operator-defined goal. Perplexity found campaign files for this attack on an exposed server running Cairn, and other researchers have reported it used in separate offensive campaigns.

Were other companies breached in the Perplexity Bedrock attack?

Yes. Perplexity says the same campaign breached two other companies it calls Company A and Company B. At Company A the agent found a live customer credential in deleted git history; at Company B it collected password stores, Kubernetes secrets, and EC2 instance-role credentials, though neither intrusion produced a credential that could call Bedrock.

Sources

  1. How Perplexity defended against an autonomous AI attacker (Perplexity blog, Dec 2, 2026)
  2. Autonomous AI attack targeted Perplexity to steal cloud credentials
  3. One AI agent fired off 48,000 requests in 13 minutes. Perplexity says it stopped the attack
  4. Perplexity says AI agent attacker fired 48,000 requests in 13 minutes
  5. How Perplexity Defended Against an Autonomous AI Attacker
  6. Perplexity Blocks Autonomous AI Attack Hunting Bedrock Keys
  7. Perplexity fends off autonomous AI attacker, finds two other companies breached
  8. AI Agent Hit Perplexity With 48,000 Requests in 13 Minutes
  9. Autonomous AI Attack on Perplexity: Cairn Agent Targets Amazon Bedrock Credentials
  10. OpenAI's GPT-6.2 Astra beat the UK's hardest AI hacking test in five hours
  11. OpenAI models breached AISI network simulation in every completed run

See how KnoxCall keeps Bedrock keys out of every call, human or agent

KnoxCall adds the real API key to a request on its way out, so no agent, CI job, or human caller ever holds the Bedrock or IAM credential itself.

Start Free →

Or get new posts by email. Double opt-in, unsubscribe anytime.