Perplexity says it fended off an AI agent hunting for Bedrock credentials
An attacker ran the agent for two weeks on the open-source Cairn harness. It did not reach Perplexity’s internal services, the company said, but its own notes say it gained access to two other companies.
Perplexity published a report on 2 December about an attacker who used an autonomous AI agent against the company’s systems from late October to early November. The agent was looking for cloud credentials or a service token that would give access to two of the latest-generation frontier models on Amazon Bedrock. Bedrock is an AWS service that provides API access to models from several companies. Perplexity said that in those two weeks the attacker did not reach the company’s internal services, private customer data or platform secrets, and the agent obtained no credentials from the company. Why the attacker wanted Bedrock access remains unclear.
The agent ran on Cairn, an open-source harness: a program that steers the agent, gives the model its tools and runs its work steps. Cairn records every result, including dead ends, and the agent uses them to decide its next tasks itself. In the campaign against Company A, the agent created 276 new tasks from a single starting task in 19.5 hours.
The attacker got round Perplexity’s restrictions by switching account or proxy whenever a per-account rate limit or block kicked in. By 4 November the attacker had used more than 40 accounts created with disposable email addresses and about 290 proxy addresses, so no single account’s traffic revealed the scale of the campaign. Perplexity’s own agent platform, Computer, linked the accounts to the same campaign through shared IP addresses and email domains. At the peak, on 2 November, the agent sent about 48,000 requests in 13 minutes and tried 28,000 guessed API paths.
The agent was most persistent with server-side request forgery (SSRF), an attack that tricks a server that fetches links into fetching an internal network address, such as the metadata service that hands out AWS credentials. When direct addresses were blocked, the agent wrote the IP address in decimal and hexadecimal form and chained redirects. It also used DNS rebinding names, which point to a public address when checked but to an internal one when fetched. Perplexity said these attempts failed because its validator resolves the hostname and blocks private addresses and link-local ones such as the metadata service at connection time.
Perplexity found unprotected directories on the attacker’s server holding more than 10,000 files and campaigns against two other companies. In the campaign against Company A, the agent found a customer’s live OAuth credential in deleted git history and took control of the customer’s workspace. At Company B, it logged in to an open admin API in a demo environment and collected Kubernetes secrets, among other things. According to the data Perplexity found, the agent did not gain access to Bedrock models at either company. This information comes from the agent’s own notes. The agent may have misread responses or exaggerated the access it gained, and Perplexity did not test the credentials it found on the other companies’ systems. Perplexity notified both companies’ security teams on 4 November, while the attacks were still under way.
Perplexity recommends that defenders run autonomous agents against their own code and public services, so that they find leaked secrets and exposed APIs before an attacker does.
TechCrunch and BleepingComputer based their stories on Perplexity’s report, so they do not independently confirm its claims. TechCrunch calls the server one of the command-and-control servers that directed the attack. Perplexity said the server almost certainly revealed only part of a wider operation. Cairn was controlled from elsewhere, so any runs that may have been wiped, or other worker servers, were not visible.
Read more: How an agent works · Agent map