CAIRN Campaign: An Autonomous Agent Hunts Cloud Credentials for Inference

Authors: Cloud Security Alliance AI Safety Initiative
Published: 2026-12-03

Categories: Agentic AI Threats
Download PDF
Download Markdown

CAIRN Campaign: An Autonomous Agent Hunts Cloud Credentials for Inference

Key Takeaways

On December 2, 2026, Perplexity disclosed that an autonomous agent built on Cairn, an open-source agent harness and penetration-testing framework, spent roughly two weeks in late October and early November 2026 probing its platform for AWS credentials or service tokens that could invoke two latest-generation frontier models through Amazon Bedrock [1][2]. The campaign is notable less for its outcome at Perplexity, where the company reports no access to internal services, customer data, or platform secrets, than for what it reveals about objectives. The agent was not after data to sell or systems to ransom; it was hunting for inference capacity itself [1][2].

During a 13-minute burst on November 2, the agent issued about 48,000 requests, an average of roughly 60 per second with peaks reported above 200 requests per second, while rotating across more than 40 disposable accounts and roughly 290 residential and cloud proxies [1][2][3]. It attempted server-side request forgery (SSRF) against the cloud metadata endpoint, guessed thousands of object-storage keys, enumerated API routes, probed privilege boundaries, and mined public code history and package releases for secrets [1][2][3]. Perplexity’s chief executive attributed the defensive success to an outbound validator that resolves and checks destination IP addresses at connection time, which defeated encoding tricks, redirect chains, and DNS rebinding [2].

Records recovered from an exposed attacker server indicate that the same operation reached further at two unnamed companies. At one, the agent reportedly used a live OAuth credential found in deleted git history to gain administrative control of a customer workspace and then obtained a stored Git token and short-lived AWS workload credentials; at the other, it reportedly established a persistent command runner on an exposed demo environment and collected Kubernetes secrets and instance-role credentials [2][3]. In both cases, according to Perplexity, attempts to invoke Bedrock models failed, and these findings are Perplexity’s reconstruction from attacker records rather than independently tested results [2][3].

Security teams should draw four conclusions. This campaign indicates that AI inference capacity has become a target worth pursuing with an autonomous agent in its own right, and that such an agent can probe an entire attack surface persistently over weeks. Account-level rate limiting is insufficient against an agent that mints new accounts on demand. Connection-time egress validation, reinforced by IMDSv2 enforcement as defense in depth, substantially reduces exposure along the most direct SSRF-to-credential path. And permissions to invoke frontier models should be treated as privileged entitlements, monitored and restricted with the same rigor as administrative cloud access.

Background

What Cairn Is

Cairn is an open-source project hosted on GitHub that describes itself as “a general-purpose AI state-space search engine, validated first on autonomous penetration testing” [5]. Its documentation describes a multi-agent design that implements an Observe-Orient-Decide-Act loop in which specialized agents collaborate through a shared “blackboard,” moving from a starting parameter such as a target address toward an operator-defined objective; Unit 42’s analysis, as relayed by CSO Online, describes the same shared blackboard [5][8]. In practice, an operator supplies a goal and a starting point, and the framework records what it learns as “facts” and the follow-up work it plans as “intents,” spawning parallel tasks as new leads appear [3][9]. The same capabilities that make it useful for authorized testing also make it attractive to attackers who want capable automation without building it themselves.

Cairn has appeared repeatedly in threat reporting during the second half of 2026. Google Threat Intelligence Group (GTIG) reported observing CAIRN, alongside ARTEX and PentAGI, in Mandiant incident-response engagements since late August 2026 [7]. Palo Alto Networks Unit 42 reported in November 2026 that a China-linked actor ran a customized Cairn fork against at least 19 organizations [8]. Amazon Threat Intelligence described a Chinese-nexus actor whose Cairn agents independently discovered and exploited a zero-day path-traversal flaw in a medical imaging AI application at an East Asian university [6]. CSA’s October 2026 research note documented NorForge’s finding that a single operator used Cairn against more than 1,200 websites at an estimated model cost of roughly $50 per successful intrusion [9].

