An AI Agent Attacked Perplexity: What to Check on Your Site
On December 2, 2026, Perplexity described how it stopped an autonomous AI agent that, between late October and early November, probed its systems for cloud and AI-service credentials. According to the company, the agent got none. Two other companies hit by the same campaign did see intrusions.
What we know
- When: according to Perplexity's report, which is the attacked company's account, the attacker created disposable accounts and ran low-volume reconnaissance from October 24 to 28, launched fast sweeps on November 2 and stopped probing between November 6 and 8.
- What it wanted: cloud credentials or tokens able to run two latest-generation AI models through Amazon Bedrock, according to the operator's written goal, which Perplexity recovered.
- How much traffic: the largest sweep, on November 2, sent roughly 48,000 requests in 13 minutes across 28,000 guessed API routes, peaking at over 200 per second, the company says.
- What it tried: among other things, getting the server to fetch internal addresses on its behalf (SSRF), guessing files that hold secrets, escalating privileges and reading other users' data, rotating through more than 40 disposable accounts. Over 14 hours, Perplexity's AWS logs recorded 3,681 failed lookups across more than 3,300 files, including
.env.productionand.aws/credentials. - What ran it: Cairn, an open-source harness that coordinates AI agents, according to Perplexity. TechCrunch likens it to ARTEX; Perplexity does not make that comparison.
- The attacker's server: Perplexity found its directories open to the internet and, inside, live campaigns against two other companies, which it alerted on November 4.
- Outcome at Perplexity: the company says its controls blocked every attempt and the attacker reached no internal services, customer data or secrets.
- Outcome at the other two: without naming them, Perplexity says that at one the agent found a live customer credential in deleted git history and took control of that customer's workspace. At the other, it got in through a management API exposed on a demo environment and collected passwords and secrets. Neither campaign managed to use Bedrock. Perplexity warns that this part comes from the attacking agent's own notes, which may overstate what it achieved.
What changes and what doesn't
What changes is scale. One operator with one written goal set an agent loose that, in one of the campaigns, created 276 tasks on its own in 19.5 hours, according to Perplexity.
What works as defense does not change. At Perplexity, basic controls stopped it: checking which addresses its servers fetch and verifying permissions on every request. At the other two, familiar mistakes failed: a credential still live in a repository's history and a management tool left open on a test environment.
This is not a bug in a specific product: there is no patch to install.
How to tell if it affects you
If your website or store runs its own server, an API or a staging environment, these checks are in order of urgency. The list is this article's, not Perplexity's.
- Make sure your config files can't be downloaded. In a private window, open your domain followed by
/.envand/.git/config. If you see text instead of a 403 or 404 error, block it on the server today and rotate every key it shows. - Search your repositories' history for keys, not just the current version. Deleting a file doesn't remove the key from history; tools like gitleaks scan all of it. If a key turns up, revoke it and issue a new one.
- Review staging and demo environments. Subdomains like
stagingortesting, which the attacker looked for according to Perplexity, are often left with open dashboards. Put them behind a password or an IP allowlist, or shut them down. - If your site fetches links users paste (link previews, importing an image from a URL, a chatbot that reads pages), confirm the server rejects internal addresses, including the cloud metadata address, and that it checks after following redirects. If you don't know, ask whoever built that feature.
- Limit what each cloud key can do. A backup key doesn't need admin rights. If you pay for an AI service in the cloud, turn on spending alerts: this attacker wanted to run models at someone else's expense.
- Check your logs when traffic spikes. Thousands of 404 errors in minutes from brand-new accounts is the footprint Perplexity describes. Rate limits per account and per IP slow it down.
- If a provider maintains your site, ask them today: "Is any
.envfile, repository or staging environment reachable from the internet, and where are the cloud keys stored?"
Related: AI Agents Hunt Exposed AI Apps to Steal Keys: What to Check
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
Updates: if Perplexity or the other two companies publish more details, they will be added here with a link.