For about two weeks this autumn, an autonomous AI agent worked its way through Perplexity's public attack surface looking for a way to steal cloud and AI-service credentials. It rotated through throwaway accounts and hundreds of proxies, guessed thousands of file names, and tried to get Perplexity's own servers to fetch internal resources for it. According to Perplexity's incident write-up, none of it worked.

Perplexity then found the attacker's own server, which was exposed to the internet, and saw that the same operation was running active intrusions against two other companies, neither of which has been named. Perplexity says it notified their security teams while the operations were still underway.

The story has a familiar shape: automation finds the weakest target. What's new is that the automation is a large language model planning its own next steps, running for hours at a time, and keeping its own notes about which leads had gone nowhere.

The Goal: Amazon Bedrock Access

Perplexity says the campaign workspaces it found on the attacker's server were aimed at obtaining credentials able to invoke frontier AI models through Amazon Bedrock, AWS's hosted service for running foundation models. Perplexity says the operator's prompt shows what the operator wanted but not why. Stolen access to a service like this would let someone run expensive models on another organization's bill, though that motive is our inference, not something the sources state.

Perplexity says the attacker accessed no internal services, private customer data or platform secrets during the attempt against it.

How the Probing Unfolded

According to Perplexity and reporting by Help Net Security, the attacker created disposable accounts in late October and ran low-volume reconnaissance. The high-rate sweeps began on Nov. 2, when Perplexity Computer, the company's own agent platform, flagged the activity. That first burst peaked at about 48,000 requests in 13 minutes. The next day brought two more 15-minute bursts of about 9,300 and 12,700 requests.

Over the campaign, the operator used more than 40 disposable email accounts and roughly 290 proxies to spread the traffic and avoid simple per-account or per-IP blocking. Perplexity says the agent tried several broad approaches, including:

  • Server-side request forgery (SSRF). In an SSRF attack, the attacker tricks a server into fetching a URL on the attacker's behalf, usually an internal address the attacker can't reach directly, such as a cloud metadata service that hands out credentials. Perplexity says outbound URL validation stopped these attempts.
  • Object storage and API path guessing. The agent guessed at file names and paths in cloud storage. AWS CloudTrail logged 3,681 failed lookups covering more than 3,300 file names over 14 hours, and no private file was opened, according to Help Net Security.
  • Privilege escalation. The agent probed organization and administrative permission endpoints from low-privilege accounts. Perplexity says the escalation attempts were denied.

The defenses that held were not exotic. Perplexity credits strict validation of outbound requests, which resolves hostnames and blocks private destinations at connection time, and authorization checks on requests.

Inside the Attacker's Server

The more revealing part of the write-up is what Perplexity found when it located the infrastructure behind the attack. Help Net Security reports that the server had 207 open ports, 29 of them serving public directory listings with more than 10,000 files anyone could browse. The attacker left its own working material exposed.

The operation ran on Cairn, an open-source framework for AI-driven penetration testing. The logs give a rare look at how an autonomous attacker spends its time. In one campaign, a single worker created 276 follow-up tasks over 19.5 hours, running up to 14 at once. It recorded 37 conclusions that a line of attack was a "dead end," and later tasks went back to 19 of them.

That revisiting behavior matters. A human attacker who writes something off usually moves on. Perplexity notes that agent harnesses make it cheap to probe targets around the clock and adapt as requests fail, so an agent can circle back to old leads, and some of the time a second look finds something.

What Worked Against the Other Two Companies

According to Perplexity, as relayed by Help Net Security and The Hacker News, the two intrusions came down to basic hygiene failures rather than novel vulnerabilities. None of the campaigns reached the Bedrock objective.

Company one: The agent found a live customer OAuth credential in deleted git history. It had been removed from the code but remained in the repository's past commits, and it still worked. That credential gave the agent administrative control of the customer's workspace and let it run code on managed compute. From there it reached internal endpoints behind IP allowlists, captured a stored Git token and obtained short-lived AWS workload credentials. Those credentials lacked permission to invoke Bedrock.

Company two: The agent logged into an exposed management API on a demo environment and deployed a persistent command runner, a small piece of software that kept checking back with the attacker. It recorded roughly 1,000 callbacks over 15 hours, and the agent collected local password stores, Kubernetes secrets and EC2 instance-role credentials. Attempts to invoke models through that company's Bedrock proxy were rejected.

Neither victim has been publicly identified, and the scope of these breaches beyond what Perplexity observed on the attacker's server hasn't been independently confirmed.

Perplexity's Caveats

Perplexity is careful about how far its view extends. It says the server was almost certainly only one slice of a larger operation, and only one workspace retained a full task graph. For the two other companies, its picture comes partly from the attacker's own coding agent's notes. Perplexity warns that agents can misread responses or overstate partial access, and says it did not test recovered credentials against third-party systems. An agent's log claiming it "has" something isn't the same as verified compromise. The full scale of the campaign and the number of other targets are unknown.

Neither Perplexity nor the reporting attributes the campaign to a named group or nation-state.

What It Means for Defenders

Who is affected: Any organization with internet-facing applications and cloud credentials worth stealing, especially credentials that unlock AI services such as Amazon Bedrock. You don't need to be a high-profile AI company to be a target: Perplexity says it was one of at least three targets, and the other two were not named.

This isn't a patch story. There's no CVE and no fixed version to install. The sources point to configuration and hygiene steps instead:

  • Scan git history, not just current code, for secrets. Deleting a credential from the latest commit does not remove it from the repository. Treat any secret that has ever been committed as exposed. Revoke and rotate it, then clean the history. Company one's breach started with exactly this.
  • Inventory exposed management and demo endpoints. Demo, staging and admin APIs are often set up quickly and forgotten. Find them, take them off the public internet or put real authentication in front of them. Company two's breach started with an exposed demo management API.
  • Validate outbound requests. If your application fetches URLs supplied by users, restrict where it can connect, and block internal addresses and cloud metadata endpoints, checking the destination at connection time. Perplexity says this is what stopped the SSRF attempts against it.
  • Enforce authorization on every request. Check permissions on the server side for each action, rather than trusting that a request from a logged-in user is allowed. Perplexity credits authorization checks, with outbound URL validation, for blocking every probe.
  • Scope cloud credentials tightly. At company one, the stolen AWS credentials were short-lived and lacked Bedrock permissions. Short lifetimes and least-privilege roles are the kind of limits that keep a compromise partial.
  • Watch for burst patterns and failed-lookup spikes. Tens of thousands of requests in minutes, or thousands of failed object-storage lookups in CloudTrail, are signals worth alerting on. So are many new accounts arriving through rotating proxies.
  • If you run Kubernetes or EC2, check what an attacker would get from a single foothold. At company two, one command runner was enough to collect password stores, Kubernetes secrets and instance role credentials.

Perplexity's closing point is that defenders can use the same kind of agent against their own code and internet-facing systems to find leaked secrets and exposed endpoints before an attacker does. Agent-driven probing is cheap and doesn't get tired. The practical answer is to make sure the easy finds, such as an old token in git history or a forgotten demo API, have already been found and closed by your own team.

For organizations working through CMMC or similar frameworks, none of this is new policy. Credential management, configuration control and access enforcement are already on the list. This incident shows what happens when an automated attacker tests whether those controls are actually in place.

Sources