BlogIncident Analysis

What an Autonomous AI Attacker Tried Against Perplexity — and the Cloud Controls That Stopped It

Between 24 October and 8 November 2026, an LLM-driven agent ran a sustained reconnaissance-plus-exploitation campaign against Perplexity. The attacker's own exposed server, later recovered, revealed the goal in plain text: steal cloud credentials and gain access to Amazon Bedrock frontier models. The techniques — SSRF to cloud metadata, S3 key guessing, API sweeps — were standard 2017-era cloud offence wrapped in a 2026-era agentic loop. The defender outcome: "outbound URL validation and authorization checks blocked every probe." No internal services, customer data or platform secrets were accessed. This is the clearest recent case study of exactly which cloud controls win against an autonomous AI attacker, and where every team should check their own posture.

10 min readBy TigerGate Research, Security Research TeamPublished Updated

Short answer

  • · 24 Oct – 8 Nov 2026 (UTC). Agentic attacker runs six technique classes against Perplexity.
  • · Peak volume: ~48,000 requests in 13 minutes on 2 November.
  • · S3 reconnaissance: 3,681 failed GetObject lookups across more than 3,300 guessed keys in a 14-hour window.
  • · Attacker goal: credential harvesting aimed at Amazon Bedrock access — classic LLMjacking.
  • · Defender outcome: every probe blocked by URL validation and authorization checks.

Timeline

Date / UTCEvent
24 Oct 2026Campaign begins — first automated probes against Perplexity's public surface.
2 Nov 2026Peak burst: ~48,000 requests in 13 minutes. S3 sweep running in parallel.
2 Nov 2026 (14h window)3,681 failed S3 GetObject attempts across 3,300+ guessed keys.
8 Nov 2026Campaign winds down. Perplexity's controls have blocked every probe end-to-end.
2 Dec 2026Perplexity publishes the post-mortem, including the attacker's exposed-server workspaces that named Bedrock access as the goal.

The six techniques, and what blocked each

The campaign used six technique classes. Each one is defeated by a specific defensive control that every cloud-native team should verify in their own environment today.

1. SSRF to cloud metadata

The textbook path: trick a server-side fetch into requesting http://169.254.169.254/latest/meta-data/iam/security-credentials/ and read the IAM role credentials from the response. The agentic attacker tried obvious payloads and then rotated through evasion variants (see next section).

Blocked by: outbound URL validation at the application layer, resolving hostnames and rejecting any that fell in 169.254.0.0/16, loopback, private RFC 1918 ranges, or IPv6 link-local before the socket opened.

2. S3 key guessing / bucket enumeration

Thousands of targeted GetObject requests against predictable key patterns — backup/, exports/, timestamped filenames, common pipeline artefacts. 3,681 failures on 3,300+ keys in 14 hours.

Blocked by: least-privilege bucket policies that denied anonymous and cross-account access, plus CloudTrail alerting on bursts of 403/NoSuchKey from a single source. Keys that don't exist and buckets that don't accept anonymous reads are the first line.

3. Internal API sweeps

Attempts to reach internal services via misrouted or forgotten public endpoints — admin paths, legacy debug endpoints, mis-published microservice routes.

Blocked by: every internal service required authenticated requests with valid session-bound tokens. Routes that should not be exposed were not exposed, verified by continuous ASM.

4. Credential-harvesting attempts via form fields

Probing user-input fields for signs of credential leakage via error messages, debug output, or reflected-input bugs.

Blocked by: structured error responses that did not leak internal state, plus redaction of any potentially sensitive strings in logs.

5. Authentication / authorization bypass attempts

Variants on JWT tampering, header manipulation, and path confusion to reach authenticated endpoints without credentials.

Blocked by: uniform authorization middleware that re-validated every request at the API layer, not the gateway alone. A single enforcement point meant no "legacy" routes with lenient checks.

6. Known-CVE probes against inferred framework versions

The loop fingerprinted public assets and launched exploitation attempts against known CVEs for inferred versions of common frameworks.

Blocked by: patched frameworks (a current patching program with KEV-first prioritisation — see our BOD 26-04 writeup), and WAF signatures for the mechanical probe shapes.

SSRF evasion techniques an agentic attacker will try

The agentic loop doesn't give up on the obvious 169.254.169.254 after the first block. It cycles through variants. Validate your SSRF defences against all of these:

  • Decimal encoding — http://2852039166/ is the same IP; naive parsers miss it.
  • Hex encoding — http://0xA9FEA9FE/ likewise.
  • Mixed / shortened notations — http://169.0254.169.254/, http://169.254.43518/.
  • IPv6 variants — http://[::ffff:169.254.169.254]/, and the AWS IMDS IPv6 endpoint fd00:ec2::254.
  • Open-redirect chains — fetch an attacker-controlled URL that 302-redirects to a metadata endpoint. Your SSRF filter must apply to every hop, not just the initial request.
  • DNS rebinding — a controlled hostname that resolves to a public IP at parse time and to the metadata IP at connection time. Validate after DNS resolution, at connection time — not at URL-parse time.
  • Malformed URL parsers — bugs where the application parses the URL differently than the HTTP client resolves it. A canonical trick: userinfo-authority confusion like http://[email protected]/.

