Perplexity published something rare on December 2: a clean loss for the attacker. For two weeks in late October and early November 2026, an operator ran an autonomous AI attack against the company’s infrastructure with an agent built on Cairn, an open-source harness, pointed at one objective: credentials or service tokens able to invoke two latest-generation frontier models through Amazon Bedrock. Probing peaked on November 2 at roughly 48,000 requests in 13 minutes, spread across 28,000 guessed routes and peaking above 200 requests per second. The attacker came away with nothing.

Perplexity’s verdict from its own post-mortem: “Outbound URL validation and authorization checks blocked every probe, and the attacker accessed no internal services, private customer data, or platform secrets over two weeks of activity.”

The mechanics are the instructive part, because nobody sat at a keyboard steering this for two weeks. One operator prompt seeded a task graph the agent pursued around the clock, spawning fresh lines of work whenever a check failed. Perplexity’s closing summary: “This incident shows what an autonomous AI attack looks like in action: one operator prompt, hundreds of self-directed tasks, and probing that adapts every time a request fails.”

What two weeks of machine-paced probing looks like

The public timeline is short. Between October 24 and 28 the attacker created initial disposable accounts and ran low-volume reconnaissance. High-rate server-side request forgery (SSRF) and API sweeps began on November 2, flagged by Perplexity’s agent platform, Computer, in the application logs. Dedicated monitoring and additional blocks followed on November 3. On November 4, Perplexity located the attacker’s exposed server and notified the security teams at two other companies within hours. Active incident response wrapped on November 5, and probing stopped by November 8.

The engine was Cairn, an open-source agent harness that CISA’s November 30 alert on agentic offensive frameworks had already flagged. An operator supplies a goal; Cairn records what it learns as facts and plans follow-up work as intents (worker tasks), each task reading earlier facts and writing its conclusion back as a new one.

In the recovered Company A graph, one bootstrap task grew into 277 intents and 265 recorded facts over 19.5 hours, with up to 14 tasks running in parallel at a median run time of 11 minutes. Thirty-seven branches were marked dead ends, and 19 of those were cited by new tasks within a median of 31 minutes: when GitHub code search demanded authentication, the agent created three parallel tasks within 25 minutes, one to hunt a token and two to mine alternative sources, then returned to the search once a token surfaced.

Against Perplexity, the activity ran across six lanes: SSRF against features that fetch external links, object-storage enumeration, API route discovery, privilege escalation, cross-tenant access, and evasion by rotation. CloudTrail recorded 3,681 failed S3 lookups across more than 3,300 unique keys in a 14-hour window, including guesses at .env.production, .aws/credentials, and Terraform state files. Route sweeps returned 404s; escalation probes were denied; cross-tenant requests were rejected. Outside the perimeter, the agent mined certificate transparency logs, passive DNS, web archives, git history, npm and PyPI packages, and mobile builds, validating only complete credentials before pivoting to authenticated probing of connectors, MCP interfaces, secret stores, and compute workloads. Teams exposing those interfaces should start with the MCP security design considerations checklist.

The control that decided the SSRF round

Direct requests to internal addresses were rejected, so payloads shifted: 169.254.169.254, the EC2 metadata address that hands out instance credentials, rewritten in decimal and hex, alongside companion endpoint 169.254.170.2. Malformed URLs built to confuse parsers. Redirect chains bounced through public tunnel services. DNS-rebinding names on rbndr.us encoded the metadata addresses in hex, resolving to a public address during validation, then flipping to an internal one at fetch time.

Every one of those evasions exploits the same gap: the distance between checking a URL at submission and opening the connection later. A filter that validates the hostname once and trusts the resolver hands the agent its opening. Perplexity’s CEO, Aravind Srinivas, described the fix in one sentence, relayed by The Hacker News: “Because our outbound validator resolves and checks the IP at connection time, every attempt failed.”

Connection-time validation only works if it applies to every outbound fetch and every redirect hop: resolve the destination, refuse private, link-local, and metadata ranges at the moment the connection opens, and keep the blocklist ahead of alternate encodings and IPv6-mapped forms. Most HTTP libraries need somebody to build this deliberately; the shipped default is the very gap this agent probed. The Cloud Security Alliance adds one more layer on the same path: enforce IMDSv2, the session-based metadata service, on every EC2 instance, demo and sandbox accounts included.

Rate limits lost; correlation held

Rotation was a design feature, not a fallback. The agent cycled through more than 40 disposable-email accounts and roughly 290 residential and cloud proxies by November 4, with a fresh signup ready whenever per-account limits triggered, so no single account ever showed the campaign’s scope. The Cloud Security Alliance puts the structural problem in one line: “Account-level rate limiting is insufficient against an agent that mints new accounts on demand.”

What held was cross-account correlation. Perplexity grouped dozens of throwaway accounts by shared source IPs, disposable email domains, and callback hosts, then reconciled application telemetry against cloud audit logs to confirm nothing had landed. A dedicated monitoring workflow then watched the actor for more than five days, each pass building on the accounts, IPs, and domains collected earlier. Detection keyed on one account loses to rotation by construction; detection keyed on the shape of the activity still has a chance. Our primer on detecting AI pentest agents goes deeper on those signals.

