Perplexity: an autonomous AI agent fired 48,000 probes for Bedrock keys and hit two other firms
Between late October and early November 2026, an operator pointed the open-source Cairn multi-agent pentest framework at Perplexity and at least two other companies with a single goal: steal AWS credentials or service tokens that could invoke frontier models on Amazon Bedrock. Peaking on November 2 with roughly 48,000 requests in 13 minutes across 28,000 guessed routes, the agent was stopped completely by Perplexity’s URL validation and authorization boundaries, while Perplexity’s trace of an exposed attacker staging host uncovered active footholds at two unnamed companies.
How they got in
At Perplexity, they never did. Between late October and early November 2026, an unknown operator gave a single goal prompt to Cairn, an open-source multi-agent penetration-testing framework: find AWS credentials or service tokens that could invoke two specific frontier models on Amazon Bedrock. Instead of following a rigid script, the agent built its own task graph, spawning 276 subtasks over 19.5 hours with up to 14 running in parallel.
To get past basic rate limits, the swarm registered roughly 40 accounts using disposable email providers and rotated through around 290 residential and cloud proxy IPs. It searched public repositories, git history, packages, and container images for leaked secrets before switching to active probing. On November 2, the campaign peaked with roughly 48,000 requests in 13 minutes (over 200 requests per second) sweeping 28,000 guessed API routes, testing URL-fetch features for SSRF against AWS metadata endpoints, scanning object storage, and testing cross-tenant authorization.
An operator instructs the open-source Cairn agent harness to harvest AWS credentials or tokens for frontier models on Bedrock; the swarm plans 276 tasks and rotates across disposable accounts and proxies.
Cairn agent swarmProxy & account sweepThe agent sweeps 28,000 guessed endpoints at 200+ requests per second, probing URL fetchers and tenant boundaries. Outbound URL filtering and authorization hold with zero access.
Proxy & account sweepSSRF & API enumerationPerplexity’s internal AI monitor flags the multi-account burst; defenders trace callbacks to an exposed staging server with 207 open ports and 10,000+ campaign files.
Exposed staging serverRecovered workspaces show the same agent claiming AWS and Kubernetes credential access at two unnamed companies, though neither yielded target Bedrock access; Perplexity notifies both organizations on November 4.
Company A (unnamed)Company B (unnamed)
Figure 1. How the attack unfolded, and what stayed isolated. Select any step or box for details.
What they took
Perplexity’s own internal AI platform, Perplexity Computer, spotted the multi-account sweep in application logs on November 2. While tracing out-of-band probes back to their origin, Perplexity’s security team discovered that the attacker’s own staging host was wide open to the internet, exposing 207 open ports, 29 unauthenticated directory listings, and more than 10,000 campaign scripts, logs, and active workspaces.
Those workspaces revealed that Perplexity was only one of at least three corporate targets. According to the agent’s self-written logs, the swarm claimed deeper footholds at two unnamed companies: at Company A, exposed credentials led to customer workspace admin rights, internal systems, and AWS keys; at Company B, a breached demo environment yielded persistence, password stores, Kubernetes Secrets, and AWS credentials. Perplexity explicitly warned that an autonomous agent’s own logs can exaggerate real impact, noted that neither company gave the operator working Bedrock access to the targeted models, and notified both victims on November 4 while activity was still underway.
What Perplexity runs
Every layer at Perplexity held under 48,000 automated probes in 13 minutes. Yellow shows what the same attacker claimed at two other unnamed firms.
Hit or went downPart of the setupStayed safeNot known yet
Top: what people use. Lower down: what it runs on.
Public APIs and URL fetchers
Blocked every probeConfirmedStrict outbound URL allowlisting and per-tenant authorization stopped 48,000 automated requests across 28,000 guessed routes on Nov 2.
- Peak sweep on Nov 2: ~48,000 requests in 13 minutes (over 200 requests per second) from ~40 disposable accounts and ~290 proxies.
- Tested URL-fetch features for SSRF against link-local metadata (
169.), object storage, and cross-tenant access.254. 169. 254
Cloud keys and model access
Stayed safeConfirmedZero Perplexity cloud credentials, metadata tokens, internal systems or customer records were accessed.
- Operator goal prompt hunted AWS credentials or service tokens able to invoke two frontier models on Amazon Bedrock.
Internal security monitoring
Caught the burstConfirmedPerplexity Computer spotted the multi-account sweep in application logs the same day and traced out-of-band callbacks back to the attacker’s own exposed staging server.
- Attacker staging server exposed 207 open ports, 29 unauthenticated directory listings, and 10,000+ campaign files.
Cloud target sought by attacker
Part of the setupConfirmedThe autonomous Cairn swarm specifically hunted Amazon Web Services keys and Amazon Bedrock model access across multiple firms.
- Amazon Web Services
Perplexity uses Amazon Web Services. That does not mean it itself was breached.
- Amazon Web Services: Targeted
bedrock:InvokeModelcredentials across public git history, containers, and live API probes.
Two other unnamed companies
Claimed in agent logsInferredRecovered workspaces on the attacker’s staging server claimed footholds at two other unnamed firms, though Perplexity warned self-written agent logs can overstate real impact.
- Company A logs claimed customer workspace admin control, internal systems and AWS keys; notified Nov 4. Inferred
- Company B logs claimed demo-environment persistence, password stores, Kubernetes Secrets and AWS keys; notified Nov 4. Inferred
Not known yet
Withheld by vendor- Who operated the Cairn agent swarm and what they planned to do with Bedrock access.
- The names of Company A and Company B, and how much of the agent’s claimed access each firm confirmed.
Everything here comes from Perplexity’s Dec 2 security postmortem. This story has no public-record check.
What stayed safe
Every control at Perplexity held under sustained automated fire. Strict outbound URL validation prevented URL-fetch features from reaching the AWS instance metadata service or internal endpoints, and per-tenant authorization checks held across all 28,000 probed paths and 40 fresh accounts. Zero Perplexity internal systems, secrets, or user records were accessed.
How to defend against this
Block disposable signups
Enforce velocity limits on fresh accounts, block throwaway email domains on API-heavy features, and alert when dozens of new accounts rotate across residential proxy ASNs.
URL allowlist + IMDSv2
Validate outbound URL-fetch targets against private IP ranges and link-local addresses (169.254.169.254), enforce IMDSv2 with metadata response TTL set to 1, and enforce strict per-tenant authorization on every object path.
Isolate demos & Bedrock
Keep demo environments completely isolated from production secrets and Kubernetes clusters, scan full git history for leaked credentials, and restrict bedrock:InvokeModel with AWS SCPs and CloudTrail anomaly alerts.
restrict-bedrock-invoke-scp.jsonAWS Service Control Policy denying Amazon Bedrock model invocation from any IAM principal outside approved inference roles, stopping LLMjacking even if a dev or demo key leaks. Stops step 4.
{ "Version": "2012-10-17", "Statement": [ { "Sid": "DenyUnapprovedBedrockInvoke", "Effect": "Deny", "Action": [ "bedrock:InvokeModel", "bedrock:InvokeModelWithResponseStream", "bedrock:Converse", "bedrock:ConverseStream" ], "Resource": "*", "Condition": { "StringNotLike": { "aws:PrincipalArn": [ "arn:aws:iam::*:role/approved-inference-*" ] } } } ]}Appendix
Evidence log: what’s confirmed and what’s withheld
| Claim | Status | Source |
|---|---|---|
| An operator used the open-source Cairn multi-agent pentest framework with one goal prompt to hunt AWS credentials for frontier Amazon Bedrock models, creating 276 subtasks over 19.5 hours, ~40 disposable accounts, ~290 proxies, and ~48,000 requests in 13 minutes across 28,000 paths on November 2 | Confirmed | Perplexity security postmortem (Dec 2, 2026) and BleepingComputer |
| The human operator’s identity and intended downstream use for the targeted Amazon Bedrock models | Withheld by vendor | Unknown (Perplexity Dec 2 postmortem) |
| Perplexity traced out-of-band probes to an attacker staging host with 207 open ports, 29 open directory listings, and 10,000+ files; recovered agent logs claimed AWS credential, password store, and Kubernetes Secret access at two unnamed firms (Company A and Company B), though Perplexity cautioned those self-written logs may overstate real impact | Inferred | Attacker staging-host logs inspected by Perplexity (victims notified Nov 4, 2026) |
| Perplexity blocked all SSRF, storage enumeration, and authorization probes; zero Perplexity systems, credentials, or customer data were accessed, and neither other target yielded working Bedrock access for the operator’s target models | Confirmed | Perplexity security postmortem, Dec 2, 2026 |
Indicators of compromise
Cairn multi-agent harness signature (276 self-planned subtasks, 48k requests / 13 min, 200+ rps)Alert on newly created accounts firing thousands of distinct API route probes across rotating residential and cloud proxies.
https://www.perplexity.ai/hub/blog/how-perplexity-defended-against-an-autonomous-ai-attackerPrimary victim-side postmortem published by Perplexity on December 2, 2026.
Reproduction lab
Verifies IMDSv2 enforcement across EC2 instances and audits CloudTrail for unexpected bedrock:InvokeModel calls or bursts of 404/403 API enumeration from rotating IPs.
# Inspect recent CloudTrail InvokeModel calls across principals
aws cloudtrail lookup-events \
--lookup-attributes AttributeKey=EventName,AttributeValue=InvokeModel \
--max-results 25 \
--query 'Events[].{Time:EventTime,User:Username,IP:SourceIPAddress}' \
--output table