How the Perplexity Campaign Differs

Earlier Cairn campaigns pursued conventional objectives such as espionage, payment card theft, and website compromise [6][9]. The Perplexity campaign, by contrast, was defined around acquiring the ability to invoke frontier models. This places it within the lineage of LLMjacking, the theft and unauthorized use of AI service credentials that the Sysdig Threat Research Team first documented in May 2024 [16] and that CSA has tracked as it evolved from cost-shifting into a foundation for autonomous offensive tooling [10]. CSA’s October 2026 research note on “Skynet-mode” LLMjacking described the closest precedent: an autonomous agent hunting for unauthenticated or stolen-key model endpoints to use as its own reasoning engine [17]. A SANS Internet Storm Center diary from September 2026 described a related pattern in which an attacker’s semi-autonomous coding agent located poorly secured LLM resale gateways and validated the inference it acquired, although the author noted that a human still steered that operation [15].

The framing of this note’s title, which implies the agent sought inference capacity for its own or its operator’s use, should be read as an analytical inference rather than a reported fact. Perplexity states that the attacker’s intended use of the targeted models is unknown, and no source attributes the campaign to a specific actor [1][2]. What the evidence does establish is that the operator tasked an autonomous agent with acquiring frontier-model access, and that such access, if obtained, could plausibly sustain further agent operations at victims’ expense. Brandefense further cautions that the use of a common framework does not by itself link this operator to earlier Cairn reporting from Unit 42, GTIG, or Amazon [3].

Campaign Timeline

The table below consolidates the timeline reported across sources. The figures originate in Perplexity’s disclosure [1] and are cited here as quoted and relayed by The Hacker News [2] and Brandefense [3]; where secondary accounts conflict in minor details, this note follows Perplexity’s figures as those two sources report them.

Date (2026) Reported Activity Source
October 24–28 Initial disposable accounts created; low-volume reconnaissance [2][3]
November 2 Burst of roughly 48,000 requests in 13 minutes; Perplexity’s agent-based monitoring flags the activity [2][3]
November 4 Perplexity identifies more than 40 linked accounts and ~290 proxies; discovers exposed attacker server holding over 10,000 workspace files covering two other companies [2][3]
Early November Perplexity notifies the security teams at both affected companies while assessing their activity as ongoing [3]
Through November 8 Continued probing; no access to Perplexity internal services, customer data, or secrets [3]
December 2 Perplexity publishes its disclosure [1][3]

Security Analysis

The Attack Surface an Autonomous Agent Explores

The breadth of the agent’s search illustrates how autonomous tooling changes the economics of credential hunting. Perplexity’s account, as reported, describes six categories of activity: SSRF against link-fetching features, object-storage enumeration, API route discovery, privilege-escalation probes, cross-tenant requests against threads, files, and workspaces, and evasion [1][3]. Perplexity’s chief executive stated publicly that the agent guessed about 28,000 API routes and performed 3,681 S3 lookups for files such as .env.production and .aws/credentials; Brandefense, citing CloudTrail records from the disclosure, reports that these lookups spanned more than 3,300 unique keys over 14 hours [2][3]. Outside Perplexity’s own perimeter, the agent scanned public repositories, Gists, commit history, and unreachable git objects, unpacked published npm and PyPI releases, and searched connectors, MCP interfaces, secret stores, and compute workloads for credentials [2].

Individually, none of these techniques is novel. What distinguishes the campaign is that a single operator prompt can expand into hundreds of parallel lines of inquiry, each pursued at a pace and duration that would be costly for a human team to sustain. Brandefense, analyzing the published workspace records, reports that one recovered workspace contained a task graph of 277 intents and 265 facts accumulated over 19.5 hours with up to 14 tasks running concurrently [3]. When a GitHub code search hit a dead end because it required authentication, the agent spawned three parallel tasks within 25 minutes and returned to the original thread once one of them surfaced a token [2]. This self-directed recovery from obstacles suggests that defenders cannot rely on attackers abandoning a path once it becomes inconvenient.

