Cloud & Identity

React2Keys: how an automated React2Shell campaign stole 50,000 cloud, AI and database secrets

React2Keys explained: an automated campaign used React2Shell (CVE-2025-55182) to steal 50,000+ cloud, AI and database secrets. Attack chain, IOCs, what to do.

By · · 6 min read

Key facts

CVE
CVE-2025-55182
Severity
Critical (CVSS 3.1 10.0). Unauthenticated remote code execution in React Server Components, which Next.js uses for Server Actions.
Affected
react-server-dom-webpack, react-server-dom-parcel and react-server-dom-turbopack 19.0, 19.1.0, 19.1.1 and 19.2.0, and frameworks that bundle them, including Next.js.
Exploited in the wild
Yes, since December 2025. CloudSEK reports the React2Keys campaign ran from 9 to 19 November 2026 against more than 19,000 hosts at over 400 organizations.
CISA KEV
Added to CISA KEV on 5 December 2025, due 12 December 2025. CISA lists known ransomware use.
Fixed in
React 19.0.1, 19.1.2 or 19.2.1 and later; Next.js patched releases per the React and Next.js advisories.
What was exposed
More than 50,000 credentials per CloudSEK: AWS, Azure and GCP credentials, AI provider keys, Claude Code OAuth tokens, GitHub tokens, database credentials and crypto exchange keys.
What to do now
Patch, then rotate every secret that was readable on an exposed host and remove the actor's SSH key from authorized_keys. Patching alone does not revoke access.

React2Keys is a credential theft campaign built on React2Shell (CVE-2025-55182), the CVSS 10.0 remote code execution flaw in React Server Components disclosed on 3 December 2025. CloudSEK published its analysis on 30 November 2026: an automated, AI-assisted operation stole more than 50,000 credentials from more than 19,000 hosts associated with over 400 organizations. BleepingComputer reports the campaign ran for ten days, from 9 to 19 November 2026.

The vulnerability is almost a year old and has been in the CISA Known Exploited Vulnerabilities catalog since 5 December 2025. The point of this attack is not the bug. It is what an attacker does with a Node.js process that can read every secret the application was given.

What happened

CloudSEK says it mapped the operation after gaining access to the attacker’s infrastructure, recovering a 1.9-million-line exfiltration log, per-victim folders and a toolkit of over 900,000 files. Victims span dozens of countries, several cloud providers, and both enterprise and small-business infrastructure, with no sector or regional focus.

What was taken, according to CloudSEK and BleepingComputer:

  • AWS access keys and temporary STS session credentials, Azure managed-identity tokens, Google Cloud service-account keys
  • Anthropic, OpenAI and Google Gemini API keys, and Claude Code OAuth tokens
  • GitHub access tokens and full git archives of repositories, including infrastructure-as-code
  • PostgreSQL, Redis and MongoDB credentials, plus payment, registrar and messaging tokens
  • Cryptocurrency exchange API keys and wallet private keys

CloudSEK has not named the actor. The host and organization figures are its own counts from the recovered data.

The attack chain, step by step

  1. Discover new targets. The actor polls six public Certificate Transparency logs every three minutes, so a server can become a target minutes after it gets a TLS certificate. Domains are deduplicated and fingerprinted for Next.js; only about 3% pass.
  2. Exploit React2Shell. One unauthenticated POST to a Server Action route carries a crafted multipart body with a malicious React Flight object. The server runs attacker JavaScript inside the live Node.js process. Output comes back in the digest field of a thrown error, so Next.js’s own error handling becomes the exfiltration channel.
  3. Harvest locally. The payload identifies the runtime (Kubernetes pod, Lambda, ECS Fargate, PM2 host or container), matches every environment variable against credential patterns and reads .env* files, cloud credential files, SSH keys and the Kubernetes service-account token.
  4. Pivot into the cloud. On AWS it queries the container metadata endpoint and exchanges a Kubernetes token through EKS Pod Identity for temporary credentials, even where no static key exists. On Azure it takes managed-identity tokens from the Instance Metadata Service. On GCP it mints OAuth tokens from stolen service-account keys.
  5. Go beyond the host. It opens live sessions to the victim’s own databases, runs GitHub code search across whole organizations with a stolen token, and in one case used a gateway credential to pull every secret from a third-party secrets manager (Infisical).
  6. Persist. The actor appends its SSH public key, comment label bluelocale-foothold, to authorized_keys, so patching does not remove access.
  7. Triage and monetize. Every secret is scored by estimated value and validated live. Stolen keys are tested against roughly ten LLM providers, Claude Code tokens are used to run inference billed to the victim, and stolen AWS credentials are used to submit the Bedrock use-case form to unlock gated Claude models.
  8. Reinvest. Stolen cloud tokens pay for more scanning: a scan worker deployed as an AWS Lambda in a victim account and servers provisioned as additional workers.

