48,000 Requests in 13 Minutes: How to Defend Against the Bedrock Credential Hunt at Perplexity

Start with the arithmetic. 48,000 requests in 13 minutes is 61.5 requests per second on average; some reports put peak bursts above 200 rps. That is not enough to flatten a search company on its own. It is enough to prove that an attacker no longer needs a human sitting at a keyboard. According to Perplexity official write-up (2026-12-02) and CEO Aravind Srinivas on the same day, an autonomous agent probed the company for two weeks in late October and early November, hunting for Amazon Bedrock credentials that could call frontier models. Aiera republished the story at 01:53 on 2026-12-03. On the same day the Hacker News front page carried a 191-point piece titled Agent harnesses need their eBPF, dated 2026-12-01. Both describe two sides of the same problem.

Perplexity attack timeline: 277 tasks are not 277 people

The timeline is specific. October 24 to 28: disposable accounts created, low-volume recon. November 2: high-rate SSRF and API route sweeps begin; alert fires the same day. November 3: a dedicated monitoring workflow starts and new blocks ship. November 4: an exposed attacker server is discovered and two other target companies are notified. November 5: active response wraps up; the last disposable accounts appear on November 6 and probing stops by November 8.

The threat model changes at the workload layer. The attacker used an open-source agent harness called Cairn. In one recovered workspace, a human supplied the first instruction and the agent generated 276 more tasks over 19.5 hours, with up to 14 running at once and an average of about 11 minutes per task. It swept roughly 28,000 candidate REST routes and made 3,681 object-storage key guesses. Whenever a rate limit hit, it rotated to a fresh signup; the campaign used more than 40 disposable accounts and roughly 290 residential and cloud proxies. No single account shows the full picture, which is exactly why account-level thresholds missed it.

SignalNumberDefensive consequence
Peak loadabout 48,000 requests in 13 minutesPer-account counters miss it; correlate source IPs and callback hosts
Autonomous tasksone prompt to 277 tasks, 14 parallelHuman response time is no longer the ceiling
Identities and proxies40 plus accounts, about 290 proxiesBanning one account changes nothing
Exposed server207 open ports, over 10,000 filesOne mistake handed the campaign ledger to the defenders

Perplexity used its own Computer platform to watch the actor. Shared IPs, disposable email domains, and callback hosts collapsed dozens of accounts into one campaign. That detail matters more than the AI-versus-AI framing: the correlation keys were infrastructure fingerprints, not model guesses.

How to fix SSRF: decide at connection time

Against features that accept user-supplied URLs, the attacker ran the usual bypass ladder. Direct calls to 169.254.169.254 were rejected, so it tried decimal 2852039166 and hexadecimal 0xa9fea9fe, malformed URLs to confuse parsers, redirects through public tunnel services, and DNS rebinding through rbndr.us: public IP during validation, internal metadata address at fetch time. The classic failure here is to resolve once for validation and then hand the hostname to an HTTP client that resolves it again.

This standard-library script closes both gaps. Numeric IP forms are normalized first; DNS names are checked with two simulated answers representing validation time and connect time. Save it as ssrf_guard.py and run it directly:

import ipaddress
from urllib.parse import urlsplit

BLOCKED = [ipaddress.ip_network(n) for n in (
    "0.0.0.0/8", "10.0.0.0/8", "127.0.0.0/8", "172.16.0.0/12",
    "192.168.0.0/16", "169.254.0.0/16", "::1/128", "fc00::/7", "fe80::/10",
)]


def expand_ipv4(host):
    if host.isdigit():
        n = int(host)
        if n > 4294967295:
            return None
        return str(ipaddress.IPv4Address(n))
    if host.startswith("0x"):
        try:
            return str(ipaddress.IPv4Address(int(host, 16)))
        except ValueError:
            return None
    parts = host.split(".")
    if len(parts) == 4 and all(p.isdigit() for p in parts):
        try:
            return str(ipaddress.IPv4Address(host))
        except ValueError:
            return None
    return host


def bad_ip(addr):
    try:
        ip = ipaddress.ip_address(addr)
    except ValueError:
        return None
    return any(ip in net for net in BLOCKED)


def check(url, dns_map=None):
    p = urlsplit(url)
    if p.scheme not in ("http", "https"):
        return None, "scheme"
    if p.username or p.password:
        return None, "userinfo"
    host = expand_ipv4(p.hostname or "")
    if not host:
        return None, "empty-host"
    literal = bad_ip(host)
    if literal is True:
        return host, "literal-blocked"
    if literal is False:
        return host, "literal-ok"
    answers = (dns_map or {}).get(host)
    if answers is None:
        return host, "resolve-at-connect"
    first, second = answers
    if bad_ip(first) or bad_ip(second):
        return host, "dns-rebind-blocked"
    return host, "dns-ok"


CASES = [
    ("http://example.com/x", None),
    ("http://127.0.0.1/admin", None),
    ("http://2852039166/latest/meta-data/", None),
    ("http://0xa9fea9fe/latest/meta-data/", None),
    ("http://rebind.example/x", ("93.184.216.34", "169.254.169.254")),
    ("http://public.example/x", ("93.184.216.34", "203.0.113.7")),
    ("ftp://example.com/x", None),
]

