The short version
An AI agent running with almost no human help tried for two weeks to steal Amazon Bedrock credentials from Perplexity, failed, and got into two other companies instead. It did not need a new exploit. It found an old token in git history and an open demo API. Teams that run cloud and AI workloads should assume this kind of scanning now runs nonstop, and test their own systems the same way, for example with a penetration test and security audit.
What happened at Perplexity?
Perplexity published a write-up on December 2, 2026, describing an attack that ran from late October into early November. The attacker gave an AI agent one goal: get cloud credentials or service tokens that could call two latest-generation frontier models through Amazon Bedrock. TechCrunch, BleepingComputer, The Hacker News and Help Net Security covered the report within a day.
The attempt failed. Perplexity says outbound URL validation and authorization checks blocked every probe, and the attacker reached no internal services, customer data or platform secrets. Perplexity Computer, the company's own agent platform, spotted the probing in application logs and escalated it to the security team.
How did the autonomous AI attack work?
The attack ran on Cairn, an open-source penetration testing framework that lets AI agents work toward a goal set by an operator, with almost no human steps in between. Amazon researchers had already reported in November that attackers used Cairn to find and exploit an apparent zero-day on a university server.
Against Perplexity, BleepingComputer reports, the attacker used more than 40 disposable email accounts and about 290 residential and cloud proxies. After several days of quiet reconnaissance, traffic peaked on November 2 at roughly 48,000 requests in 13 minutes, more than 200 per second, aimed at about 28,000 possible API endpoints.
The agent tried several techniques in turn:
- server-side request forgery (SSRF) against URL-fetching features;
- probing of the AWS instance metadata service;
- enumeration of cloud storage and API paths;
- privilege escalation attempts;
- searches of public repositories, Gists, commit history, npm and PyPI packages for keys, according to The Hacker News.
What happened at the other two companies?
The same campaign broke into two other, unnamed companies. Perplexity found the evidence on the attacker's own server, which was left exposed: BleepingComputer counts 207 open ports, 29 web servers with open directory listings and more than 10,000 files. Live campaign workspaces there showed both intrusions, and Perplexity warned the two security teams while the attacks were still running.
Company A: a token in deleted git history
The agent found a live customer OAuth credential in deleted git history. The code no longer contained it, but the repository history did, and it still worked. With it the agent took admin control of that customer's workspace, ran code on managed compute, captured a stored Git token and obtained short-lived AWS credentials. Those credentials lacked permission to call Bedrock.
Company B: an exposed demo API
Here the agent logged into an exposed management API on a demo environment and deployed a persistent command runner. Over 15 hours the implant called back to the attacker about 1,000 times. It collected password stores, Kubernetes secrets and EC2 role credentials, then failed to reach Bedrock through a proxy.
What it means for US & EU software teams
Old mistakes are now found faster
Neither breach used a new vulnerability. A forgotten token and an open demo API were enough. An agent that tests thousands of endpoints and every key it finds makes such leftovers cheap to discover. Perplexity's own advice is to use the same capability on your own systems first.
AI model access is a target in its own right
The attacker was not after customer records. It wanted keys that could run frontier models on someone else's account. Any team that has added Bedrock, Azure OpenAI or similar services to a product now holds credentials worth stealing. Those keys need the same rotation, scoping and spend alerts as production database passwords.
Non-production systems need production rules
Demo and staging environments often have weaker access rules and real cloud roles attached. Company B shows the result: a demo API led to Kubernetes secrets and EC2 role credentials. For EU teams, a breach that reaches personal data still triggers GDPR rules, which give 72 hours to notify the supervisory authority, whatever environment it started in.
How can teams harden against AI-driven attacks?
- Scan full git history. Check every repository, including deleted commits and Gists, for secrets, and revoke anything that still works. Removing a key from code is not enough.
- Close management APIs. Put admin and management endpoints of demo and staging systems behind VPN or SSO, not just an obscure URL.
- Block metadata access from fetch features. Validate outbound URLs in any feature that fetches content, and require IMDSv2 on AWS instances.
- Scope AI credentials. Give Bedrock and other model access to dedicated roles with tight permissions, short-lived credentials and budget alerts.
- Alert on request bursts. Watch for hundreds of requests per second across many endpoints from rotating accounts and proxies.
- Test yourself on a schedule. Run authorized automated testing against your own perimeter so you find leaked keys before someone else does.
Frequently asked questions
What happened to Perplexity?
Perplexity disclosed on December 2, 2026, that an attacker ran an autonomous AI agent against its platform in late October and early November. The goal was cloud credentials or tokens that could call frontier models through Amazon Bedrock. Perplexity says every probe was blocked and no customer data or secrets were accessed.
What is Cairn?
Cairn is an open-source AI penetration testing framework. It coordinates AI agents that carry out security tasks on their own based on one goal from an operator. Amazon researchers reported in November 2026 that attackers had also used Cairn against a university server.
How big was the attack?
According to BleepingComputer, the attacker used more than 40 disposable email accounts and about 290 residential and cloud proxies. Activity peaked on November 2, 2026, at roughly 48,000 requests in 13 minutes, more than 200 requests per second.
Which other companies were breached?
Perplexity did not name them. At one company the agent used a live customer OAuth token found in deleted git history. At the other it reached an exposed management API on a demo environment and planted a command runner that called back about 1,000 times over 15 hours.
What should a software team check first?
Scan full git history, including deleted commits, for live tokens and revoke what you find. Take demo and staging management APIs off the public internet. Block server-side requests to cloud metadata endpoints, and set budget and usage alerts on AI model access such as Amazon Bedrock.
Sources
Perplexity — How Perplexity defended against an autonomous AI attacker (December 2, 2026)
TechCrunch — Perplexity caught an autonomous AI hacker trying to steal tokens (December 2, 2026)
BleepingComputer — Autonomous AI attack targeted Perplexity to steal cloud credentials (December 2, 2026)
Help Net Security — AI agent that failed to breach Perplexity compromised two other companies (December 3, 2026)
The Hacker News — Autonomous AI Hacker Targets Perplexity, Reportedly Breaches Two Other Companies (December 2026)
The Record — Amazon says Chinese hackers used Cairn AI tool to discover apparent zero-day (November 2026)