Someone used an AI agent as an attack tool against Perplexity. They failed to break in after two weeks, but the incident is worth a closer look.
Perplexity’s official postmortem on December 2 said that from late October to early November, an attacker deployed an autonomous, LLM-powered agent to target its infrastructure and try to obtain credentials for cloud and AI services. The target discovered the anomaly in its application logs using its own Computer agent, reported it to the security team, and then traced it back to the attacker’s servers.
The attacker used the open-source Cairn framework. Its worker ran in a Kali Linux container as a CLI-based coding agent, with access to a shell, the network, and a headless browser. Once launched, it was largely left to operate on its own. On one target, the worker spawned another 276 follow-up tasks, for a total of 277 intents, running for 19.5 hours.
The most important point in the official findings: the attacker did not access any internal services, private customer data, or platform keys. On Perplexity’s side, outbound URL validation and authorization checks blocked every probe.
But not all three targets in the same campaign came away unscathed. The official report also mentioned two unnamed targets where the attacker did obtain credentials: customer OAuth credentials at one, and Kubernetes secrets and EC2 instance role credentials at the other. The attacker didn’t achieve its goal of calling Bedrock, but it did obtain real credentials.
The Defiant added some context on the scale: the attack lasted two weeks, peaking at around 48,000 requests in 13 minutes.
For those using AI agents, here are three practical steps:
First, the agent’s runtime environment is itself part of the attack surface. A container with access to a shell, the network, and a headless browser gives it a full set of tools. Think carefully about what it needs before running it.
Second, grant credentials with the least privilege needed for each task, and revoke them when the task is done. This incident involved two types of targets: AKIA/ASIA key pairs and Bedrock bearer tokens. Mixing them can make it easy to lose track of permission boundaries.
Third, make sure your logs support retrospective investigation. Perplexity discovered the anomaly through its own agent’s review of application logs. The logs weren’t added after the fact—they were the only way to detect the incident at the time.
The above is solely my personal opinion and does not constitute investment advice. Crypto asset prices are volatile, so please be aware of the risks.
Perplexity’s official postmortem on December 2 said that from late October to early November, an attacker deployed an autonomous, LLM-powered agent to target its infrastructure and try to obtain credentials for cloud and AI services. The target discovered the anomaly in its application logs using its own Computer agent, reported it to the security team, and then traced it back to the attacker’s servers.
The attacker used the open-source Cairn framework. Its worker ran in a Kali Linux container as a CLI-based coding agent, with access to a shell, the network, and a headless browser. Once launched, it was largely left to operate on its own. On one target, the worker spawned another 276 follow-up tasks, for a total of 277 intents, running for 19.5 hours.
The most important point in the official findings: the attacker did not access any internal services, private customer data, or platform keys. On Perplexity’s side, outbound URL validation and authorization checks blocked every probe.
But not all three targets in the same campaign came away unscathed. The official report also mentioned two unnamed targets where the attacker did obtain credentials: customer OAuth credentials at one, and Kubernetes secrets and EC2 instance role credentials at the other. The attacker didn’t achieve its goal of calling Bedrock, but it did obtain real credentials.
The Defiant added some context on the scale: the attack lasted two weeks, peaking at around 48,000 requests in 13 minutes.
For those using AI agents, here are three practical steps:
First, the agent’s runtime environment is itself part of the attack surface. A container with access to a shell, the network, and a headless browser gives it a full set of tools. Think carefully about what it needs before running it.
Second, grant credentials with the least privilege needed for each task, and revoke them when the task is done. This incident involved two types of targets: AKIA/ASIA key pairs and Bedrock bearer tokens. Mixing them can make it easy to lose track of permission boundaries.
Third, make sure your logs support retrospective investigation. Perplexity discovered the anomaly through its own agent’s review of application logs. The logs weren’t added after the fact—they were the only way to detect the incident at the time.
The above is solely my personal opinion and does not constitute investment advice. Crypto asset prices are volatile, so please be aware of the risks.