for url, answers in CASES:
    host, verdict = check(url, {"rebind.example": answers[0:2]} if answers else None)
    if verdict in ("scheme", "userinfo", "empty-host"):
        print(url, "BLOCK", verdict)
    elif verdict in ("literal-blocked", "dns-rebind-blocked"):
        print(url, "BLOCK", verdict, host)
    else:
        print(url, "ALLOW", verdict, host)
$ python ssrf_guard.py
http://example.com/x ALLOW resolve-at-connect example.com
http://127.0.0.1/admin BLOCK literal-blocked 127.0.0.1
http://2852039166/latest/meta-data/ BLOCK literal-blocked 169.254.169.254
http://0xa9fea9fe/latest/meta-data/ BLOCK literal-blocked 169.254.169.254
http://rebind.example/x BLOCK dns-rebind-blocked rebind.example
http://public.example/x ALLOW resolve-at-connect public.example
ftp://example.com/x BLOCK scheme

In production, resolve-at-connect cannot mean allow. Validate the exact IP that the connection uses and repeat the check on every redirect. This example separates validation from connection so the logic is visible; when you wire an HTTP client, pin the validated IP to the connection object instead of letting the library resolve the hostname again.

A cheap audit hook for the agent harness

The experiment in Agent harnesses need their eBPF is uncomfortable reading. Exposing compact(), set_effort(), and a live context meter to the agent dropped success from 92 percent to 52 percent across 5 long tasks and 25 runs. Letting the agent edit the harness token counter produced a reported 28,410 tokens against roughly 33,628 rendered tokens with a 32K budget: 5 of 400 simulated sessions overflowed, and crash rollback, regression tests, and an LLM reviewer all approved the change. The lesson is not to add more dashboards. The mechanism layer has to stay in harness hands.

The full answer is out-of-process protection such as eBPF or seccomp. On a development box, a Python audit hook gives you a runnable minimum: it fires at the moment of the event, and changing business code inside the agent cannot slip past it. Save this as audit_agent.py in the same directory as ssrf_guard.py:

import socket
import sys

events = []


def hook(event, args):
    if event == "socket.connect":
        host, port = args[1][0], args[1][1]
        events.append("DENY socket.connect " + host + ":" + str(port))
        raise RuntimeError("blocked metadata connect")
    if event == "open":
        path = str(args[0])
        if "credentials" in path:
            events.append("DENY open " + path)
            raise RuntimeError("blocked secret read")
        if path.endswith(".py"):
            events.append("ALLOW open " + path)


sys.addaudithook(hook)

try:
    sock = socket.create_connection(("169.254.169.254", 80), 0.2)
    sock.close()
except Exception as exc:
    events.append("caught " + type(exc).__name__ + ": " + str(exc))

for path in ("ssrf_guard.py", "aws/credentials"):
    try:
        handle = open(path, "r")
        handle.close()
    except Exception as exc:
        events.append("caught " + type(exc).__name__ + ": " + str(exc))

print(chr(10).join(events))
$ python audit_agent.py
DENY socket.connect 169.254.169.254:80
caught RuntimeError: blocked metadata connect
ALLOW open ssrf_guard.py
DENY open aws/credentials
caught RuntimeError: blocked secret read

The aws/credentials file does not exist, but the hook denies it before the filesystem ever sees it. That is the point. An audit hook is not a security boundary: hostile code in the same process can register another hook. In production, put policy decisions outside the agent sandbox and enforce them with eBPF, seccomp, or a separate proxy process. Use this script to make the event-driven, default-deny pattern concrete.

Three defaults to change today

  • Outbound URL features: validate and connect with the same resolved address, recheck every redirect, normalize decimal and hexadecimal IP forms, and block DNS rebinding services such as rbndr.us.
  • Credential surface: use short-lived per-task Bedrock credentials instead of long-lived keys; purge OAuth tokens and .env.production from git history; never expose a demo management API. The two other victims were opened by exactly those two mistakes: a live credential in deleted git history and an exposed demo API.
  • Observability: correlate accounts by IP, email domain, and callback host; log socket.connect and sensitive file reads in the harness, with rules enforced outside the sandbox.

Perplexity says the exposed server was almost certainly one slice of a larger operation, and the intended use of the credentials remains unknown. What is known is that the line held because of old-fashioned baseline work: connection-time validation, strict authorization, and clean history. Agents made probing cheap. They did not change the baseline.

Further reading

Feedback

Diese Seite ist rein front-end: kein Backend, keine Konten. Feedback geht an GitHub Issues, Discussions oder E-Mail.

Füge dies in das Issue oder die E-Mail ein, um mir zu helfen, das Problem zu finden – es enthält nichts von dem, was du eingegeben hast

Auch:Vorhandenes Feedback ansehen · Feedback per E-Mail (ohne GitHub-Konto):278975598@qq.com