Adaptive Evasion

The agent adjusted its tooling and infrastructure in response to controls. When direct requests to internal addresses were blocked, it attempted hexadecimal and decimal IP encodings, redirect chains, and DNS rebinding to reach the metadata endpoint at 169.254.169.254 [2]. When command-line HTTP clients were blocked, it switched to Playwright-driven Chromium to retrieve JavaScript bundles and OpenAPI schemas, and it used mitmproxy to inspect client traffic [2]. Most significantly for detection engineering, it registered a new account whenever per-account rate limits triggered, with the effect that no single account revealed the scope of the operation [2]. Perplexity ultimately correlated the activity by grouping accounts on shared source addresses, email patterns, and callback infrastructure, and then reconciled application telemetry against cloud audit logs [3].

Why Perplexity’s Controls Held

Perplexity’s chief executive summarized the decisive control in one sentence: “Because our outbound validator resolves and checks the IP at connection time, every attempt failed” [2]. This matters because an SSRF defense that validates the hostname or URL string when a request is submitted, then resolves it later when the connection is made, leaves a gap between check and use. That gap is what DNS rebinding and redirect chains exploit. By validating the resolved address at the moment of connection, the control closes that gap, provided it is applied to every connection, including each redirect hop, and its blocklist covers alternate encodings, IPv6-mapped addresses, and alternate metadata endpoints. Aviatrix’s analysis further states that the SSRF attempts targeted IMDSv1, the session-less version of the EC2 instance metadata service [4]; this detail does not appear in the other accounts reviewed, but it reinforces long-standing AWS guidance to require IMDSv2 session tokens on all instances as a defense-in-depth measure [12].

Where the Campaign Reportedly Succeeded

The two unnamed companies illustrate the failure modes that autonomous agents are well positioned to find. The table below summarizes Perplexity’s reconstruction from the attacker’s exposed workspaces.

Victim Entry Point Reported Access Obtained Bedrock Outcome
Company A Live customer OAuth credential recovered from deleted git history Administrative control of a customer workspace; code execution on managed compute; internal endpoints behind IP allowlists; stored Git token; short-lived AWS workload credentials Credentials lacked permission to invoke Bedrock [2][3]
Company B Exposed management API on a demo environment Persistent command runner; roughly 1,000 callbacks over 15 hours; local password stores, Kubernetes secrets, EC2 instance-role credentials Calls through the company’s Bedrock proxy rejected [2][3]

Two caveats apply. First, only Company A’s workspace preserved a full task graph, and Perplexity did not test the recovered credentials, so these represent assessments of attacker records rather than confirmed compromises [3]. Perplexity, as relayed by Brandefense, also notes that coding agents can misread responses or overstate partial access in their own summaries [3]. Second, some secondary coverage merges the two victims’ outcomes or describes them as confirmed exfiltration; Aviatrix, for example, describes “exfiltration of Kubernetes secrets and AWS credentials” [4], a characterization that Perplexity’s primary account, as reported by Brandefense, does not support [1][3].

Even with those caveats, the pattern is instructive. Neither entry point was a sophisticated exploit; both were basic exposure and credential-management gaps, a credential left in rewritten history and a demo environment left reachable. According to the attacker’s own records, both attempts to invoke Bedrock failed: Company A’s recovered workload credentials reportedly lacked model-invocation permissions, and Company B’s Bedrock proxy rejected the calls [2]. If these records are accurate, restrictions on who may invoke models, whether through IAM scoping or a controlled proxy, were what prevented the attacker from reaching its objective, even after earlier layers had been bypassed.

Threat Model Implications

