An AI hacking agent attacked Perplexity: 5 checks for your SaaS
An attacker's AI agent probed Perplexity for weeks and got into two other companies through an old git secret and a demo server. Five checks for your SaaS.
If you run a SaaS, expect attackers' AI agents to probe it the way one probed Perplexity: around the clock, from dozens of throwaway accounts, hunting for forgotten secrets and forgotten servers. In a report published on December 2, 2026, Perplexity says its defenses held. Two other companies targeted by the same attacker were breached: one through a credential left in deleted git history, the other through a demo server.
This week, check five things: secrets anywhere in your code history and releases, forgotten demo and staging hosts, features that fetch URLs, rate limits on free signups, and whether one account can read another's data. The list is below.
What happened at Perplexity
A person set the goal, and an agent did the work. According to Perplexity, an attacker ran an open-source agent harness called Cairn with a single goal written by the operator: find cloud credentials able to use two frontier AI models through Amazon Bedrock. Once launched, the agent planned and ran its own tasks.
| Date (2026) | What Perplexity saw |
|---|---|
| October 24 to 28 | First disposable accounts and low-volume reconnaissance |
| November 2 | Peak of roughly 48,000 requests in 13 minutes, across 28,000 guessed routes |
| By November 4 | More than 40 disposable-email accounts and roughly 290 proxy addresses, with a fresh signup whenever rate limits kicked in |
| November 6 to 8 | Last accounts created, then the probing stopped |
The agent tried to make Perplexity's link-fetching features reach cloud metadata and internal addresses, guessed file names like .env.production, .aws/credentials and state.tfstate in storage, swept thousands of API paths, and tested whether it could open other users' threads and files. Perplexity says every attempt was blocked, and the attacker "accessed no internal services, private customer data, or platform secrets".
How the two other companies were breached
Perplexity traced the probes to the attacker's own server, which was left open to the internet. Its folders held the agent's working files for two other targets, which Perplexity calls Company A and Company B, and it warned both on November 4. What follows is what those workspaces showed, as Perplexity describes it:
- At Company A, the agent found "a live customer OAuth credential in deleted git history", took administrative control of that customer's workspace, ran code on managed compute, and captured a stored Git token and short-lived AWS credentials.
- At Company B, the agent "logged into an exposed management API on a demo environment", installed a persistent command runner, and collected local password stores, Kubernetes secrets and cloud instance credentials.
Perplexity adds a caveat: this picture comes from the agent's own notes, and "agents can misread responses or overstate partial access". Neither campaign reached its final goal.
The method matters more than the names. Before attacking, the agent searched certificate transparency logs and DNS records for hostnames, tried -testing and -staging variants, scanned thousands of repository forks with their full history, and unpacked npm and PyPI packages, container images and mobile app builds looking for keys. It only tested complete credentials, a key ID together with its secret.
It is not one case
The same week, two more reports described attacks that used AI tools:
- Security firm SOCRadar found an attacker's exposed server, according to The Register. Between November 17 and 25, the attacker had an AI agent probe 26 affiliate and payment providers at about $3 per target, and SOCRadar says the stolen card data came from attacks on three organizations.
- Microsoft investigated an intrusion at an internet service provider where, "within 13 minutes" of the first recovered command, the operation uploaded web shells to three more servers. Microsoft says AI assisted parts of the operation, but the evidence "does not establish complete autonomy".
The techniques in these reports are familiar ones. What changed is the cost: one person can now point an agent at many small companies at once and let it grind through the boring searches.
Five checks for your SaaS this week
- Search your full history, not just your current code. Look for keys and tokens in every commit, including deleted branches, plus forks, published npm or PyPI packages, container images and mobile builds. Rotate anything you find. Deleting the file doesn't help, because Company A's credential was in deleted history. Also make sure files like
.envor cloud credentials are never readable from public storage. - Find and shut down forgotten environments. List every demo, staging and test host, especially ones with an admin or management API. If nobody uses it, turn it off; if it must stay, put it behind a login and an IP restriction. Company B's breach started on a demo server.
- Lock down any feature that fetches a URL for the user. Link previews, imports and webhooks should refuse private, local and cloud metadata addresses. Perplexity's validator checks the address when it actually connects, after resolving the name, which is what stopped the agent's tricks.
- Make rate limits survive a new signup. The agent opened a fresh free account each time it hit a limit. Limit by IP, device and email domain, not only by account, and watch for waves of signups from disposable email domains.
- Test that one account can't read another's data. Change the ID in a request for a file, project or invoice and confirm you get "not found" or "forbidden". The agent tried exactly this at Perplexity.
If your app keeps API keys in environment variables, our post on Next.js apps that lost 50,000+ keys covers what to rotate once a secret leaks.
How Volturion helps
Volturion watches the outside of your business the way this agent did, so you can find the same things first:
- Its code analysis scans connected repositories for secrets across the full git history and checks whether a found credential still works, so a live key in an old commit stands out.
- Its web scan looks for secrets in the JavaScript your site serves.
- Every week it reads certificate transparency logs for new subdomains, and it also discovers subdomains from public sources, so a forgotten
stagingordemohost shows up. - Every week it checks for publicly listable cloud storage buckets that match your domain name.
These checks cover what is exposed from the outside. They don't replace testing your own app's rate limits, URL-fetching features and access between accounts. Our explainer on what a vulnerability scan does shows where scanning ends and testing begins.
Create your account and add your domain and repositories to start the first check.