Why it worked

A long tail of unpatched servers. React shipped fixes on 3 December 2025 and exploitation started within hours. A year later, unpatched Next.js apps are still reachable, and CT log polling finds new deployments within minutes.

Secrets live in the process. Environment variables and .env files are the default way to configure Node.js apps. Code execution inside that process means the attacker gets everything the app can read.

Workload identity without boundaries. “No static keys” did not help. Metadata endpoints, EKS Pod Identity and managed identities handed out live tokens to whoever ran code in the workload, with whatever IAM scope the app was given. The same lesson applied in the Rackspace Spot breach, where Kubernetes Secrets were the prize.

One credential unlocks the vault. A secrets manager does not reduce exposure if the credential to the whole vault sits in the app’s environment.

What defenders should do

  • Patch. Upgrade react-server-dom-webpack, react-server-dom-parcel and react-server-dom-turbopack to 19.0.1, 19.1.2, 19.2.1 or later, and Next.js to the patched release for your line per the React advisory.
  • Rotate everything the host could read. CloudSEK’s advice is to assume every environment variable and secret file is compromised: cloud keys, AI provider keys, database passwords, GitHub, registrar, payment and messaging tokens, and secrets-manager credentials.
  • Audit identity use, not just keys. Review CloudTrail and other cloud audit logs for new IAM users, Lambda functions, unexpected instances and Bedrock model-access changes, and review managed-identity and EKS Pod Identity token use.
  • Check AI billing. Look for usage spikes on AI provider accounts.
  • Reduce blast radius. Run apps as non-root, give each app its own narrowly scoped secrets and IAM role, and do not share hosts between applications.

How to check if you are affected

  • Version: treat any internet-facing app that ran the affected React Server Components packages (19.0, 19.1.0, 19.1.1, 19.2.0) or an unpatched Next.js release as exposed.
  • SSH persistence IOC: search every authorized_keys file for the ed25519 key containing AAAAC3NzaC1lZDI1NTE5AAAAINiNfAw552VRo+E3mBu/MHaVsRDcN0BMGuVCjgIyHbb3 or the comment bluelocale-foothold. CloudSEK published a Sigma rule for it.
  • Web logs: unauthenticated multipart POSTs to Server Action routes, especially from 9 to 19 November 2026.
  • Cloud logs: STS calls, Lambda deployments or Bedrock use-case submissions you did not make, and GitHub code-search activity from server IPs.
  • Exposure checker: CloudSEK runs a lookup by domain or work email at exposure.cloudsek[.]com/react2keys.

My take

This is a secrets management incident that started as a patching failure. The patch was available for a year; the damage came from what the Node.js process could reach once it was owned. If an exposed app was unpatched at any point in the last year, I would consider its credentials gone.

What I find most notable is the economics. AI keys are now priced and validated next to cloud and crypto keys, and stolen cloud accounts fund the next round of scanning. Defenders pay twice: once for the breach, once on the invoice. It also mirrors the token theft in the Microsoft agent-framework supply chain attack: the target is whatever identity the workload holds.

Questions for this week: which internet-facing services read secrets from environment variables, can any single app credential open our whole secrets vault, and would we notice a new Lambda or a Bedrock access request in an account we rarely look at? More cases in cloud and identity incidents.

Sources

  1. React2Keys: AI-Powered React2Shell Campaign Steals 50,000+ AI, Cloud, Database, Payment, Registrar, and Crypto Keys from 19K+ Victims · CloudSEK, 30 November 2026
  2. Critical Security Vulnerability in React Server Components · React team, 3 December 2025 (updated 26 January 2026)
  3. CVE-2025-55182 Detail · NVD
  4. Known Exploited Vulnerabilities Catalog · CISA
  5. AI-powered React2Keys campaign steals secrets from 400 organizations · BleepingComputer, 30 November 2026
  6. 'React2Keys' Campaign Plunders Org Credentials via React2Shell · Dark Reading, 30 November 2026