Autonomous AI agent fails against Perplexity but compromises two other firms

An autonomous AI agent probed Perplexity for two weeks seeking cloud credentials to reach Amazon Bedrock and was blocked, but used a leaked OAuth token and an exposed management API to compromise two other companies.

Two analysts seen from behind watch blurred monitors in a darkened security operations room overlooking a city at night.

Key points

  • Perplexity's outbound URL validation and authorization checks blocked SSRF, DNS rebinding and redirect-chain attempts aimed at cloud metadata services.
  • Peak activity reached about 48,000 requests in 13 minutes, using more than 40 disposable email accounts and about 290 proxy addresses.
  • The campaign ran on Cairn, an open-source AI penetration testing framework, with worker agents in Kali Linux containers creating and running follow-up tasks on their own.
  • At one victim, a still-valid OAuth token in deleted git history gave admin control of a customer workspace; at another, an exposed demo management API allowed a persistent implant that collected secrets.
  • Perplexity notes the agent's own records of success may be overstated and the server was likely part of a larger operation.

What happened

Perplexity has published an incident write-up describing a two-week campaign by an autonomous AI agent that tried to extract cloud credentials from its infrastructure in order to reach Amazon Bedrock. After low-volume reconnaissance from disposable accounts in late October, the agent began high-rate sweeps on November 2, followed by further bursts the next day. It attempted server-side request forgery against cloud metadata services, used filter evasion, DNS rebinding and redirect chains, and guessed thousands of secret and configuration file names in Amazon S3. Outbound URL validation and authorization checks blocked every attempt, and the activity was flagged through application logs.

How the agent worked

Files left exposed on the attacker's own server showed the operation was built on Cairn, an open-source AI penetration testing framework. An operator sets a goal, and worker agents running in Kali Linux containers record findings and launch follow-up tasks. One worker generated 276 tasks over 19.5 hours, and the system revisited earlier dead ends to try new approaches.

The same server revealed two other, unnamed victims, which Perplexity notified. At one, the agent found a working OAuth token in deleted git history and used it to gain admin control of a customer workspace. At the other, it logged into an exposed management API on a demo environment and installed a persistent command runner that gathered password stores, Kubernetes secrets and EC2 role credentials.

Why it matters

The failures were stopped by basic controls; the successes came from overlooked hygiene gaps. Agent tooling makes continuous, adaptive probing cheap, so leaked secrets and forgotten non-production endpoints are likely to be found faster. Perplexity suggests defenders run similar agents against their own code and internet-facing systems first. It also cautions that the agent's own notes may overstate the access it achieved.

What to do now

  1. Scan full git history, not only current code, for credentials and tokens, and revoke and rotate anything found even if it was later deleted.
  2. Inventory internet-facing demo, test and staging environments and remove or restrict any exposed management APIs.
  3. Enforce outbound URL validation and block access to cloud metadata services from application servers to reduce SSRF exposure.
  4. Review cloud audit logs such as CloudTrail for bursts of failed object lookups and alert on high-rate probing from rotating accounts or proxies.
  5. Apply least privilege to cloud roles and tokens so a single leaked credential cannot reach high-value services.
  6. Consider authorised, controlled agent-based testing of your own code and external attack surface within your penetration testing programme.

How useful was this story?

Related frameworks

Need help acting on this?

Our consultants can assess your exposure and map the change to your controls and evidence.

Talk to an expert

Regulatory updates in your inbox

SAMA, NCA and SDAIA changes and what they mean for your institution — once a month.

E-mails in

We confirm by e-mail; unsubscribe any time. Manage your subscription · Past issues

Schedule a Free Assessment