Perplexity has published a detailed account of a fortnight-long campaign in which an autonomous AI agent tried to steal cloud keys that would let its operator run frontier models through Amazon Bedrock. Perplexity’s defences held, but the attacker’s own leaky server shows it had already got deep into two other companies, and both routes in were depressingly ordinary.
What happened
On 2 December 2026 Perplexity, the AI search company, released a postmortem describing an attack that ran from 24 October to 8 November. An operator pointed an LLM-driven agent at Perplexity with one high-level objective: obtain cloud or AI-service credentials capable of invoking two frontier models hosted on Amazon Bedrock. What the operator wanted that model access for remains unknown.
The campaign opened quietly, with throwaway accounts and light reconnaissance over the last week of October. On 2 November the tempo jumped. According to Perplexity’s own timeline, the agent fired roughly 48,000 requests in 13 minutes, aimed at some 28,000 invented API paths, peaking above 200 requests per second, followed by further sweeps of about 9,300 and 12,700 requests. (Some secondary coverage places the peak on 3 November; the primary source puts it on 2 November.) Perplexity’s in-house agent platform, Computer, spotted the anomaly in application logs and escalated it to the security team, which confirmed from cloud audit records that every attempt had failed.
The company is clear that nothing was lost. In its words, “Our security controls held”: the attacker touched no internal systems, customer data or platform secrets. Probing tailed off between 6 and 8 November.
The more striking part came on 4 November, when callbacks from the probes led investigators to the attacker’s own server. It had 207 open ports, and 29 of them served unauthenticated directory listings holding more than 10,000 files: scripts, logs and workspaces for parallel campaigns against two other organisations. Perplexity passed technical reports and indicators to both security teams that day.
The technical picture
The recovered workspaces show the operator used Cairn, an open-source agent harness that models a campaign as a graph of discovered facts and worker tasks. Workers ran as coding agents inside a Kali Linux container. Against one victim, the agent spawned 276 follow-up tasks of its own over roughly 19.5 hours, with as many as 14 running at once.
Against Perplexity, the agent cycled through more than 40 disposable email accounts and about 290 residential and cloud proxy addresses. It tried server-side request forgery against URL-fetching features, using odd address encodings, malformed URLs, redirects and DNS rebinding to reach cloud metadata and internal services. It guessed object storage paths for secrets and configuration files, producing 3,681 failed S3 lookups across more than 3,300 keys in a 14-hour window, according to the company’s CloudTrail records. It also tested admin permissions and tried identifiers belonging to other users’ threads, files and workspaces. Outbound URL validation and authorisation checks stopped every one of these.
The two other targets fared worse. At the first, the agent mined public code and found a live customer OAuth credential sitting in deleted git history. That gave it admin control of a customer workspace and, eventually, short-lived AWS workload credentials. At the second, it logged into an exposed management API on a demo environment, installed a persistent command runner that called home about 1,000 times over 15 hours, and harvested password stores, Kubernetes secrets and EC2 instance-role credentials. In neither case could it actually call the Bedrock models it was after, but that is cold comfort for the organisations whose environments it owned.
Perplexity cautions that it saw only part of a larger operation and that some records were incomplete.

Why it matters for UK organisations
Plenty of UK firms now run AI workloads on AWS, Azure or Google Cloud, and model access has become a commodity worth stealing. Hijacked AI-service credentials (often called LLMjacking) can be resold, used to run abusive content at someone else’s expense, or used to bypass the usage controls a provider applies to ordinary customers.
The second lesson is that the agent did not need a zero-day. It found a secret left in git history and an admin interface left facing the internet on a demo box. Those are findings UK testers report week in, week out. An agent that can chew through public repositories, container images and package releases around the clock turns that background mess into a reliable source of access.
This fits the NCSC’s own warnings that AI is cutting the time and skill attackers need, and its advice that internet-facing systems which cannot be patched or monitored should be assumed to be compromised.
Expert view
What I find most useful about this write-up is how boring the winning defences were. Perplexity did not stop the agent with some exotic AI shield. It stopped it with outbound URL allow-listing, metadata endpoint protection and authorisation checks done properly on every object request. Those are controls we test for on almost every web application assessment, and they are still frequently missing.
In my experience, server-side request forgery against URL-fetching features is one of the most dependable routes from a public web app into cloud credentials, particularly where the older instance metadata service is still enabled. Equally, secrets in git history are everywhere: developers delete the file, the commit remains, and nobody rotates the key. An autonomous agent does not get bored of checking every commit, and that is the real shift.
I would also highlight the irony of the attacker’s open directories. Automation at this scale is sloppy, and its operators leave trails. Defenders who follow callback infrastructure, as Perplexity did, can sometimes warn the next victims before they know they are victims. Perplexity also used its own agent to triage logs during the incident; machine-assisted response will become normal.
What to do now
- Hunt for secrets in history, not just current code. Scan full git history, container images and published packages for credentials, then rotate anything found rather than simply deleting it. This supports Cyber Essentials secure configuration and user access control.
- Lock down URL-fetching features. Validate outbound requests against an allow-list, block private and link-local ranges after DNS resolution, and enforce IMDSv2 (or the equivalent) on cloud instances.
- Take management interfaces off the internet. Demo, staging and proof-of-concept environments count. Put them behind a VPN or identity-aware proxy, in line with Cyber Essentials firewall and secure configuration requirements.
- Scope AI-service permissions tightly. Restrict which roles can invoke Bedrock or other model APIs, set spend alerts and quotas, and review CloudTrail or equivalent logs for unexpected model invocation.
- Enforce object-level authorisation. Test that users cannot reach other tenants’ files, threads or workspaces by changing identifiers.
- Watch for bursts and account churn. Alert on spikes in 404s, rapid account sign-ups from disposable email domains and traffic from rotating proxy ranges.
Bottom line
An autonomous agent spent two weeks hammering a well-defended AI company and got nowhere, while at two less prepared organisations it walked in through a leaked token and an exposed admin API. The capability on show is new; the weaknesses it exploited are not. UK organisations that fix the basics, especially secrets hygiene, SSRF protections and exposed management interfaces, will make this class of attacker go elsewhere.
Sources
- Perplexity: How Perplexity defended against an autonomous AI attacker
- AI.info: Perplexity says AI attacker sought its cloud credentials
- IBTimes Singapore: Perplexity foils autonomous AI hacker that fired 48,000 requests in 13 minutes
- Techgenyz: Autonomous AI attack targets Perplexity in attempt to steal Amazon Bedrock credentials
- NCSC: A major step change in AI’s offensive cyber capability demands a response