The React2Keys campaign is an automated operation that has harvested over 50,000 keys for AI services, cloud accounts, databases, payments, domain registrars and crypto from more than 19,000 victims, according to threat researchers. It exploits React2Shell, tracked as CVE-2025-55182. The bug lets an unauthenticated attacker run code remotely through Next.js Server Actions.
Investigators say the attacker compromised CI/CD, cloud and AI infrastructure tied to more than 400 organizations. Victims are spread across dozens of countries and cloud providers, from enterprises to small businesses, so the campaign doesn’t target a single sector or region.
What researchers recovered
By engaging with the attacker’s infrastructure, analysts mapped the full attack chain, from finding targets to sorting stolen credentials, with AI help at several steps. They recovered a log of 1.9 million lines of stolen data, folders for each victim, more than 900,000 toolkit files, and scan and inventory databases. The campaign takes its name from its goal: steal, validate, rank and hoard valuable credentials, including keys for Anthropic, OpenAI and Google Gemini, plus AWS, Azure and GCP identities.

How the attack works
The attacker watches six public Certificate Transparency logs every three minutes, so a site that just obtained a TLS certificate can be probed within minutes. Domains are fingerprinted for Next.js, and only about 3% pass. When Cloudflare blocks a payload, a module infers an undocumented Cloudflare IP range to reach the unprotected origin server.
Initial access takes one unauthenticated POST to a route reachable by Server Actions, carrying a crafted multipart body. Prototype pollution makes the server execute the attacker’s JavaScript in its running Node.js process. Output returns in the digest field of an error the server throws, which turns the framework’s own error handling into a data channel.
The payload then identifies the runtime, such as a Kubernetes pod, Lambda, ECS Fargate or PM2 host, and collects environment variables and secret files, including .env files, cloud credential files, SSH keys and Kubernetes tokens.

Pivoting and persistence
- On AWS, it exchanges Kubernetes tokens for temporary credentials even when no static key exists. On Azure it steals managed-identity tokens, and on GCP it mints OAuth tokens from service-account keys.
- It installs PostgreSQL, Redis and MongoDB drivers and connects to victims’ databases, and it copies full git repositories with history.
- One gateway credential found in the environment gave it everything stored in an outside secrets manager.
- It tests harvested keys against about ten LLM providers and checks whether crypto credentials can actually move funds, across eleven exchanges.
- It appends its own SSH public key to authorized_keys, so patching doesn’t remove access.
Each secret is scored by estimated value and validated in priority order. Keys that work but are out of credit are tracked, not discarded. Stolen cloud tokens fund more scanning, and scanning capacity now includes an AWS Lambda worker and a VM fleet carrying 1,483,686 more target lines.
The same worker code has an Odoo mode aimed at CVE-2026-25137. A separate WordPress chain uses two more CVEs, 2026-63030 and 2026-60137, but only 4 of 2,939 scanned hosts proved vulnerable.

What to do now
Because stolen credentials work without the vulnerable app, patching alone isn’t enough. Researchers recommend:
- Update the React Server Components packages to 19.0.1, 19.1.2 or 19.2.1 (or newer), and run a Next.js version that fixes CVE-2025-55182.
- Rotate every environment variable and secret on the host: cloud, AI, database, registrar, payment and messaging keys, and any secrets-manager gateway credentials.
- Look through each authorized_keys file for keys you don’t recognize, and check cron jobs and SSH logins.
- Look at Kubernetes service-account use, IRSA and EKS Pod Identity activity and Azure managed-identity tokens, even when no static keys turned up.
- Go through CloudTrail and other cloud audit logs, plus AI-platform usage, for strange calls, new IAM users, changes to Bedrock model access and instances nobody launched.
- Run apps as non-root, isolate secrets per app and don’t share hosts across applications.
The researchers also published a Sigma rule to detect the attacker’s SSH persistence key and an online exposure checker, which can tell organizations whether their domain or work email appears in the data.
What happens next
Any team that ran an exposed Next.js app should assume its secrets are compromised and rotate them. Because the React2Keys campaign keeps scanning new certificates and growing its fleet, unpatched servers will keep being found within minutes of going online.
Source: cloudsek.com