The campaign suggests three shifts in how organizations should model AI-related credential risk. First, inference access has become a target worth an autonomous campaign in its own right, extending the LLMjacking trend first documented in 2024 [16] and analyzed in CSA’s June and October 2026 research notes [10][17]. Second, the cost to the attacker of exhaustive exploration appears to be low; CSA’s prior Cairn analysis reported NorForge’s estimate of roughly $50 in model cost per successful intrusion [9], which suggests that long-tail assets such as demo environments and old repositories may be economically worth probing. Third, an exposed attacker harness is itself an intelligence source. Perplexity’s discovery of a server holding over 10,000 workspace files is what revealed the two additional victims, echoing CSA’s earlier observation that exposed Cairn panels leak target secrets regardless of who operates them [2][9].

Recommendations

Immediate Actions

Organizations that operate link-fetching, URL-preview, webhook, or agent browsing features should verify that outbound requests are validated against the resolved IP address at connection time, not only at submission, and that link-local, private, and metadata ranges are blocked after every redirect. All EC2 instances, including those in demo and sandbox accounts, should require IMDSv2 with a hop limit appropriate to the workload [12]. Teams should run secret scanning across full git history, including unreachable objects and published package artifacts, and rotate any credential discovered there rather than relying on history rewrites to remove it. Security teams should also inventory every IAM role and service account that holds bedrock:InvokeModel or equivalent model-invocation permissions on other providers and remove that permission wherever it is not required.

Short-Term Mitigations

Over the next several weeks, detection should shift from per-account thresholds to cross-account correlation. Perplexity’s approach of clustering accounts by source infrastructure, email patterns, and callback endpoints offers a practical template [3]. Application logs should be reconciled with cloud audit logs such as CloudTrail so that denied metadata, storage, and authorization requests can be linked to the same campaign. Demo, staging, and management environments warrant a dedicated exposure review, because Company B’s reported compromise began at exactly this kind of secondary asset [2]. Organizations should also enable model-invocation logging on managed AI services and alert on invocation from workload identities that do not normally call models, since a successful version of this campaign would likely surface as unexpected inference activity, possibly before any other signal.

Strategic Considerations

Longer term, organizations should treat frontier-model invocation rights as privileged entitlements within their non-human identity programs, subject to inventory, ownership, short credential lifetimes, and periodic recertification. Service control policies or organization-level guardrails can restrict which accounts and principals may invoke high-cost models at all. Defensive teams should also assume that adversaries will pair autonomous agents with stolen inference to sustain operations, and should plan for attack volumes and persistence that exceed what human-paced detection workflows were designed to handle. Finally, organizations that use Cairn or similar frameworks for legitimate testing should ensure their panels require authentication and are not internet-exposed, given the documented history of exposed instances leaking target data [6][9].

CSA Resource Alignment

This campaign sits directly on the line of research CSA has published on Cairn and LLMjacking during 2026. The most directly relevant artifact is CSA’s October 2026 research note Fifty Dollars per Breach: Detecting Autonomous Agent Intrusion Campaigns [9], which analyzed earlier Cairn-driven campaigns reported by NorForge and Gambit Security. That note reported NorForge’s estimate of roughly $50 in model cost per successful intrusion, along with minimal operator supervision, which suggests campaigns like this one can be economically viable; its detection guidance on machine-paced probing and exposed agent harnesses applies directly to the Perplexity case. The present campaign extends that analysis by showing the same framework pointed at a different objective: inference access rather than data or payment cards.

CSA’s June 2026 research note LLMjacking Evolves: Stolen AI Compute as Attack Infrastructure [10] documented the shift from reselling stolen AI credentials to using them as the reasoning engine for autonomous offensive frameworks, and recommended treating AI API credentials as equivalent to privileged cloud accounts. CSA’s October 2026 note Skynet-Mode LLMjacking: Exposed Model Endpoints as Autonomous Attack Engines [17] carried that analysis forward to agents that hunt for model endpoints to power themselves. The Perplexity campaign appears to be a concrete instance of the loop those notes anticipated, an autonomous agent actively seeking the inference capacity that such frameworks consume. Their recommendations on secret scanning, behavioral monitoring of model invocation, and authentication of self-hosted endpoints should be read alongside the guidance in this note.

