
On 2 December Perplexity published an account of an AI agent that spent about two weeks trying to steal cloud credentials from it, and failed. The more useful part of the write-up is what the same agent achieved at two other companies, which Perplexity found by reading the attacker's own exposed files. One fell to a credential sitting in deleted git history, the other to a demo environment with an open management API. If you check only two things this week, check those.
What Perplexity says happened
Perplexity's post, How Perplexity defended against an autonomous AI attacker, lays out a timeline from 24 October to 8 November 2026. The attacker opened throwaway accounts, ran quiet reconnaissance, then switched to high-volume sweeps on 2 November: "Probing peaked on November 2 at roughly 48,000 requests in 13 minutes."
The techniques were ordinary for a cloud attack. Server-side request forgery (SSRF, tricking a server into fetching a URL of the attacker's choosing) aimed at the AWS metadata address 169.254.169.254, using decimal and hex spellings and DNS-rebinding hostnames. Guessed API routes. Lookups for files like .env.production, .aws/credentials and state.tfstate in object storage. Cross-tenant access tests. By 4 November it had used more than 40 disposable-email accounts and roughly 290 proxy addresses.
Perplexity's summary of the outcome: "the attacker accessed no internal services, private customer data, or platform secrets over two weeks of activity."
Why "autonomous" is the right word here
The attacker ran Cairn, an open-source agent harness that keeps a graph of "facts" and "intents" toward an operator's goal, with worker agents running as command-line coding agents inside a Kali Linux container. NorForge has a write-up of how Cairn works.
Perplexity recovered one full task graph from the attacker's server, for the intrusion at the company it calls Company A. After a single bootstrap task, "the worker agent created 276 subsequent tasks on its own," over 19.5 hours, up to 14 at a time. When a branch hit a dead end, a new task usually picked it up within about half an hour. It queued 4,328 forks of a repository for history scanning.
Think of it as a burglar who never gets tired and tries every window on the street, then writes down which latch was loose. Each move on its own is routine. What sets it apart is how many it makes.
The stated goal, quoted from the operator's prompt in Perplexity's post, was credentials able to invoke "two latest-generation frontier models through Amazon Bedrock," AWS's hosted model service. It asked for an AWS access key pair or a Bedrock bearer token and preferred "BROAD IAM permissions (AdministratorAccess, PowerUserAccess)." Perplexity notes it knows the operator wanted Bedrock access, but not for what purpose.
Sort the three targets by what let the agent in
This is the part I would print out. Perplexity says it was "one of at least three targets," and the outcomes split cleanly by which control was or was not in place.
- Perplexity: nothing. Its outbound URL validator "resolves hostnames and blocks private or link-local destinations at connection time," which defeats the DNS-rebinding trick, because the check runs on the address actually connected to, not the name typed in. Authorization checks denied the escalation and cross-tenant attempts.
- Company A: a secret in deleted git history. The agent found a live customer OAuth credential in history that had been deleted from the current code. From there, by Perplexity's account, it took admin control of that customer's workspace, ran code on managed compute, captured a stored Git token and obtained short-lived AWS credentials. Those lacked Bedrock permissions, so the stated goal failed.
- Company B: a forgotten demo environment. The agent logged into an exposed management API on a demo system, installed a persistent command runner (about 1,000 callbacks over 15 hours) and collected local password stores, Kubernetes secrets and EC2 instance-role credentials. Its Bedrock attempts were rejected.
Perplexity is careful about how much it knows of A and B. The picture comes partly from the attacking agent's own notes, and "Agents can misread responses or overstate partial access, and we did not test recovered credentials against third-party systems." Neither company is named and neither has commented. Treat the details as Perplexity's reading of the attacker's files.
Even so, the pattern holds: nowhere in the account does the agent defeat a control that was in place. It found the places that had none.
Check one: secrets that were deleted but never revoked
Deleting a key from your code does not delete it from the repository. Git keeps every past version, and every fork carries its own copy of that history, which is why an agent bothered to queue thousands of forks.
The fix is revocation, not deletion. If a credential was ever committed, treat it as public and rotate it, then clean history as a second step if you want to.
To find them, GitHub secret scanning "scans your entire Git history on all branches of your repository," according to GitHub's documentation. For repositories elsewhere, open-source scanners such as gitleaks and TruffleHog can run over full history. For AWS keys specifically, the IAM console's access key page shows when each key was last used, which tells you whether a key you found is still live and worth worrying about.
Who this is for: anyone with a public repository, or a private one that has ever been shared with a contractor or mirrored. Who can skip it: nobody, honestly. It is a one-hour job.
Check two: environments nobody owns
Company B's demo environment is the oldest story in operations. Something is stood up for a sales call or a conference, given a real cloud role so the demo looks real, and then nobody is responsible for it.
The agent did not need to be clever. A management API was reachable from the internet and accepted a login. The instance had a role, and the role's credentials were sitting in the metadata service.
The check is an inventory question: list every environment with internet-reachable admin interfaces, and for each one name an owner and the IAM role attached. Anything without an owner gets shut down or stripped of its role. If you use AWS, also require IMDSv2 (the session-token version of the instance metadata service) on every instance, which makes the simplest SSRF route to those role credentials much harder.
What Perplexity did right, in one line each
- Validated outbound URLs at connection time, after DNS resolution.
- Denied privilege and tenant escalation at the authorization layer.
- Grouped dozens of throwaway accounts by shared IPs, email domains and callback hosts, so the campaign looked like one actor.
- Cross-checked application logs against cloud audit logs (CloudTrail, in AWS) to confirm every probe was blocked rather than assume it.
- Published defanged indicators, including the server address 185.87.121[.]140, the disposable-email domains and the DNS-rebinding patterns. Feed those to your own logs.
Their detection also came from an agent: Perplexity says its own agent platform flagged the probing in application logs and escalated to the security team. That makes the post a small case study in agents on both sides, and the defending side won with very conventional controls.
The takeaway
The attacker's real advantage was patience at machine speed: it would have tried every route at your company too. The defence that held was boring. Where the agent got in, nothing was defending: a forgotten key and a forgotten server.
Today, search your repositories' full history for AWS keys and confirm in the IAM console that none of the ones you find has been used recently.