An AI agent tried to steal Perplexity's AWS keys: the SSRF tricks it used and the checks that stop them Perplexity published a December 2 postmortem reporting that an autonomous agent built on the open-source Cairn penetration-testing harness probed its systems from late October into early November 2026 in an attempt to steal AWS credentials capable of invoking two frontier models through Amazon Bedrock, peaking at about 48,000 requests in 13 minutes (over 200 per second) across 28,000 guessed endpoints, more than 40 disposable accounts and about 290 proxies. Perplexity said the agent's server-side request forgery attempts against its link fetcher — using encoded IPs, redirects and DNS rebinding to reach the metadata address 169.254.169.254 — all failed because its outbound validator checks the IP at connection time, and that the agent reached no internal services, customer data or platform secrets. Files on the attacker's exposed server, which had 207 open ports and 29 unauthenticated directory listings holding more than 10,000 files, also showed two other companies were breached via a customer OAuth credential left in deleted git history and an exposed management API on a demo environment. An AI agent tried to steal Perplexity's AWS keys: the SSRF tricks it used and the checks that stop them Perplexity says an autonomous agent built on the open-source Cairn harness probed it for two weeks to steal credentials for frontier models on Amazon Bedrock. This page explains why its URL tricks failed and gives the commands to test your own fetchers and lock down instance metadata. This explains reporting by BleepingComputer: Autonomous AI attack targeted Perplexity to steal cloud credentials Dec. 2, 2026 https://www.bleepingcomputer.com/news/security/autonomous-ai-attack-targeted-perplexity-to-steal-cloud-credentials/ . Read the original first: https://www.bleepingcomputer.com/news/security/autonomous-ai-attack-targeted-perplexity-to-steal-cloud-credentials/ https://www.bleepingcomputer.com/news/security/autonomous-ai-attack-targeted-perplexity-to-steal-cloud-credentials/ In one minute - Perplexity says an autonomous agent attacked it from late October into early November, trying to steal credentials that could call two frontier models through Amazon Bedrock. - Peak load: about 48,000 requests in 13 minutes, over 200 per second, across 28,000 guessed endpoints, 40+ throwaway accounts and about 290 proxies. - It tried server-side request forgery SSRF on Perplexity's link fetcher to reach the AWS metadata address 169.254.169.254, using encoded IPs, redirects and DNS rebinding. All failed. - Files on the attacker's exposed server point to Cairn, an open-source agent harness for penetration testing, and show two other companies were breached. - Both breaches started from things left lying around: a customer OAuth credential in deleted git history, and an exposed management API on a demo environment. What happened Perplexity published a postmortem on December 2. BleepingComputer, The Hacker News and TechCrunch reported it the same day and the next. The first attacker accounts were created between October 24 and 28, and Perplexity's systems flagged the activity on November 2. The goal, per Perplexity, was AWS credentials or service tokens that could invoke two latest-generation frontier models through Amazon Bedrock. Perplexity says the agent reached no internal services, customer data or platform secrets. The agent rotated through more than 40 accounts made with disposable email addresses and about 290 residential and cloud proxies, and opened a new account whenever a per-account rate limit tripped. How the agent worked Perplexity found an attacker server with 207 open ports, 29 of them serving unauthenticated directory listings with more than 10,000 files. Those files pointed to Cairn, an open-source tool that coordinates AI agents for penetration testing. The Hacker News lists what the agent did: scanned public repositories, Gists, commit history and unreachable git objects, unpacked published npm and PyPI releases, and switched from curl to a Playwright browser when curl was blocked. One campaign ran 276 more tasks over 19.5 hours, up to 14 at once. That is the new part. A human attacker gives up on a dead end. This one spawned parallel tasks to route around it, and came back when one of them found a token. Why the SSRF tricks failed SSRF means getting a server to fetch a URL on your behalf, so the request comes from inside its network. On AWS the prize is http://169.254.169.254/, the instance metadata service, which can hand out the instance's credentials. Most URL fetchers defend with a blocklist: parse the URL, look up the host, refuse private addresses, then fetch. Each step is a gap. The same address can be written as a decimal number or in hex. A redirect can send an approved URL somewhere else after the check. DNS rebinding returns a public IP to the check and the metadata IP to the fetch a moment later. The Hacker News reports Perplexity's CEO saying its outbound validator checks the IP at connection time. That closes all of those gaps at once, because the address being judged is the one the socket is actually connecting to, after every redirect and every DNS answer. Test your own fetcher If your product fetches user-supplied URLs link previews, webhooks, import from URL, an AI agent with a browse tool , each of these should be refused. We computed the encodings with Python's ipaddress module: http://169.254.169.254/latest/meta-data/ http://2852039166/latest/meta-data/ same address as one decimal number http://0xA9FEA9FE/latest/meta-data/ same address in hex http:// ::ffff:169.254.169.254 / IPv4-mapped IPv6 form python import ipaddress a = ipaddress.ip address '169.254.169.254' print int a , hex int a 2852039166 0xa9fea9fe Also test a URL on a host you control that answers with a 302 redirect to the metadata address. If any of these returns data, move the check to connection time, or route fetches through an egress proxy that refuses link-local and private ranges. Make the metadata service useless to SSRF IMDSv2 requires a session token fetched with a PUT request and a custom header first. A plain GET forced through a link fetcher cannot do that. Find instances that still allow the older, token-free IMDSv1: aws ec2 describe-instances \ --query "Reservations .Instances . InstanceId,MetadataOptions.HttpTokens " \ --output text | grep optional Require IMDSv2 on one instance, then make it the default for new launches in a region: aws ec2 modify-instance-metadata-options --instance-id i-0123456789abcdef0 \ --http-tokens required --http-endpoint enabled aws ec2 modify-instance-metadata-defaults --region us-east-1 --http-tokens required Test before you flip it on a busy fleet. Old SDKs and some agents still call IMDSv1, and they will break. How the two other companies were breached At the first, the agent found a live customer OAuth credential in deleted git history, took admin control of that customer's workspace, and ended with short-lived AWS workload credentials. They lacked permission to call Bedrock. At the second, it logged into an exposed management API on a demo environment, set up a persistent command runner, and collected password stores, Kubernetes secrets and EC2 instance-role credentials. Its attempts to call models through that company's Bedrock proxy were rejected. Deleting a file does not delete it from git. This finds AWS access key IDs anywhere in a repo's history, including removed files: git log --all -p -S 'AKIA' | grep -n 'AKIA' Any hit means rotate the key, not just rewrite history. Then find your demo and staging environments and check which of them answer from the internet. Who is affected | Case | Status | |---|---| | Perplexity | Attacked for about two weeks; says nothing was reached. | | Two unnamed companies | Breached; credentials taken, but Bedrock calls failed, per Perplexity. | | Products that fetch user-supplied URLs | The SSRF pattern the agent tried. Safe if the IP is checked at connection time. | | EC2 instances that still allow IMDSv1 | Exposed to plain GET-based SSRF credential theft. | What to do - Run the four URLs above, plus a redirect, against every URL fetcher you run. - List instances with HttpTokens set to optional and move them to required. - Set IMDSv2 as the account default in each region you use. - Search git history for keys and rotate anything you find. - Inventory demo and staging environments reachable from the internet. - Rate-limit by more than account: the agent opened a new account each time a limit tripped. What is still unknown - Perplexity's own post returned an error to us, so every fact here comes from the BleepingComputer, The Hacker News and TechCrunch reports of it. - Which two frontier models the attacker wanted is not named in anything we read. - We did not review Cairn's code, and nothing we read says who ran the campaign. - How much a human steered the agent is not settled. TechCrunch describes the attack as AI-powered without more detail. - The SSRF list above is a starting set, not a complete bypass catalog. Sources AI News Report https://theainewsreport.com/ · every headline, every morning.