Brief · Builders
A Cairn agent spent two weeks hunting cloud credentials at Perplexity, and files on its open server pointed at two other companies
On Dec 2, Perplexity published a write-up, reported the same day by BleepingComputer, of an autonomous agent that spent about two weeks, starting in late October, trying to steal cloud credentials that would unlock Amazon Bedrock. Perplexity says it blocked the campaign: no internal services, private customer data, or platform secrets were reached. While looking at the probes, though, its team found the attacker's own staging server sitting open, and the files there pointed at two other unnamed companies.
The attacks were spotted on Nov 2, as newly registered accounts probed APIs and features that fetch content from external URLs. The agent tried server-side request forgery against AWS metadata and internal systems, enumerated cloud storage, hunted API endpoints, and looked for privilege escalation and ways into other customers' data. At its peak it sent about 48,000 requests in 13 minutes, aimed at 28,000 potential API endpoints, and more than 200 requests a second. When rate limits or blocks landed, it kept going with more than 40 accounts registered on disposable email addresses and about 290 residential and cloud proxy addresses.
The open server had 207 ports, nearly all running ad-hoc Python HTTP services, and 29 of those had unauthenticated directory listings. That was enough to read more than 10,000 files: scripts, logs, and live attack workspaces aimed at the two other companies. The tooling was Cairn, an open-source penetration testing tool that coordinates AI agents around a goal an operator sets. That is the same family of tool Amazon described in a different campaign against a medical imaging server in September, not this one. Across the three targets, the goal was cloud credentials or tokens that could call two unnamed, latest-generation models through Bedrock. The agent searched public repositories, Git history, packages, container images and applications, and when that failed it signed up for disposable accounts so it could keep looking from inside. In one campaign, BleepingComputer says, it created 276 more tasks over 19.5 hours, with as many as 14 running at once.
At the first of the other companies, the agent's records show it found exposed credentials, took administrative control of a customer's workspace, reached internal systems and obtained AWS credentials. At the second, they show it got into a demo environment, kept access, and collected password stores, Kubernetes secrets and AWS credentials. Neither set of credentials, Perplexity says, was enough to reach the Bedrock models it was after. Perplexity notified both companies on Nov 4, while the campaign was still running, and it warns that those two pictures come from the agent's own logs, which can misread a response or overstate how far it got.
What to do
-
Treat every URL-fetch or preview feature as a place an agent can stand, and don't let it reach instance metadata.
- Why: The campaign started by probing features that retrieve content from external URLs, and it tried SSRF against AWS metadata and internal systems.
- How: Validate destinations when the connection is made, not just when a URL is first accepted, and require IMDSv2 so a stolen link to the metadata service is a dry hole (item 9 of the Builder's Checklist).
-
Search the whole Git history, not just HEAD, and shut down leftover demo environments.
- Why: The agent looked through Git history, packages and images for credentials, and one of the other workspaces it describes is a demo environment that still held password stores, Kubernetes secrets and AWS credentials.
- How: Run a secret scan across full history, rotate anything that ever landed in a commit, and take demo and leftover environments offline or lock them behind a real login (item 1 and item 18 of the Builder's Checklist). A per-account rate limit will not stop an agent that can register a fresh disposable signup.
-
Treat a Bedrock invoke right like an admin right.
- Why: The operator's goal was not a shell on Perplexity. It was credentials that could call frontier models through Bedrock, and short of that it still collected AWS credentials.
- How: Scope
bedrock:InvokeModelto the models a workload actually needs, prefer short-lived credentials, and alert on unfamiliar models, Regions or a sudden jump in invocations (item 2 of the Builder's Checklist).
Want the next one?
One email, weekly-ish. The week's briefs, how worried to be, and what to do about it. No doom.
Subscribe on Beehiiv ↗Free. Opens Beehiiv in a new tab. Unsubscribe whenever, I won't be offended.