CSA’s whitepaper Autonomous Agentic AI Adversaries [11] provides the broader threat model, describing how frontier models have moved from tools to actors and mapping defenses to MAESTRO, Zero Trust, and the AI Controls Matrix. For control implementation, the AI Controls Matrix (AICM) v1.1 [13] offers relevant controls in its Identity and Access Management domain for scoping non-human identities and model-invocation permissions, in its Threat and Vulnerability Management domain for secret scanning and exposure management, and in its Logging and Monitoring domain for cross-source correlation of the kind that exposed this campaign. Organizations threat-modeling their own agentic features, such as link fetching and MCP connectors that this agent probed, can apply MAESTRO [14] to identify where an adversarial agent could pivot from a user-facing capability into infrastructure credentials.

References

[1] Perplexity. “How Perplexity Defended Against an Autonomous AI Attacker.” Perplexity Blog, December 2, 2026.

[2] Lakshmanan, R. “Autonomous AI Hacker Targets Perplexity, Reportedly Breaches Two Other Companies.” The Hacker News, December 3, 2026.

[3] Brandefense Research Team. “Perplexity’s Cairn Campaign: Failed Probes and Two Intrusions.” Brandefense, December 3, 2026.

[4] Aviatrix Threat Research Center. “When AI Attacks Itself: How an Autonomous Cairn Agent Targeted Perplexity to Hijack Amazon Bedrock.” Aviatrix, December 2, 2026.

[5] oritera. “Cairn: A General-Purpose AI State-Space Search Engine.” GitHub, accessed December 3, 2026.

[6] Moses, C. (Amazon Threat Intelligence). “Chinese-nexus actor’s Cairn AI agents found a zero-day on their own.” AWS Security Blog, November 20, 2026.

[7] Google Threat Intelligence Group. “ARTEX and Friends: Enter Agentic Offensive Frameworks.” Google Cloud Blog, October 30, 2026.

[8] Schuman, E. “Palo Alto tracks a massive Chinese AI attack that sadly lives up to industry fears.” CSO Online, November 12, 2026.

[9] Cloud Security Alliance. “Fifty Dollars per Breach: Detecting Autonomous Agent Intrusion Campaigns.” CSA AI Safety Initiative, October 21, 2026.

[10] Cloud Security Alliance. “LLMjacking Evolves: Stolen AI Compute as Attack Infrastructure.” CSA AI Safety Initiative, June 18, 2026.

[11] Cloud Security Alliance. “Autonomous Agentic AI Adversaries: Frontier Models Cross the Threshold from Tool to Actor.” CSA AI Safety Initiative, June 24, 2026.

[12] Amazon Web Services. “Modify instance metadata options for existing instances.” Amazon EC2 User Guide, accessed December 3, 2026.

[13] Cloud Security Alliance. “AI Controls Matrix v1.1.” CSA, accessed December 3, 2026.

[14] Huang, K. “Agentic AI Threat Modeling Framework: MAESTRO.” Cloud Security Alliance, February 6, 2025.

[15] Marinho, R. “The Self-Expanding Stolen Inference Supply Chain: An AI Agent Harvesting and Re-Serving LLM Access.” SANS Internet Storm Center, September 11, 2026.

[16] Brucato, A. (Sysdig Threat Research Team). “LLMjacking: Stolen Cloud Credentials Used in New AI Attack.” Sysdig Blog, May 6, 2024.

[17] Cloud Security Alliance. “Skynet-Mode LLMjacking: Exposed Model Endpoints as Autonomous Attack Engines.” CSA AI Safety Initiative, October 25, 2026.

← Back to Research Index