An AI agent that failed against Perplexity breached two other firms
Perplexity traced an autonomous Cairn-based attack to an exposed staging server, finding the same operation had already stolen a customer OAuth token from deleted git history at one firm and backdoored a demo API at another.
Perplexity said on 2 December that it detected and contained an autonomous AI agent probing its systems for cloud credentials in late October and early November, then found the same operation had already breached two other companies it declines to name.
The attacker ran Cairn, an open-source agent harness that runs CLI coding agents inside a Kali Linux container with shell, network and browser access. Its recovered goal: steal an AWS key or Bedrock token able to invoke two unnamed frontier models. Against Perplexity, probing peaked on 2 November at roughly 48,000 requests in 13 minutes, attempting SSRF against cloud metadata endpoints, object-storage enumeration and privilege escalation. Existing outbound validation and access controls blocked all of it. The attacker’s own staging server turned out to be exposed too: unauthenticated directory listings handed Perplexity more than 10,000 of its working files, including task logs for two other victims. At one, the agent found a live customer OAuth credential sitting in deleted git history and used it to take over a workspace and run code on managed compute. At the other, it logged into a management API left open on a demo environment and planted a command runner that phoned home roughly 1,000 times over 15 hours while it collected password stores, Kubernetes secrets and EC2 instance-role credentials.
Why it matters: deleting a commit does not delete it from git history, and a “demo” environment with a working management API is a real target. Agent harnesses like Cairn make probing cheap enough to run continuously, so the same checks are worth running against your own infrastructure before someone else does.
The caveat: Perplexity only saw what sat on one exposed server. The attacker’s own control plane, and any other victims, stayed out of view.