The attacker's goal was Bedrock — which makes this LLMjacking

The workspaces recovered from the attacker's exposed server named Amazon Bedrock access as the explicit target. This is the shape of the economic model now driving an increasing share of cloud intrusions: attackers need stolen LLM-provider credentials (or stolen access to cloud-hosted frontier models) to fund their own agentic loops. The agentic loop is expensive to run; stolen keys subsidise it. Expect the share of cloud intrusions targeting model access rather than customer data to keep growing. See our how to stop LLMjacking guide for the full defender playbook and AOF field report for the broader trend.

Defensive checklist — copy this to your estate today

  1. Enforce IMDSv2 on every EC2 instance. Session-token-protected metadata requests block almost every drive-by SSRF payload at the metadata layer itself. Check launch templates, auto-scaling groups, and existing instances.
  2. Validate outbound URLs at connection time. Not at URL parse time. Resolve the hostname, inspect the resulting IP, block anything in 127.0.0.0/8, 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 169.254.0.0/16, fc00::/7, fe80::/10. Apply to every redirect hop.
  3. No long-lived keys in buckets. Strong bucket policies, no anonymous reads, no public-ACL legacy. For buckets hosting secrets: KMS encryption, bucket-key policies, Access Analyzer monitoring.
  4. CloudTrail alerts on S3 403 / NoSuchKey bursts. A single IP generating thousands of failed GetObject attempts in minutes is the shape of S3 enumeration. Alert on it.
  5. Least-privilege Bedrock invoke rights. Scope bedrock:InvokeModel to specific model ARNs, specific calling identities, and spend caps. A compromised identity should not be able to drain your AI budget on frontier-model calls.
  6. Egress-block AI provider APIs from workloads that don't legitimately call them. If a retrieval service has no business reaching bedrock-runtime.*.amazonaws.com or api.openai.com, deny it at the VPC endpoint / egress proxy.
  7. Watch burst traffic as a signal, not just a performance metric. Peak-of-48k-requests-in-13-minutes is the kind of pattern WAF rate limits and SIEM correlation should surface automatically.

How TigerGate CSPM and runtime map to the checklist

  • CSPM checks IMDSv2 enforcement across EC2, SSM and EMR — the exact checks listed on the AWS CSPM check library. Any instance without IMDSv2 required is surfaced with its launch-context so you can pin it in the launch template, not just the running instance.
  • CSPM also flags public S3 buckets, bucket policies that allow anonymous reads, and keys that look like credential material by naming convention. These are the preconditions for the S3-enumeration leg of the Perplexity campaign.
  • Identity Security (CIEM) surfaces over-broad Bedrock permissions — bedrock:* on a role that only needs InvokeModel on one model ARN — so the compromise blast radius is bounded if a workload identity is ever lifted.
  • eBPF runtime detection flags the ground-truth signals: anomalous outbound connections from workload identities, metadata-service probes from unexpected processes, and sudden burst traffic shapes from pods that normally idle.
  • CDR correlates the signals above with CloudTrail / provider logs so a 48k-requests-in-13-minutes burst against a Perplexity-shape surface in your estate wouldn't sit in the noise.

FAQ

Cloud and AI-service credentials. According to the workspaces Perplexity recovered from the attacker's exposed server, the explicit target was access to Amazon Bedrock frontier models — i.e. LLMjacking via stolen cloud access, not data theft.
No. Perplexity's public write-up says URL-validation and authorization checks blocked every probe, and no internal services, customer data or platform secrets were accessed. The incident is useful as a defender case study precisely because the controls worked as designed.
Two mandatory controls. First, enforce IMDSv2 on every EC2 instance (session-token-protected metadata requests block all pre-2020 SSRF payloads). Second, validate outbound URLs after DNS resolution at connection time — not just at URL parse time — and block private, loopback and link-local destinations before the socket opens. Together these defeat both the obvious 169.254.169.254 probes and the decimal/hex/rebinding evasion variants.
Decimal and hex encodings of 169.254.169.254 (e.g. 2852039166 or 0xA9FEA9FE), malformed URLs that parse differently than they resolve, open-redirect chains that end at a metadata endpoint, and DNS rebinding where the hostname resolves to a public IP first and the metadata IP on a second lookup. Validate at connection time, not URL-parse time.
SSRF to cloud metadata is a 2017-era technique. What's new is the agentic wrapper: an LLM-driven loop that generates, retries, and chains hundreds of SSRF variants without a human bottleneck. The defensive controls haven't changed; the attacker's cost per attempt has collapsed.
Because the attacker's declared goal was Bedrock access to run their own AI workloads at the victim's expense, not to exfiltrate customer data. See our LLMjacking defence guide for the full economic context — attackers increasingly need stolen LLM credentials to fund their own agentic loops.

Related reading

Sources

Audit your estate against the Perplexity defender checklist

14-day trial. TigerGate CSPM confirms IMDSv2 enforcement across every EC2, SSM and EMR instance, flags public S3 buckets and over-broad Bedrock policies, and the eBPF runtime agent surfaces the ground-truth traffic shapes that catch an AI-driven credential hunt early.