Automated exploitation of React2Shell
The React2Keys campaign exploited the React2Shell (CVE-2025-55182) vulnerability in React Server Components to steal 50,000 credentials from 19,000 hosts at 400 organizations between November 9 and November 19. This campaign clearly demonstrates the speed of automated exploitation against unpatched Node.js servers. China-linked hackers began using the flaw within hours of its December 2025 disclosure. Researchers at CloudSEK uncovered the activity after they accessed the attacker infrastructure and mapped its full activity, which included recovering a 1.9-million-line exfiltration log, per-victim data, and a toolkit comprising over 900,000 files. The attacker used newly issued TLS certificates to find targets and then harvested secrets from compromised servers after they fingerprinted roughly 3% of unique domains as likely running Next.js. The scanner deduplicated domains by registrable domain and then fingerprinted them for Next.js using information from a previously compromised server’s own network. By polling six public Certificate Transparency logs every three minutes, the scanner ensured a new domain could become a target within minutes of deployment.
AI-driven validation and credential theft
The attackers used multiple AI services to validate stolen credentials and rank them by estimated value, specifically flagging crypto credentials that could be used to move funds. They used OpenRouter to test stolen API keys against four Claude models, Azure AI Foundry to check access to Claude deployments, and Gemini to verify stolen Google API keys. The attacker also leveraged stolen Claude Code OAuth tokens to run AI requests billed to victims. Once the attacker obtained the secrets, they checked their validity status and ranked them by their estimated value.
The campaign targeted AWS access keys, Azure managed-identity tokens, and Google Cloud service-account keys. They also targeted Anthropic, OpenAI, and Google Gemini API keys, as well as Claude Code OAuth tokens. These credentials allowed access to PostgreSQL, Redis, and MongoDB databases, as well as GitHub access tokens and cryptocurrency exchange API keys.
| Secret Type | Specific Examples |
|---|---|
| Cloud Access | AWS access keys, Azure managed-identity tokens, Google Cloud service-account keys |
| AI Tokens | Anthropic, OpenAI, and Google Gemini API keys, Claude Code OAuth tokens |
| Infrastructure | GitHub access tokens, PostgreSQL, Redis, and MongoDB credentials |
| Financial | Cryptocurrency exchange API keys and wallet private keys |
The operation reached beyond initial hosts to access cloud identities, databases, Git repositories, and secrets managers. Attackers planted SSH keys on compromised environments to maintain persistent access and used stolen cloud credentials to expand their scanning. Because stolen credentials and planted SSH access can remain usable after the flaw is patched, organizations must also audit cloud identity usage and remove unauthorized SSH keys. Companies must patch affected systems and rotate exposed credentials to mitigate the impact. CloudSEK provides an online tool to help organizations check their exposure to the React2Shell campaign.
