React2Keys campaign harvested 50,000 credentials from 400 organisations
An automated operation exploiting the React2Shell flaw in Next.js stole cloud, database and AI credentials from at least 19,000 hosts over ten days, researchers at CloudSEK found.
An automated credential-harvesting campaign stripped more than 50,000 secrets from at least 19,000 hosts belonging to 400 organisations, according to researchers at CloudSEK, who named the operation React2Keys. The haul included cloud access keys, database passwords, Git repository tokens and API keys for commercial AI services, and in some cases the attacker used those secrets to reach cloud identities, databases, repositories and secrets managers well beyond the server that was first breached.
The way in was React2Shell, CVE-2025-55182, an unauthenticated remote code execution bug in React Server Components and Next.js Server Actions that carries the maximum CVSS severity score of 10. Victims span dozens of countries and top-level domains, multiple cloud providers, and organisations of every size, Dark Reading reported. Because the stolen credentials and a planted SSH key keep working after the flaw itself is fixed, patching alone does not end the incident.
CloudSEK uncovered the operation after gaining access to the attacker's own infrastructure and mapping the activity from the inside, BleepingComputer reported. The researchers recovered a 1.9-million-line exfiltration log, per-victim records and a toolkit running to more than 900,000 files. The identified campaign window was narrow: ten days, from 9 to 19 November.
What to do now
- Patch first. Move React Server Components packages to version 19.0.1, 19.1.2, 19.2.1 or newer, and update Next.js to a build that carries the fix for CVE-2025-55182, following the vendor advisory. CloudSEK's research team told Dark Reading that applying the original patch "would have blocked the primary initial access vector used in this campaign".
- Assume the secrets are gone. Rotate every credential that was present on an affected host: cloud access keys and session tokens, database passwords, Git tokens, and API keys for AI services. Credentials stolen before the patch keep working afterwards.
- Hunt for persistence. Check compromised and suspect hosts for SSH keys you did not add, and remove any you cannot account for.
- Audit the downstream. Review cloud identity activity, AI platform usage and billing, and logs for any unusual access from unfamiliar locations or at unusual volumes. Stolen cloud credentials were used to fund further scanning, so the signs may look like your own workloads.
- Check exposure. CloudSEK has published an online tool for organisations to check whether they were caught up in the React2Shell campaign.
- Reduce the blast radius for next time. Run applications as non-root and keep per-application secrets isolated, so one compromised process does not surrender the whole estate.
How the campaign worked
The operation was built for volume rather than finesse. The attacker watched Certificate Transparency logs, the public record of newly issued TLS certificates, to find freshly deployed sites. "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", CloudSEK wrote. Each new domain was reduced to its registrable form to avoid duplicates, then probed for signs of Next.js from a server the attacker had already taken over, a filter that about 3% of domains passed.
Mass scanning ran on serverless Lambda workers and fleets of virtual machines. For hosts that passed filtering, the attacker sent a single unauthenticated HTTP POST carrying malicious code, which made the server execute attacker-supplied JavaScript inside its live Node.js process, followed by payloads that collected credentials from the host.
What followed was the part that makes the campaign notable. Stolen keys were automatically validated and ranked by estimated value, with cryptocurrency credentials usable to move funds flagged for attention. The attacker tested stolen API keys through OpenRouter against four Claude models, used Azure AI Foundry to check access to Claude deployments, and queried Gemini to verify stolen Google API keys. Stolen Claude Code OAuth tokens were then used to run AI requests billed to the victims, and stolen cloud credentials were used to expand the scanning operation, with the victims effectively subsidising their own compromise.
Randolph Barr, chief information security officer at Cequence Security, told Dark Reading that the whole process is automated off new certificate registrations, and that "AI keys are now on the shopping list next to cloud and payment credentials". The theft, he noted, often surfaces at the end of the billing cycle rather than in a security alert.
The true scope may be larger than CloudSEK's figures. Oren Biderman, head of threat detection at Daylight Security, told Dark Reading that hundreds of thousands of exposed instances were flagged when the flaw was disclosed last December, and that the bug amounts to a single unauthenticated request with public exploit code. Organisations that ran an exposed Next.js app and only patched it, he added, should not assume they are clean.
Technical details
- Vulnerability: CVE-2025-55182, known as React2Shell. Unauthenticated remote code execution in React Server Components and Next.js Server Actions. CVSS score 10.
- Disclosure: first made public on 3 December 2025. China-linked attackers began exploiting it within hours, according to BleepingComputer, and it has since featured in ransomware, botnet, cryptomining and credential-theft activity. Dark Reading reports that exploitation has ranged from opportunistic financially motivated actors to, reportedly, China-nexus groups; that attribution is not confirmed.
- Campaign: React2Keys, described by CloudSEK as a "fully automated credential-harvesting operation" built on React2Shell. Observed window 9 to 19 November. More than 50,000 credentials taken from at least 19,000 hosts across 400 organisations.
- Targeted secrets: AWS access keys and session credentials; managed-identity tokens in Azure; service-account keys in Google Cloud; API keys for Anthropic, OpenAI and Google Gemini; Claude Code OAuth tokens; GitHub access tokens; credentials for PostgreSQL, Redis and MongoDB; and cryptocurrency exchange API keys along with wallet private keys.
- Persistence: an SSH key planted on compromised environments.
- Fixed versions: React Server Components 19.0.1, 19.1.2, 19.2.1 or later, plus a Next.js release carrying the CVE-2025-55182 fix as described in the vendor advisory.
CloudSEK has not published figures on how many of the 50,000 stolen credentials were still valid at the time of discovery, and the identity of the operator has not been established.