Command Palette

Search for a command to run...

GitHub

An AI Agent Hunted Perplexity's Cloud Keys to Reach Bedrock Models

An autonomous attack agent spent two weeks probing Perplexity for credentials that could call frontier models on Amazon Bedrock. Boring controls stopped it.

By · · 6 min read · AI

Table of Contents

Perplexity says an autonomous AI hacking agent spent about two weeks trying to steal cloud credentials from its infrastructure, with one stated aim: get keys that can call frontier models on Amazon Bedrock. Its controls held, but the attacker’s own leaked files show two other companies were breached. I think the useful lesson is that access to models has become something worth stealing at machine speed, and that the defences which worked were ordinary ones.

What happened

On 2 December 2026, Perplexity published a write-up titled “How Perplexity defended against an autonomous AI attacker”. BleepingComputer covered it the same day, and Help Net Security followed on 3 December. According to Perplexity’s report:

  • 24 to 28 October: the attacker created disposable accounts and ran low-volume reconnaissance.
  • 2 November: high-rate sweeps began. At the peak, about 48,000 requests hit roughly 28,000 guessed API routes in 13 minutes, above 200 requests per second. Perplexity Computer, the company’s own agent platform, flagged the probing in application logs and escalated it to the security team.
  • 3 November: two more 15-minute sweeps of about 9,300 and 12,700 requests, both returning 404s.
  • 4 November: Perplexity found the attacker’s server and notified two other targeted companies.
  • 6 to 8 November: the last throwaway accounts were created and probing stopped.

The agent tried server-side request forgery (SSRF) against cloud metadata services, guessed secret file names in Amazon S3 storage, attempted privilege escalation and tried to read other customers’ data. AWS CloudTrail, the audit log for AWS API calls, recorded 3,681 failed S3 lookups across more than 3,300 unique keys over 14 hours, including names like .env.production and .aws/credentials. To dodge rate limits it rotated through more than 40 disposable-email accounts and about 290 residential and cloud proxy addresses.

Perplexity says the attacker reached no internal services, private customer data or platform secrets. Its summary: “Strong baseline controls stopped it.”

The more alarming part came from the attacker’s own server, which had 207 open ports and 29 unauthenticated directory listings exposing more than 10,000 files. Those files showed the operation ran on Cairn, an open-source agent harness, and that the goal in every workspace was cloud credentials able to invoke two unnamed frontier models through Bedrock. At Company A, the agent found a live customer OAuth token in deleted git history, took admin control of that customer’s workspace and got short-lived AWS credentials without Bedrock permissions. At Company B, it logged into an exposed management API on a demo environment, planted a persistent command runner and collected password stores, Kubernetes secrets and EC2 role credentials. Its attempts to call models through Company B’s Bedrock proxy were rejected.

Perplexity is careful to say the Company A and B details come partly from the agent’s own notes, and that “agents can misread responses or overstate partial access”. What the attacker wanted the models for is unknown.

Why it matters

Stolen cloud keys used to be valuable mainly for crypto mining or data theft. This campaign treated model access itself as the prize. If you run anything on Bedrock, Azure OpenAI or a direct model API, your credentials are now a payment instrument: whoever holds them can spend your inference budget.

The second shift is tempo and persistence. In Company A’s workspace, Cairn ran 277 tasks over 19.5 hours, up to 14 in parallel, with a median task length of 11 minutes. When one path hit a dead end, later tasks picked it up within minutes and tried a variant. A human red team doesn’t keep that pace overnight. Perplexity’s own line puts it well: “Agent harnesses make it cheap to probe targets around the clock and adapt as requests fail.”

The losers are teams whose security depends on attackers getting bored. The winners, for now, are teams with dull, consistent controls that hold no matter how many times they’re tested.

How an agent-driven credential hunt works

Cairn, as Perplexity describes it, structures a campaign as a graph. An operator sets a goal. Workers, each in a Kali Linux container with shell, network and headless browser access, record what they learn as “facts”, and the planner turns those into new “intents”, or tasks. Failures are facts too, which is why the agent could return to 19 of 37 paths it had labelled dead ends.

