AI dev tools —

AI campaign steals 50,000+ credentials from 400 organizations via React2Shell vulnerability

The exploitation of the critical 'React2Shell' Next.js flaw by an attacker has resulted in the harvesting of tens of thousands of credentials from cloud, AI, and CI/CD systems across more than 400…

AI campaign steals 50,000+ credentials from 400 organizations via React2Shell vulnerability

The exploitation of the critical 'React2Shell' Next.js flaw by an attacker has resulted in the harvesting of tens of thousands of credentials from cloud, AI, and CI/CD systems across more than 400 organizations, as detailed in the 'React2Keys' campaign.

This automated credential theft operation, termed 'React2Keys,' targeted unpatched Node.js servers, successfully acquiring over 50,000 credentials from a minimum of 19,000 hosts belonging to 400 different organizations. The activity was automated using artificial intelligence tools, which capitalized on the severe remote code execution vulnerability known as React2Shell (CVE-2025-55182). Researchers at CloudSEK uncovered the full scope of the React2Keys campaign after gaining access to the attacker's infrastructure and mapping its complete operations. The researchers managed to retrieve a substantial exfiltration log containing 1.9 million lines, along with per-victim data and a toolkit consisting of over 900,000 files.

React2Shell represents a significant weakness within React Server Components, enabling remote adversaries to execute code on vulnerable servers—including those hosting Next.js applications—without needing authentication. Hackers linked to China commenced exploiting this vulnerability shortly after its public disclosure in December 2025. Since that time, this flaw has been utilized in various malicious activities, such as botnet operations, ransomware deployment, cryptomining attacks, and automated credential theft.

CloudSEK documented a ten-day campaign that ran between November 9 and November 19, during which the malicious actors stole a diverse array of secrets, including API keys, database access credentials, AI service tokens, and various cloud credentials. The attacker employed a method where they used newly issued TLS certificates to identify potential targets, subsequently extracting secrets from the compromised servers. The scanning mechanism flagged approximately 3% of the unique domains it examined as potentially running Next.js. CloudSEK observed that "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." Furthermore, the researchers noted, "Domains are deduplicated by registrable domain, then fingerprinted for Next.js from a previously compromised server's own network. Only about 3% pass."

In certain instances, the operation extended beyond the initial compromised hosts, allowing access to secrets managers, Git repositories, databases, and cloud identities. CloudSEK specified that the targeted secrets included the following: [Note: The source lists the targeted secrets but does not provide a specific enumeration of them in the provided text snippet, only stating the general categories]. Following the acquisition of these secrets, the attacker assessed their validity status and ranked them based on their estimated worth, specifically flagging crypto credentials that could facilitate fund transfers.

The threat actor utilized several artificial intelligence services and tools, assigning each a distinct function during the key validation process. For instance, OpenRouter was employed to test stolen API keys against four different Claude models, Azure AI Foundry was used to check access to Claude deployments, and Gemini was utilized to confirm the authenticity of stolen Google API keys. The researchers also reported that the attacker leveraged stolen Claude Code OAuth tokens to initiate AI requests that were billed to the victims.

Additionally, CloudSEK discovered that the attacker implanted an SSH key within the affected environments to maintain persistent access and leveraged stolen cloud credentials to broaden their scanning activities. CloudSEK advises that organizations implement several protective measures: patching all affected systems, rotating any exposed credentials, conducting audits of cloud identity and AI-platform utilization, and verifying the absence of unauthorized SSH keys. Because stolen credentials and implanted SSH access can remain functional even after the vulnerability is patched, supplementary measures are necessary to revoke exposed secrets and eliminate SSH keys from compromised environments. An online utility provided by CloudSEK is available to assist organizations in assessing their exposure to the React2Shell campaign.

On December 15th, an open discussion is scheduled featuring Eoin Hinchy, the co-founder and CEO; Martin Moroney, the Head of AI Transformation; and Christina Troy, the Sr. Manager, IT, to discuss the outcomes, shortcomings, and lessons learned from the incident. Attendees are encouraged to bring their questions to gain candid insights.

This incident underscores the escalating sophistication of threat actors who are integrating autonomous AI tools into their attack chains, moving beyond simple vulnerability exploitation to conduct complex, multi-stage operations across diverse platform components.

Market participants and institutions should recognize that the reliance on modern, interconnected infrastructure, such as Next.js applications and integrated AI services, creates expanded attack surfaces that require continuous, proactive security posture management.

Why it matters

This demonstrates a severe threat to infrastructure security, as AI automation is being used to exploit critical platform vulnerabilities like React2Shell. Operators must immediately audit cloud identities and rotate exposed secrets, as stolen credentials remain viable even after patching the initial flaw.

Earlier coverage

ai-devtoolsjavascriptsecurity

Related coverage

Elsewhere in this edition