An attacker pointed an autonomous AI agent at Perplexity for two weeks. Its goal was AWS keys that could call frontier models on Amazon Bedrock. At its peak it sent about 48,000 requests in 13 minutes, and it came away with nothing. Perplexity caught it with an agent of its own.
An attacker ran an autonomous AI agent against Perplexity for two weeks trying to steal Amazon Bedrock credentials. At its peak, it sent roughly 48,000 requests in 13 minutes.
— View on X
The full write-up is on Perplexity’s blog.
What the attacking bot did
- It ran itself. In one workspace the operator started a single task. The agent created 276 more on its own over 19.5 hours, with up to 14 running in parallel.
- It routed around dead ends. When GitHub code search asked for a login, it started three tasks within 25 minutes: one to find a GitHub token and two to mine other public sources.
- It looked everywhere. It guessed 28,000 API routes, tried 3,681 S3 lookups for files like
.env.production, and scanned 4,281 forks of 10 public repos for key pairs. - It tried every SSRF trick. When internal IPs were blocked, it tried hex and decimal encodings, redirect chains and DNS rebinding.
- It rotated identities. When an account hit a rate limit, it moved to a new one: 40+ disposable accounts and about 290 proxies.
SSRF means tricking a server into fetching an internal address for you, like the AWS metadata endpoint that hands out cloud credentials. DNS rebinding is a domain that resolves to a safe public IP when it’s checked, then to an internal IP when the real request is made.
The harness was Cairn, an open-source tool that runs coding agents in a Kali Linux container. Its whole state is one graph.yaml file: a goal prompt, a list of facts and a list of tasks.
What the defending bot did
- It connected the accounts. Each throwaway account looked harmless alone. Perplexity Computer, which watches their logs, linked them through shared IPs, email domains and callback hosts, and flagged the campaign on Nov 2.
- It kept up for five days. A dedicated workflow tracked the attacker’s new infrastructure as it rotated and drafted hardening changes for engineers to review and ship.
- It wrote the reports. The security team found the attacker’s server wide open: 29 ports serving directory listings, with over 10,000 working files. Those files showed two other companies were also targets, and both were warned within hours.
My takeaways
- The boring fix won. The SSRF attempts failed because the outbound validator checks the IP at connection time. No AI was needed for that.
- Per-account limits aren’t enough. They only made the bot switch accounts. You have to look across accounts to see a campaign.
- Deleted isn’t gone. The agent got into another company through an OAuth credential left in deleted git history, and into a second through a demo environment. Rotate leaked secrets, and treat demos like production.
- An attack now costs one prompt. So run the same kind of agent against your own code and public surfaces before someone else does.
- The attacker got sloppy too. Its own server had no auth, and that’s how the whole campaign was exposed.