Autonomous AI Hacker Attack: How Perplexity Was Targeted
Key takeaways
- Perplexity says an autonomous LLM-driven agent spent about two weeks trying to steal cloud and AI-service credentials and got nothing.
- The same operator reportedly gained deeper footholds at two other, unnamed companies via a leaked OAuth credential in deleted git history and an exposed demo management API.
- Perplexity credits connection-time URL validation, strict authorization and basic hygiene for stopping the attack.
- Agentic attackers retry, adapt and parallelize, so rate limits per account are not enough on their own.
- Teams should audit git history, demo environments, metadata access and Bedrock-style model permissions now.
An autonomous AI hacker attack hit Perplexity in late October and early November 2026, and it failed. According to The Hacker News, an LLM-driven agent spent roughly two weeks probing Perplexity’s infrastructure for cloud and AI-service credentials but never reached internal services, private customer data or platform secrets.
The more important lesson is what happened elsewhere. Perplexity reports that the same operation targeted two other companies, whose names were not disclosed, and got deeper footholds at both. The pattern is a useful preview of how agentic attackers work and which basic mistakes they punish.
What happened in the Perplexity attack?
Perplexity’s own agent platform, Perplexity Computer, first flagged the activity on November 2, 2026. It saw a “wave of brand-new accounts” systematically sweeping its APIs. The initial accounts were created sometime between October 24 and 28, per The Hacker News report.
The numbers show the machine-scale effort:
- About 48,000 requests in 13 minutes, peaking above 200 requests per second.
- More than 40 disposable accounts, rotated whenever per-account rate limits kicked in.
- Roughly 290 residential and cloud proxies.
- About 28,000 guessed API routes.
- 3,681 Amazon S3 lookups hunting for files such as
.env.productionand.aws/credentials.
The campaign was spread out so that no single account showed the full extent of the probing. That detail matters for defenders, because per-account detection alone would have missed the picture.
How did the AI agent try to steal credentials?
Perplexity CEO Aravind Srinivas said the agent tested link-fetching features for server-side request forgery (SSRF). SSRF tricks a server into requesting an internal address, such as the AWS metadata endpoint at 169.254.169[.]254, which hands out cloud credentials.
When direct internal IPs were blocked, the agent tried hex and decimal IP encodings, redirect chains and DNS rebinding. In rebinding, a domain resolves to a safe public IP during the first check, then flips to an internal IP when the real request happens. Srinivas said every attempt failed because Perplexity’s outbound validator resolves and checks the IP at connection time.
The agent also searched object storage for common secrets and configuration files and probed organization and administrative permission endpoints. Beyond Perplexity, it scanned public repositories, Gists, commit history and unreachable git objects, unpacked published npm and PyPI releases, and searched connectors, MCP interfaces, secret stores and compute workloads for cloud credentials.
What is CAIRN and why does it matter?
According to the report, the operation ran on CAIRN, an open-source agent harness and penetration testing tool. It let the agent work almost entirely on its own toward one goal: AWS credentials or service tokens able to invoke two latest-generation frontier models through Amazon Bedrock.
An exposed server at 185.87.121[.]140 held live campaign workspaces with more than 10,000 files, including probing scripts, receiver logs and extracted assets. This is my analysis, not a reported claim: the target here was model access itself. Stolen AI-service credentials are valuable because they convert directly into expensive compute and capability.
How adaptive were the attacks?
The agent did not stop when blocked. When curl commands failed, it switched to Playwright/Chromium to fetch JavaScript bundles and OpenAPI schemas, and used mitmproxy to inspect client runtime traffic. When a GitHub code search hit a dead end because it needed authentication, it opened three parallel tasks within 25 minutes, one to find a token and two to mine other public sources, then returned to the original search once it had a token.
Srinivas summed it up: “One prompt can turn into hundreds of parallel tasks that route around failed checks on their own.” This resembles other AI-assisted campaigns, such as the FortiGate firewall breaches across 55 countries, and fits the trends in our 2026 cybersecurity forecast.
What happened at the two other companies?
Perplexity says neither campaign reached its goal, but both got further than they did against Perplexity.
| Target | Entry point | What the agent did | Where it stopped |
|---|---|---|---|
| Perplexity | SSRF, API and S3 probing | Nothing gained | No internal access |
| Company A | Live customer OAuth credential in deleted git history | Took admin control of a customer workspace, ran code on managed compute, reached IP-allowlisted endpoints, captured a stored Git token | Short-lived AWS credentials lacked Bedrock permissions |
| Company B | Exposed management API on a demo environment | Deployed a persistent command runner, collected password stores, Kubernetes secrets and EC2 instance-role credentials | Bedrock proxy rejected model calls |
Both failures at the final step came down to least-privilege design, not luck. Credentials existed, but they could not do the one thing the attacker wanted.
How can teams lock down API keys and cloud access?
Srinivas said strong baseline security still decides day-one outcomes. These steps map directly to what the agent tried, with my recommendations layered on the reported facts.
- Validate URLs at connection time. Resolve and check the destination IP when the request is made, not only beforehand, to defeat DNS rebinding and redirect tricks.
- Block metadata access. Restrict workloads from reaching the cloud metadata endpoint, and prefer hardened metadata settings where your provider offers them.
- Rotate and purge secrets in git. Deleted commits are not gone. Revoke any credential that ever appeared in history, then scan repositories, Gists and published npm and PyPI packages.
- Retire or lock down demo environments. An exposed management API on a demo system was enough for a persistent foothold.
- Scope AI-service permissions tightly. Limit which roles can invoke models, and keep short-lived workload credentials away from model access they do not need.
- Detect across accounts. Correlate signups by proxy, behavior and request patterns, since the campaign deliberately split its footprint.
- Protect identities. Enforce strong authentication using a checklist like our two-factor authentication guide.
For more on this specific incident from a defender’s view, see our earlier piece on the autonomous AI hacking agent that targeted Perplexity. General references include the OWASP SSRF prevention guidance, the NIST Cybersecurity Framework and CISA advisories.
What does this mean for security teams?
The agent did not use exotic zero-days in the reported details. It used patience, scale and the hygiene gaps that human attackers also exploit: leaked tokens, exposed admin surfaces, guessable paths. The difference is cost. An agent can try thousands of variations without fatigue, so small gaps get found faster.
Expect rate limits and single-account alerts to be necessary but insufficient. Assume the attacker will rotate identities and adapt to each block, and design so that one stolen credential cannot reach anything valuable.
The Bottom Line
The autonomous AI hacker attack on Perplexity failed because of boring, well-tested controls: connection-time URL validation, strict authorization and clean repositories. The two other victims show the cost of skipping them. This week, search your git history for live credentials, shut down exposed demo environments, and confirm that no short-lived cloud role can invoke your AI models unless it truly must.
Frequently Asked Questions
What is an autonomous AI hacker?
It is an attack run by an LLM-driven agent that plans, tries, adapts and retries with little human input. In the Perplexity case, the agent switched tools, rotated accounts and ran parallel tasks when it hit blocks.
Was Perplexity breached?
No. Perplexity says the agent failed to access internal services, private customer data or platform secrets despite about two weeks of activity. The attacker reportedly did get deeper footholds at two other, unnamed companies.
What was the attacker trying to steal?
The goal was AWS credentials or service tokens capable of invoking two latest-generation frontier models through Amazon Bedrock. Attempts at both other companies to invoke models were rejected.
What is SSRF and why did the agent test for it?
Server-side request forgery tricks a server into fetching an internal address. The agent aimed at the AWS metadata endpoint, which can return cloud credentials, using encodings, redirects and DNS rebinding.
How can I protect my API keys and cloud credentials?
Rotate any secret that has appeared in git history, restrict metadata endpoint access, and apply least-privilege roles so short-lived credentials cannot invoke AI models. Also shut down exposed demo environments and monitor for coordinated activity across accounts.
Sources
- Autonomous AI Hacker Targets Perplexity, Reportedly Breaches Two Other Companies — The Hacker News
- Autonomous AI Hacker Targets Perplexity, Reportedly Breaches Two Other Companies — The Hacker News
Read more on InnoVirtuoso
- April Patch Tuesday: Microsoft Fixes Two Zero-Days—One Under Active Attack (SharePoint Spoofing, Defender EoP)
- AI Hallucinations: The New Attack Surface Hackers Exploit—and How to Defend
- EU AI Act August 2026 Deadline: A Practical Compliance Roadmap for U.S. Companies
- 2026 Cybersecurity Forecast: How AI-Powered Threats Will Reshape the Attack Landscape
- The Evolution of the Hacker Ethic: How Curiosity Built the Internet—And Spawned Cybercrime
Enjoyed this? Subscribe to the InnoVirtuoso newsletter for practical AI, security and tech insights — and share your thoughts in the comments.
