What is an autonomous AI attack? Perplexity details an AI agent that hunted for Amazon Bedrock keys

Perplexity logo with the text An AI agent hunted for Amazon Bedrock keys

Key points

  • An AI agent hunted for Amazon Bedrock credentials at Perplexity
  • Perplexity says the attacker reached none of its internal services or customer data
  • The attacker's server, found by Perplexity, exposed work against two other companies
  • Amazon also caught attackers using Cairn, the open-source agent tool behind the campaign

An attacker used an AI agent to hunt for credentials at Perplexity that could provide access to two frontier AI models through Amazon (AMZN) Bedrock, the AI search company said in a post-mortem published Dec. 2.

Perplexity said the attacker accessed no internal services, private customer data, or platform secrets during two weeks of activity in late October and early November. While investigating, the company found an exposed server containing the attacker's work against two other companies. It warned both companies' security teams on Nov. 4, while those intrusions were still underway.

How the agent worked on its own

A person gave the agent a goal, and it ran much of the campaign itself. The agent operated with "a high degree of autonomy," Perplexity said, running scripts, recording results, and choosing follow-up tasks.

Perplexity published the operator's prompt with names and model identifiers removed. It instructed the agent to find an Amazon key pair or Bedrock token that could run a target model, saying "the credential MUST be able to invoke" it, and to "Prefer credentials with BROAD IAM permissions."

At one of the other targets, which Perplexity calls Company A, the agent created 276 tasks from a single starting task and ran up to 14 at a time over 19.5 hours, according to the company. It marked 37 paths as a "dead end," but later tasks built on 19 of them within a median of 31 minutes.

What the attacker tried against Perplexity

The attack started with low-volume scouting from disposable accounts between Oct. 24 and Oct. 28. On Nov. 2, the probing jumped. The largest sweep sent about 48,000 requests in 13 minutes, trying 28,000 guessed web addresses on Perplexity's API at a peak of more than 200 requests per second, Perplexity said.

Much of the effort went into server-side request forgery, or SSRF. That is an attack that tricks a company's server into fetching an internal address on the attacker's behalf, such as the cloud metadata service that can hand out credentials. The agent fed Perplexity's link-fetching features disguised internal addresses and redirect chains. Perplexity said its outbound checks blocked every attempt.

The agent also guessed at stored files that might hold secrets. Over a 14-hour window, Amazon's CloudTrail logs recorded 3,681 failed attempts to look up files in Perplexity's cloud storage, using guessed names like .env.production and .aws/credentials. Perplexity said no private files were accessed. Each time Perplexity's rate limits kicked in, the attacker switched to fresh accounts. By Nov. 4, it had cycled through more than 40 disposable-email accounts and about 290 proxy addresses.

Perplexity said its own AI agent product, Computer, flagged the activity in its logs on Nov. 2. The company then ran a dedicated Computer workflow on the attacker for more than five days, linking the throwaway accounts through shared addresses and email domains. Attack tools like this make it cheap to probe targets around the clock, Perplexity wrote, and "pairing strong baseline controls with AI-assisted response lets security teams match that speed."

How Perplexity found the attacker's server

Several of the attacker's probes pointed back to one outside server. When Perplexity scanned it, the company found 207 open ports. Twenty-nine of them were serving the attacker's working folders to anyone on the internet, exposing more than 10,000 files.

Those files held live workspaces for all three targets. In each one, the goal was the same: credentials that could run the same two frontier models through Bedrock. Perplexity did not name the models or the attacker. It said the prompt showed the operator wanted frontier Bedrock access, "but not for what purpose."

What the agent reached at the other two companies

None of the three campaigns reached the Bedrock goal, but the other two companies fared worse than Perplexity, according to the post-mortem.

Perplexity's account of those two campaigns comes from the attacking agent's own notes, not from the companies. "Agents can misread responses or overstate partial access," Perplexity wrote, and it did not test the recovered credentials against outside systems.

According to those notes, at Company A the agent found a live customer login credential in deleted code history and took administrative control of that customer's workspace. From there, it obtained short-lived Amazon cloud credentials that did not have permission to run Bedrock models.

At Company B, according to the notes and callback logs on the attacker's server, the agent logged into an exposed management system on a demo environment and installed a program that kept checking in, recording about 1,000 callbacks over 15 hours. The notes say it collected stored passwords and other credentials there, but its attempts to run models through Company B's Bedrock setup were rejected.

What Cairn is

The attacker ran the campaign with Cairn, an open-source harness that coordinates AI agents toward a goal, according to Perplexity. Cairn structures a campaign as a growing graph of facts and tasks, where each task records what it learned for the next one to use.

Perplexity is not the first company to catch Cairn in an attack. Amazon Threat Intelligence reported that on Sept. 10 it found a Cairn server left open to the internet by a Chinese-nexus actor targeting universities in East Asia. Given the goal to "obtain shell access," those agents found a previously unknown flaw in an open-source application and used it to take full control of a server, Amazon said. Amazon also said Cairn "was built as a research and problem-solving engine for defenders."

Attackers have used other AI tools against companies before, including in the Korean bank attacks where CrowdStrike found Claude Code and DeepSeek use.

Perplexity said its core security controls were already in place when the campaign began, and it added more blocks during the attack. It also suggested defenders run AI agents against their own code and public systems to find leaked secrets or exposed endpoints before an attacker does. Anthropic said in November that its Claude model helped find an 18-year-old flaw in server firmware.

Frequently asked questions

What is an autonomous AI attack?

In the attack Perplexity described on Dec. 2, 2026, a person gave an AI agent a goal and the agent ran the campaign from there, running scripts, recording the results, and choosing its own follow-up tasks. At one target, the agent created 276 tasks on its own after a single starting task, according to Perplexity.

What was the attacker trying to get from Perplexity?

Cloud credentials or service tokens that could run two of the newest frontier AI models through Amazon Bedrock, according to Perplexity. Perplexity said the attacker accessed no internal services, private customer data, or platform secrets.

What is Cairn?

Cairn is an open-source harness that coordinates AI agents toward a goal. Perplexity said the attacker used it, and Amazon Threat Intelligence reported a separate Cairn campaign against universities in East Asia that it found on Sept. 10, 2026.

Were other companies targeted?

Yes. Files on the attacker's server showed intrusions against two other companies, which Perplexity did not name, and Perplexity warned both on Nov. 4, 2026. According to the attacking agent's own notes, it took control of a customer's workspace at one of them, but none of the campaigns reached the Bedrock goal. Perplexity cautioned that agents can overstate partial access.

More on AMZN

Latest stories

Dennis Singleton
Dennis Singleton

Dennis Singleton was born in Australia and later moved to the United States. He has spent years following the markets, but what keeps his attention is how AI is built. He writes about the companies behind the technology, from semiconductor designers and advanced packaging to photonics, memory, networking, and the hardware powering modern AI. His approach starts with filings, earnings, and industry research, then translates the important details into clear, straightforward analysis without unnecessary hype.