An autonomous AI agent spent nearly two weeks probing Perplexity's systems, attempting to steal credentials that could unlock access to advanced AI models on Amazon Bedrock. The company says its security defences held firm, while its own AI assistant helped investigators trace the attack and identify other potential victims.
An AI agent was given a target, a specific objective and access to the internet. Over the two weeks, it independently explored thousands of routes, tested security weaknesses, switched between accounts and proxies, and repeatedly attempted to get past a company's defences. Its target was Perplexity.
The company has now revealed that it successfully defended itself against this autonomous cyberattack, which took place between late October and early November. The campaign peaked at approximately 48,000 requests in just 13 minutes, as the attacker attempted to obtain credentials for Amazon Bedrock, Amazon's cloud platform that provides access to AI models.
Perplexity said the attacker failed to access sensitive information or private customer data. However, the incident offered a detailed look at how autonomous AI agents can be deployed for offensive cyber operations, carrying out tasks that would traditionally require considerable human involvement.
In a series of posts on X on Wednesday, December 2, CEO Aravind Srinivas explained how the attack unfolded and how the company's security teams responded.
Inside Perplexity's two-week battle against an autonomous AI agent
Inside Perplexity's two-week battle against an autonomous AI agent
The attacker was not simply running a conventional programme that repeatedly attempted to break into a server. According to Srinivas, it used Cairn, an open-source agent harness that runs command-line coding agents inside a Kali Linux container, giving them access to a shell, network tools and a headless browser.
Once the initial task was provided, the agent largely operated independently. In one recovered workspace, its operator supplied the first instruction, after which the agent generated another 276 tasks over 19.5 hours. It could run as many as 14 tasks simultaneously, with each taking an average of 11 minutes.
Its activities were extensive. The agent swept through 28,000 guessed API routes, attempted 3,681 Amazon S3 lookups to locate files and tested server-side request forgery (SSRF) vulnerabilities. These vulnerabilities can potentially allow an attacker to trick a server into accessing internal resources that should not be publicly reachable.
When Perplexity blocked direct internal IP addresses, the agent tried alternative techniques, including hexadecimal and decimal IP encodings, redirect chains and DNS rebinding. It also switched accounts whenever rate limits were triggered, cycling through more than 40 disposable accounts and approximately 290 residential and cloud proxies.
Srinivas said investigators discovered 207 open ports running temporary Python listeners, another 29 ports hosting unauthenticated Python SimpleHTTP directory listings and more than 10,000 exposed working files.
The attacker was pursuing AWS keys or bearer tokens that could allow it to invoke frontier AI models through Amazon Bedrock. Perplexity could not establish what the attacker ultimately intended to do with the credentials.
How Perplexity used AI to track the attacker
Interestingly, Perplexity also turned to AI to investigate the incident. The company used Perplexity Computer, its AI agent platform, to monitor application logs, identify suspicious activity and connect the infrastructure used by the attacker.
According to Srinivas, the system linked browser accounts through shared IP addresses, email domains and callback hosts. It flagged the campaign on November 2, allowing engineers to establish a dedicated Computer workflow to monitor newly rotated infrastructure and prepare preventive security patches.
The company also found evidence suggesting that two other businesses had been targeted. It alerted them on November 4, within hours of discovering the attacker's exposed server. The campaign against Perplexity had stopped by November 8.
The company said it was among at least three targets. However, it did not publicly identify the other businesses or independently verify the credentials reportedly stolen from them.
AI security experts warn of a growing threat
AI security experts warn of a growing threat
The incident comes amid growing warnings AI systems being used to automate cyberattacks. Britain's AI Security Institute reported on Tuesday that two OpenAI models had independently compromised a simulated corporate network, despite there being no deliberately planted vulnerabilities or predetermined attack route.
However, the experiments were conducted with the models' safety restrictions disabled and without an active security team defending the network.
Peter Haigh, deputy chief technology officer at Britain's National Cyber Security Centre, cautioned that AI-driven attacks would likely be detectable, but only if defenders could respond quickly enough.
The threat is not entirely theoretical. In November 2025, Anthropic disclosed that suspected Chinese state- hackers had used Claude to conduct between 80 and 90 per cent of an espionage campaign targeting approximately 30 organisations.
Perplexity's investigation also highlights how attackers can exploit legitimate AI infrastructure for malicious purposes. While the company prevented its credentials and customer information from being compromised, the attempt demonstrates how quickly an autonomous agent can adapt when its initial methods fail.
The concern is no longer limited to hackers using AI to write malicious code. Bad actors can now deploy agents that investigate targets, generate follow-up tasks and change their approach with limited human intervention. Perplexity's experience shows that defending against them may increasingly require security teams to use AI tools of their own.
perplexity says it stopped a two week ai cyberattack targeting amazon bedrock credentials how did it fight back
The full story
This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.
