React2Keys: AI-Powered React2Shell Campaign Steals 50,000+ AI, Cloud, Database, Payment, Registrar, and Crypto Keys from 19K+ Victims
Over 50,000 credentials from 19,000+ victims worldwide were stolen in React2Keys, an AI-powered campaign exploiting the React2Shell vulnerability. CloudSEK’s investigation reveals how attackers targeted AI platforms, cloud infrastructure, databases, payment systems and cryptocurrency services, using stolen resources to fuel further attacks.
Get the latest industry news, threats and resources.
CloudSEK TRIAD
CloudSEK Threat Research and Information Analytics Division
No items found.
Executive Summary
CloudSEK's Global Threat Intelligence team has uncovered critical threat intelligence about an attacker who has compromised CI/CD, Cloud & AI infrastructure associated with over 400 organizations. The threat actor has been harvesting environment variables, application secrets, cloud and database credentials, API keys, authentication tokens and other sensitive information from exposed servers.
This is a fully automated credential-harvesting operation built on the "React2Shell" vulnerability (CVE-2025-55182), a critical unauthenticated remote code execution flaw in Next.js Server Actions.
We have dubbed the campaign React2Keys, because its goal is to steal, validate, rank and hoard high-value credentials: AI provider keys (Anthropic, OpenAI, Google Gemini and others), cloud provider keys and identities (AWS, Azure, GCP), databases, payment and registrar credentials, and cryptocurrency custody and exchange keys.
Source of Intelligence
Upon engaging with adversaries and their infrastructure, we were able to map the entire attack lifecycle from target discovery to credential triage - automated with assistance from AI. The recovered material included a 1.9-million-line exfiltration log, per-victim result folders, a toolkit of over 900,000 files and scan-ledger and inventory databases. To support remediation, CloudSEK has launched an exposure validation tool at https://exposure.cloudsek.com/react2keys.
Scope of the Campaign
Victims span dozens of countries and TLDs, multiple cloud providers, and both enterprise and small-business infrastructure. This is not a campaign against a specific sector or region.
Campaign Timeline
Modus Operandi
Methodology
1. Discover and filter. The actor polls six public Certificate Transparency logs (CT Logs) every three minutes, so a new TLS certificate can become a scan target within minutes of deployment. Domains are deduplicated by registrable domain, then fingerprinted for Next.js from a previously compromised server's own network. Only about 3% pass. A dedicated module infers an undocumented Cloudflare IP range from failed-probe patterns, to find and attack the unprotected origin server when the payload is blocked at the edge.
2. Initial access. A single unauthenticated POST to any Server-Action-reachable route carries a crafted multipart body with a weaponized React Flight object. Prototype pollution makes the server execute attacker JavaScript inside the live Node.js process. Output returns inside the digest field of a thrown Error, so Next.js's own production error handling becomes the exfiltration channel. The exploit also re-sends the body at each redirect hop, so apps behind auth-middleware redirects are not mistaken for patched.
Related Activity
Odoo: the same worker code can switch to an Odoo mode targeting CVE-2026-25137 (an unauthenticated database manager).
WordPress: a separate chain targets CVE-2026-63030 and CVE-2026-60137 and shares the harvesting and alerting layer. Of 2,939 hosts scanned, only 4 were confirmed vulnerable.
3. Local harvesting. The payload fingerprints the runtime (Kubernetes pod, Lambda, ECS Fargate, PM2 host or generic container). It then matches every environment variable against a credential-sensitivity pattern, reads known secret files (.env*, cloud credential files, SSH keys, the Kubernetes service-account token) and sweeps for non-standard .env.* files. A server-side filter keeps key-shaped values and drops config noise.
4. Pivot. Follow-on payloads run inside the victim environment.
Cloud identity:
AWS: queries the container metadata endpoint, and exchanges a Kubernetes/IRSA token via EKS Pod Identity for live temporary AWS credentials, even when no static key exists.
Azure: steals managed-identity tokens from the Instance Metadata Service.
GCP: mints OAuth tokens from stolen service-account keys to inventory every Firebase app and its keys.
Stolen AWS keys are validated with hand-rolled request signing (no SDK fingerprint). 225 captured STS session-credential files (ASIA* keys with expiry times) show validation runs near real time.
Databases: drivers for PostgreSQL, Redis and MongoDB are installed at runtime, and live connections are opened to the victim's own databases.
Source code: full git archives of repositories (including infrastructure-as-code) are exfiltrated with history. A GitHub reconnaissance tool uses a token to run code search across whole organizations for Anthropic keys, AWS secrets, private keys and mnemonic phrases, so exposure extends beyond the one exploited server.
Secrets vaults: a gateway credential found in the environment was used to pull every secret from a third-party secrets manager. Centralizing secrets did not protect victims whose vault credential was readable from the app.
AI and crypto keys: harvested keys are tested against roughly ten LLM providers. Crypto credentials are classified by whether funds can actually be moved.
Persistence: the actor's SSH public key is appended to a compromised account's authorized_keys, so patching does not remove access. A companion pipeline builds a 74-entry lateral-movement target list from harvested SSH credentials. We did not confirm that a separate stage uses it, at the time of writing this report. The key is a confirmed indicator of compromise. The toolkit also checks hosts for competing cryptomining malware, though it does not deploy any of its own.
5. Triage. Every secret is scored by estimated monetary value, then live-validated in priority order. Keys fall into seven states: live, no-credit, quota-capped, organization-disabled, workspace-scoped, dead, rate-limited. A key that is valid but out of credit is tracked rather than discarded. The operator also separates cloud-metadata false positives from real hits so its own counts are not inflated.
Other behaviors:
Fund-movement classification: exchange keys with trade or withdraw scope, cloud KMS credentials able to sign Ethereum-style keys, and raw extended private keys are tagged as spendable. Eleven exchanges are covered, and Binance keys are validated with real signed account calls routed through Tor.
Bedrock gate bypass: where a stolen AWS account is gated behind the Bedrock use-case form, the actor's script submits the form with the stolen credentials.
How AI was used by the threat actor
AI tool
What the actor does with it
Claude Code (stolen OAuth)
Steals a victim's own Claude Code login tokens, refreshes them, runs inference billed to the victim's subscription.
OpenAI Codex
Validates stolen API keys with real streamed requests, run from inside the victim's own network so it never touches the actor's infrastructure.
OpenRouter (hosting Claude)
Validates stolen OpenRouter keys against 4 Claude models, checks for live vs out-of-credit.
Azure AI Foundry (hosting Claude/OpenAI)
Pairs stolen Azure endpoint URLs with stolen keys, tests Claude deployments on Azure.
OpenCode Zen
Validates stolen keys against a multi-model gateway (GPT-5.x, Claude-Sonnet-5).
Google Gemini
Same live-validation pattern, against Gemini API.
6. Reinvestment. Stolen cloud tokens fund more scanning. A live cloud-provider token found in the actor's own provisioning scripts also appeared in a victim's leaked environment.
The same pattern holds for Telegram bot tokens: of 9 live tokens, only one belonged to the actor, and the other 8 traced back to victims. The threat actor’s scanning capacity has grown beyond dedicated workers. It now includes:
A serverless worker that runs on AWS Lambda against the same broker.
A VM-fleet bundle polling a third broker port, carrying 1,483,686 additional target lines across 297 shard files.
Diamond Model
Remediation
Because stolen credentials work independently of the vulnerable app, patching alone is insufficient.
Patch. Upgrade React Server Components packages to 19.0.1, 19.1.2, 19.2.1 or later, and move Next.js to a release patched for CVE-2025-55182 per the vendor advisory.
Rotate everything on the host. Assume every environment variable and secret file is compromised: cloud keys, AI provider keys, database credentials, registrar, payment and messaging tokens, and any secrets-manager gateway credentials.
Audit persistence. Review every authorized_keys file for unknown keys, including the IOC given, and review cron jobs and SSH logins.
Do not rely on "no static keys found." Review Kubernetes service-account use, EKS Pod Identity and IRSA role activity, and Azure managed-identity token usage. Scope IAM roles tightly.
Audit logs. Check AWS CloudTrail, cloud audit logs and AI-platform usage for unusual calls, new IAM users, Bedrock model-access changes and unexpected instance deployments, including in your own cloud accounts.
Reduce blast radius. Run apps as non-root, isolate per-app secrets and avoid sharing hosts across applications.
Appendix
Sigma Rule
title: React2Key Campaign — Attacker SSH Persistence Key Planted After React2Shell(CVE-2025-55182) exploitation
status: experimental
description:
Detects the exact SSH public key this CVE-2025-55182 (React2Shell) campaign plants into victim authorized_keys files for persistent backdoor access. This is the actual key material pulled from the attacker's own script (comment label "bluelocale-foothold"),not a filename or nickname — the strongest possible identity match since this exact keypair is reused across victims as their standing foothold.
references:
- Internal threat-intel capture of attacker exposed server, React2Keys
author: CloudSEK GTI
date: 2026/11/24
logsource:
category: file_event
product: linux
detection:
selection:
TargetFilename|endswith:
'/.ssh/authorized_keys'
FileContents|contains: 'AAAAC3NzaC1lZDI1NTE5AAAAINiNfAw552VRo+E3mBu/MHaVsRDcN0BMGuVCjgIyHbb3'
condition: selection
falsepositives:
- None — this exact base64 key blob is unique to this actor's keypair, impossible to collide with by chance
level: critical
tags:
- attack.persistence
- attack.t1098.004 - cve.2025.55182
Detailed Methodology
Stage
What it does
Operational Insights
Discover and filter
Polls CT logs for fresh certificates, extracts domains, dedupes them and queues batches for the scanner.
Six logs (Google, Cloudflare, DigiCert, Sectigo). Targets are minutes old, not a day old.
Initial access
Fires the React2Shell exploit at Next.js hosts, decodes the digest response and classifies each host (vulnerable, patched, WAF-blocked, etc.).
60 concurrent probes, TLS checks off. SSRF fallback hits the cloud metadata endpoint. Imports from a .hermes/skills path, hinting at an AI-agent framework.
Local harvesting: key mining
Regex-matches provider key formats in harvested data and writes candidate lists per provider.
Covers LLM, payment, cloud, GitHub, Slack, Telegram and crypto keys, plus SMTP credentials.
Local harvesting: custody context
Collects the env vars, files and wallet addresses around each crypto-custody key.
Decides whether funds can actually be moved.
Pivot: AWS / cloud
Repeatedly retries the credential grab against one victim estate until a Cloudflare block is lifted.
Silent while blocked, writes credentials once through. Shows persistence.
Pivot: GCP
Mints Google OAuth tokens from stolen credentials and checks projects, billing and Vertex/Gemini access.
Aims to monetize AI access, not just steal data.
Pivot: Databases
Opens a live read-only superuser Postgres session, dumps SMTP creds and enumerates other databases.
Searches columns named key, secret, token, password and similar.
Pivot: Source code
Runs GitHub code search across the victim's org with a stolen token for secret patterns.
Runs from the victim's own server. Exposure extends beyond the one host.
Pivot: Secrets vault
Validates LLM keys pulled from a secrets-manager dump (Infisical).
One vault credential exposes every stored secret.
Triage
Ranks secrets by monetary value, probes each against its provider and caches the verdict.
Max 10 probes per host. Builds ready-to-use SMTP AUTH lines.
Bedrock bypass
Submits the Anthropic use-case form with stolen AWS credentials to unlock gated Claude models.
Gated access becomes live in one script run.
Reinvestment: Hetzner
Provisions Hetzner servers as scan workers joining the fleet broker.
Expands scanning capacity.
Reinvestment: Lambda
Deploys the scan worker as an AWS Lambda in a stolen-credential account.
Victims fund the campaign that hit them.
References
Intelligence source and information reliability - Wikipedia
Traffic Light Protocol - Wikipedia
Subscribe to CloudSEK Resources
Get the latest industry news, threats and resources.