The target here was a short chain:

  1. Find a way to make the server fetch a URL. Features that preview links or pull content from the web are classic SSRF entry points.
  2. Point that fetch at the cloud metadata service. On AWS, an instance can ask a link-local address for temporary credentials of its attached role. The agent tried decimal and hex IP encodings, malformed URLs, tunnel redirects and DNS-rebinding domains to sneak past filters.
  3. Use the credentials to call Bedrock. If the role has bedrock:InvokeModel, the attacker now runs models on your bill.

Perplexity blocked step 2 with outbound URL validation that resolves hostnames and blocks private or link-local destinations at connection time, which is what defeats DNS rebinding. It also grouped the throwaway accounts by shared source IPs, disposable email domains and callback hosts, so rotation didn’t reset its view of the attacker.

Security researchers call the abuse of stolen keys to run someone else’s models “LLMjacking”. That term is mine to apply here, not Perplexity’s, since the end use in this case isn’t confirmed.

My take

I’m encouraged by this report, mostly because nothing in the winning column is exotic. Connection-time URL validation, authorization checks on every request, and correlation across accounts. Those are controls any team can ship this quarter.

I’m less convinced by the framing that AI defence is what saved Perplexity. Its agent platform helped with triage and five days of monitoring, which is real value, but the blocks were baseline controls Perplexity says were already in place. I’d credit the plumbing first.

The platform I work on at Assistable AI calls models on every conversation across voice, SMS, WhatsApp and web chat. When we brought operating cost from roughly $50K a month to under $8K, the main lesson was that spend follows whoever holds the credentials. A leaked model key shows up first as an invoice, and that invoice grows every hour the key stays live. That makes model permissions a finance control as much as a security one.

The Company A path is the one that worries me most: a token removed from code but still alive in git history. Deleting a secret from the latest commit does nothing if nobody rotated it. I made the same argument about the easyDNS breach, and agents will find these faster than any human attacker did.

What to do about it

For builders:

  • Any feature that fetches user-supplied URLs should resolve the hostname and block private, loopback and link-local ranges at connection time rather than by string matching. Require IMDSv2, the session-token version of the EC2 instance metadata service, on every instance.
  • Don’t give general workload roles bedrock:InvokeModel. Put model access behind a narrow role, used by one service, limited to the specific model IDs you need.
  • Scan full git history for secrets, then rotate anything found. Rotation is the fix; deletion isn’t.

For teams and companies:

  • Set billing alarms on Bedrock and other model spend, and alert on calls to models or regions you don’t normally use.
  • Correlate signups by IP, email domain and callback host. Rate limits per account are useless when accounts are free.
  • Take Perplexity’s suggestion seriously: point an agent at your own public code and endpoints before someone else does.
  • Shut down demo environments or put them behind the same auth as production.

For everyday users: nothing to do here. Perplexity says no customer data was reached.

What to watch next

  • Whether Company A and B come forward. Their own accounts would confirm or correct what the agent’s logs claim.
  • Cairn’s maintainers. Whether they add usage controls or guidance after a documented criminal deployment.
  • AWS guidance on Bedrock permissions. I’d watch for stricter defaults or new spend guardrails aimed at stolen-credential abuse.
  • More reports with the same shape. If other AI companies publish similar campaigns, model access will be confirmed as a standard target rather than a one-off.

Sources

  1. How Perplexity defended against an autonomous AI attacker · Perplexity
  2. Autonomous AI attack targeted Perplexity to steal cloud credentials · BleepingComputer
  3. AI agent that failed to breach Perplexity compromised two other companies · Help Net Security

Software engineer and engineering lead with 7+ years building AI platforms, voice systems and privacy-first products. Publishes independent research on AI agent reliability. Opinions are my own.

  • perplexity
  • amazon bedrock
  • ai agents
  • llmjacking
  • cloud security