Autonomous AI Agent Attacked Perplexity for Two Weeks, Failed to Steal Bedrock Credentials
Perplexity CEO Arav Srinivas disclosed a real attack on the company's systems: from late October to early November, an attacker used an autonomous AI agent to run a two-week automated campaign against Perplexity, aiming to steal AWS keys or bearer tokens that could invoke two frontier models on Amazon Bedrock. The attack failed, Perplexity lost nothing, and two other targeted companies were compromised. The company has since published a full technical postmortem with indicators of compromise (IoC) and practical recommendations for engineering and security teams.
Confirmed
- The attacker used the open-source agent harness Cairn, running a CLI coding agent in a Kali Linux container with shell, network, and headless browser access. The attack logic lived mostly in a single graph.yaml file containing the operator's goal prompt.
- The goal prompts for all three targeted companies were identical: steal Bedrock frontier model credentials.
- The recovered attack workspace shows the operator only had to launch the first task; the agent then created 276 tasks on its own over 19.5 hours (up to 14 in parallel, median 11 minutes each), mining certificate logs, web archives, npm/PyPI packages, and mobile builds, and scanning 10 public Git repos. At peak, it fired 48,000 requests in 13 minutes.
- Attack techniques included brute-force scanning of roughly 28,000 guessed API routes, 3,681 S3 probes looking for files like .env.production and .aws/credentials, and testing Perplexity's link-fetching feature for SSRF—all blocked.
- Rate-limit evasion: rotating through 40+ disposable accounts and about 290 residential and cloud proxies; when internal IPs were blocked, the agent tried hex/decimal IP encoding, redirect chains, and DNS rebinding.
- The attacker's own infrastructure was sloppily secured: 207 ad-hoc Python listeners ran behind their redirect scripts on open ports, 29 of which served unauthenticated SimpleHTTP directory listings directly to the public internet, exposing over 10,000 working files.
- Perplexity used its own Computer product to monitor app logs and triage alerts, correlating disposable accounts via shared IPs, email domains, and callback hosts. It flagged the attack on November 2, then ran a dedicated workflow for over 5 days tracking rotating new accounts while hardening systems in parallel.
Why it matters
- Arav Srinivas's core lessons: agent harnesses make probing cheap, tireless, and adaptive—one prompt can fan out into hundreds of parallel tasks that automatically route around failed checks; fundamentals decide who wins on day one; and a single-account view misses the whole attack, requiring cross-signal correlation.
- This is the first fully documented real-world case of an "AI agent attacking an AI company," offering direct reference value for engineering and security teams.
2026-12-03 ~ 2026-12-03 · 11 related posts
Primary sources
- Autonomous AI agent hit Perplexity for two weeks, 48K requests in 13 minutes — AravSrinivas ·
- Perplexity publishes technical postmortem of AI agent attack with security takeaways — AravSrinivas ·
- Perplexity CEO details AI agent attack: 28,000 route sweeps and DNS rebinding all blocked — AravSrinivas ·
- [source] Autonomous AI agent hit Perplexity for two weeks, 48K requests in 13 minutes — AravSrinivas · 2026-12-03
- [source] Perplexity CEO details AI agent attack: 28,000 route sweeps and DNS rebinding all blocked — AravSrinivas · 2026-12-03
- Agent swept 28K API routes and 3,681 S3 lookups hunting for credentials — AravSrinivas · 2026-12-03
- Agent rotated 40+ throwaway accounts and ~290 proxies to evade rate limits — AravSrinivas · 2026-12-03
- Perplexity used its own Computer agent to track the attacker for 5 days — AravSrinivas · 2026-12-03
- Attacker's own infrastructure leaked: 207 open ports, 10K files exposed — AravSrinivas · 2026-12-03
- Attack ran on Cairn, an open-source agent harness in a Kali Linux container — AravSrinivas · 2026-12-03
- Offensive agent self-created 276 tasks over 19.5 hours, resilient to dead ends — AravSrinivas · 2026-12-03
- Agent attacks hit 3 companies for Bedrock keys; Perplexity tipped off victims within hours — AravSrinivas · 2026-12-03
- Perplexity's 3 takeaways from the AI agent attack on its systems — AravSrinivas · 2026-12-03
- [source] Perplexity publishes technical postmortem of AI agent attack with security takeaways — AravSrinivas · 2026-12-03