On 2 December 2026, AI search company Perplexity revealed that an autonomous AI agent spent about two weeks trying to break into its systems — planning its own attacks, changing tactics when blocked, and working around the clock with no human steering it.

Its goal was simple: steal cloud credentials that could run powerful AI models through Amazon Bedrock, Amazon's service for using AI models from different companies. Perplexity stopped every attempt. But the same attacker was also targeting two other companies — and there, it got in.

What the attacker wanted

The attacker was not after Perplexity's users or their data. It wanted Amazon Web Services credentials — an AWS key pair or a Bedrock bearer token that could call two latest-generation AI models through Amazon Bedrock.

Running frontier AI models is expensive, so a stolen credential lets someone run them on somebody else's bill. The campaign ran from late October into early November 2026, using Cairn, an open-source tool that runs hacking tasks through AI agents from a goal set by a human operator — part of a family of AI attack tools, including ARTEX, that the US cyber agency CISA says it has already seen used against American agencies and critical infrastructure.

A tidal wave of thousands of red attack requests crashing against one server
At its peak, the attack reached 48,000 requests — a wave no human team could send alone.

How the attack unfolded

24 to 28 October: The attacker created its first disposable accounts and ran low-volume reconnaissance, quietly mapping out Perplexity's systems.

2 November: The attack peaked. In just 13 minutes, the agent fired roughly 48,000 requests at Perplexity, guessing around 28,000 possible API routes at more than 200 requests per second. Perplexity's own AI agent platform, called Computer, spotted the pattern and alerted the security team.

3 November: Two more high-speed sweeps followed — about 9,300 and 12,700 requests each. Both failed.

4 November: Investigators traced the attacker's callback traffic to an exposed server the attacker itself had left open to the internet. It revealed live attacks against two other companies, which Perplexity warned the same day, while the attacks were still running.

5 November: Active incident response wrapped up, with automated monitoring left in place. The last disposable accounts were created on 6 November, and all probing had stopped by 8 November.

Six tricks the AI agent tried

The agent used six techniques, all from unauthenticated access or newly registered free accounts:

1. Server-side request forgery (SSRF). The agent fed Perplexity's link-fetching features with web addresses designed to reach internal systems — including Amazon's cloud metadata service, which hands out credentials to servers. It tried the metadata address in different formats and used DNS-rebinding domains that flip to an internal address after passing the check. Every attempt was blocked by outbound URL validation.

2. Object-storage enumeration. The agent guessed file paths on download endpoints, hunting for secrets and configuration files. Over a 14-hour window, cloud audit logs recorded 3,681 failed attempts across more than 3,300 unique keys — including .env.production, .aws/credentials, and state.tfstate. No private files were reached.

3. API route discovery, privilege escalation, and cross-tenant access. The agent swept thousands of guessed web addresses looking for hidden API endpoints, probed admin permission endpoints to raise its own access, and tested identifiers for other users' threads, files, and workspaces. Every attempt was denied.

4. Evasion. Whenever rate limits or blocks kicked in, the agent rotated to fresh infrastructure — more than 40 accounts registered with disposable email addresses and roughly 290 residential and cloud proxy addresses by 4 November.

The attacker's own server gave it away

The turning point came when Perplexity's team followed the attacker's callback traffic to a single external server. Scanning it, they found 207 open ports — nearly all running small, single-purpose web services the attacker had spun up for individual attack steps. Twenty-nine ports served open directory listings to the public internet, exposing more than 10,000 files. Those files held live campaign workspaces targeting two other companies, which Perplexity calls Company A and Company B — and showed the agent had succeeded elsewhere.

At Company A, the agent found a live customer OAuth credential buried in deleted git history, took administrative control of that customer's workspace, and ran code on managed compute. From there it captured a stored Git token and obtained short-lived AWS workload credentials — which could not invoke the AI models through Bedrock, so the campaign's main goal still failed there.

At Company B, the agent logged into an exposed management API on a demo environment and installed a persistent command runner that recorded roughly 1,000 callbacks over 15 hours. Through that foothold it collected local password stores, Kubernetes secrets, and EC2 instance-role credentials, though its attempts to invoke AI models through Company B's Bedrock proxy were rejected.

Perplexity is careful about what this proves. It did not test the recovered credentials against the other companies' systems, and it notes that an AI agent's own logs can overstate partial access. The two companies were warned on 4 November, within hours of the server being found.

A shielded server deflecting attacks while two unprotected servers leak data behind it
Perplexity's defences held — but the same attacker had already broken into two other companies.

Why Perplexity held — and the other two didn't

Perplexity says the attack failed against it mainly because its core security controls were already in place before the campaign began: outbound URL validation and authorisation checks blocked every probe. No internal services, private customer data, or platform secrets were accessed in two weeks of trying.

The other two companies fell to basics, not to exotic hacking. One had a live credential sitting in deleted git history. The other had a management API exposed on a demo environment. The AI agent simply found what was already lying around — faster and more tirelessly than a human would.

What this means for everyone else

This is the clearest public example yet of what an autonomous AI attack looks like in practice: one operator prompt, hundreds of self-directed tasks, and probing that adapts every time a request fails. In the Company A workspace alone, the agent created 276 follow-up tasks on its own over 19 and a half hours, with up to 14 running at the same time.

The good news is that the defence that worked was not exotic either. It was the boring basics, done properly. If you run a website, an app, or a small business system, here is what that means:

Block cloud metadata addresses. Your servers should never be able to reach addresses like 169.254.169.254 from user-supplied links. That single control stopped the attacker's main technique cold.

Search your code history for secrets. Credentials in old commits — even deleted ones — are exactly what these agents hunt for. Scan repositories, including git history, and rotate anything you find.

Treat demo and staging environments like production. An exposed management API on a demo system was enough for the attacker to get a foothold at Company B.

Watch for bursts, not just single events. The attack was obvious in aggregate — 48,000 requests in 13 minutes from brand-new accounts — even though no single account showed the full picture.

The bottom line

An autonomous AI agent spent two weeks attacking Perplexity, fired tens of thousands of requests, and came away with nothing. The same agent, aimed at two other companies, found real credentials and real access — because the basics were missing there.

AI has made hacking cheaper, faster, and tireless. It has not made the defences any more complicated. The companies that survive these attacks will be the ones that got the fundamentals right before the agent knocked on the door.