Where the agent went deeper, and why neither target got its prize

The exposed attacker server is what turns one company’s post-mortem into a case study. Perplexity scanned the host carrying the redirectors and callback receivers and found 207 open ports, nearly all single-purpose Python services spun up for individual attack steps, plus 29 unauthenticated directory indexes serving more than 10,000 files to the public internet. Those files held live campaign workspaces for two other targets, Company A and Company B, and both security teams were notified within hours, on November 4.

One caution: Perplexity’s account of the two companies is a reconstruction from the attacker’s own records, and it did not test the recovered credentials against third-party systems. Its own caveat is that “Agents can misread responses or overstate partial access.”

At Company A, the agent found a live customer OAuth credential in deleted git history, took administrative control of the customer’s workspace, ran code on managed compute, reached internal endpoints behind IP allowlists, captured a stored Git token, and obtained short-lived AWS workload credentials. Those credentials lacked permissions to invoke Bedrock. At Company B, the agent logged into an exposed management API on a demo environment, deployed a persistent command runner that recorded roughly 1,000 callbacks over 15 hours, and collected local password stores, Kubernetes secrets, and EC2 instance-role credentials. Calls through Company B’s Bedrock proxy were rejected.

Neither entry point involved a zero-day. One was a cleanup task somebody postponed; the other was a forgotten demo environment. In both campaigns the deep layer still held where it mattered: one set of credentials lacked the permission, and the other’s proxy refused the calls. That is the same blast-radius discipline fintech and crypto teams have been urged to carry through the current agentic attack wave, and here it decided the objective even after the perimeter had failed.

The prize was model invocation. That changes the entitlement math.

In all three workspaces the objective was identical, and it was not data. The recovered operator prompt demanded an access key pair or Bedrock bearer token that directly invokes bedrock-runtime, treated successful invocation as the pass condition, and wanted breadth: “Prefer credentials with BROAD IAM permissions (AdministratorAccess, PowerUserAccess) or service users that can modify their own policies.” Perplexity states the prompt indicates the operator wanted frontier Bedrock access, but not for what purpose. The Cloud Security Alliance reads the campaign as the LLMjacking lineage Sysdig first documented in May 2024, writing that “AI inference capacity has become a target worth pursuing with an autonomous agent in its own right,” which CSA flags as its own analysis. No attribution exists. What is not in dispute is the target class: model credentials, the same assets whose theft put the LiteLLM vulnerability on CISA’s exploited-flaws catalog last month.

For anyone running model gateways, frontier-model invocation is not a developer convenience. It is a privileged entitlement, to be inventoried, scoped, recertified, and monitored the way admin access is. Inventory every role and service account holding bedrock:InvokeModel or an equivalent, remove the permission wherever it is not required, keep credential lifetimes short, and alert when an identity that does not normally call models starts doing so. Organization-level guardrails that restrict which accounts can invoke high-cost models at all are the mechanical version. This is unglamorous AI governance work, and it is the layer that decided this campaign. The same least-privilege discipline runs through the fintech cybersecurity pillar.

What to do first

None of this requires new tooling.

  1. Audit the fetch path. List every feature that fetches external URLs: link previews, webhooks, RAG ingestion, agent browsing. Confirm each resolves the destination at connection time, re-checks after every redirect, and blocks private, link-local, and metadata ranges, including alternate encodings and IPv6-mapped forms.

  2. Enforce IMDSv2 everywhere. Require session-based instance metadata on every EC2 instance, demo and sandbox accounts included. It is a per-instance option, and it removes the cheapest path from SSRF to credentials.

  3. Retire git-history debt. Run secret scanning across full git history, deleted commits and unreachable objects included, plus published package artifacts. Rotate anything found; rewrites move a secret, they do not remove it.

  4. Close the demo side door. Put demo, staging, and management environments behind production-grade authentication, and take unauthenticated directory listings and management APIs off the internet.

  5. Correlate across accounts. Tune burst thresholds to machine rates, cluster signups by shared source infrastructure, email patterns, and callback hosts, and reconcile application with cloud audit logs so denied requests reattach to the same campaign.

  6. Scope model invocations. Inventory who can invoke frontier models, strip the permission where it is not needed, put the remainder on short lifetimes with periodic recertification, and alert when an unexpected identity starts calling models.

Two observations to close. The controls that held are boring ones, implemented carefully: egress validation that survives rebinding, correlation that survives rotation, and scoping that survives everything else. And the two intrusions in this story were not failures of understanding; they were failures of housekeeping, the kind every fast-moving company carries somewhere in the stack. Perplexity’s own line: “Agent harnesses make it cheap to probe targets around the clock and adapt as requests fail.” The recommendation cuts back toward defenders too: point the harnesses at your own surfaces, and find leaked secrets and exposed endpoints before the next agent does.

Perfection at the perimeter is not the standard this campaign sets. Perplexity’s summary is more reachable: “Strong baseline controls stopped it, and continuous monitoring with Computer kept us one step ahead as it adapted.”

Ron Moore runs NTD Consulting, which provides fractional CISO and cybersecurity advisory services to mid-market SaaS, fintech, and digital-asset companies.