React2Keys Stole Secrets From 400 Organizations. Then AI Did the Rest.

React2Keys Stole Secrets From 400 Organizations. Then AI Did the Rest.

In ten days in November, an automated campaign swept up more than 50,000 credentials from over 19,000 servers belonging to 400 organizations — by turning the victims’ own artificial intelligence against them. The campaign, dubbed React2Keys, rode in on a critical flaw in React Server Components, and once it was inside, it used stolen AI keys to test, rank, and spend the very secrets it had stolen. According to CloudSEK, which got inside the attackers’ infrastructure and mapped the operation from a 1.9-million-line exfiltration log, this was not a smash-and-grab. It was a pipeline — and it ran on autopilot.

A flaw that needed no login

The entry point was CVE-2025-55182, known as React2Shell, a remote code execution flaw in React Server Components — the technology behind many Next.js applications — rated a perfect 10.0 on the CVSS scale. It needs no authentication: an attacker who can reach a vulnerable server can run code on it. China-linked hackers began exploiting it within hours of its disclosure in December 2025, and since then the same flaw has shown up in ransomware, botnet, and cryptomining attacks. React2Keys is the latest chapter — and the most industrialized one.

New certificates became targets within minutes

The targeting was relentless and almost entirely automatic. According to CloudSEK, the attackers polled six public Certificate Transparency logs every three minutes — the public records of every new TLS certificate issued on the internet. A freshly deployed server could become a scan target within minutes of going live. The attackers deduplicated domains, then fingerprinted each one for signs of Next.js, scanning from the network of a server they had already compromised. Only about 3 percent passed the filter as likely Next.js targets — but at internet scale, 3 percent was more than enough.

Diagram of how the React2Keys campaign hunted its targets: watching new certificates in six public logs every three minutes, fingerprinting for Next.js, exploiting the React2Shell flaw CVE-2025-55182 with no login, stealing 50,000-plus secrets from 19,000-plus hosts, then validating and ranking each stolen key with AI.

What they took — and how AI sorted the loot

Once inside, the attackers moved far beyond the first server. CloudSEK says they reached cloud identities, databases, Git repositories, and secrets managers — everywhere an organization keeps the keys to its own kingdom. The haul reads like an inventory of modern infrastructure: AWS access keys and temporary session credentials, Azure managed-identity tokens, Google Cloud service-account keys, API keys for Anthropic, OpenAI, and Google Gemini, Claude Code OAuth tokens, GitHub access tokens, PostgreSQL, Redis, and MongoDB credentials — and, at the sharp end, crypto exchange API keys and wallet private keys.

Stealing the secrets was only half the job. The attackers validated each one and ranked it by estimated value, flagging the crypto credentials that could actually move funds. And the validation itself was outsourced to AI: OpenRouter tested stolen API keys against four Claude models, Azure AI Foundry checked access to Claude deployments, and Gemini verified stolen Google API keys. Stolen Claude Code OAuth tokens were even used to run AI requests billed to the victims — the people being robbed were paying for the sorting of their own stolen goods. It is the same pattern behind LLMjacking, where stolen AI keys become someone else’s free compute, as we covered in They Stole Your AI Keys. You Paid the Million.

They did not leave when the patch landed

The attackers also planted their own SSH key on compromised environments, giving themselves a back door that survives a reboot and a patch. They then used the stolen cloud credentials to widen the scanning, feeding fresh targets back into the pipeline. That persistence is what turns a vulnerability into a campaign: the flaw gets you in, but the planted key and the stolen credentials keep you in. It is the same lesson as every runaway-agent breach — once an attacker holds valid credentials, the perimeter stops mattering, as we saw in The Agent Escaped. The Breach Was Real.

Patching is not enough

CloudSEK’s advice starts with the obvious — patch the affected systems — then gets to the part many teams skip. A patch closes the hole. It does nothing about the secrets that already walked out, or the SSH key still sitting on your server. Stolen credentials and planted access remain usable after patching, so revocation and removal are not optional extras. They are the fix.

Diagram of what to do after the patch: with an unpatched React server, exposed cloud and AI keys, and an unknown SSH key on a host, assume the server is compromised — patch the flaw, rotate every secret, audit AI and cloud use, and end with SSH keys removed and access closed.

Four checks to run today

  1. Patch every React and Next.js deployment — and confirm the patch actually landed. An unpatched server is still a target, and new certificates are scanned within minutes of appearing.
  2. Rotate every credential that lived on, or was reachable from, an exposed server. Cloud keys, AI API keys, database passwords, GitHub tokens — and treat temporary session credentials as compromised too.
  3. Audit your cloud and AI-platform usage. Look for unfamiliar API calls, new identities, and billing spikes; the attackers used victims’ own AI accounts to validate stolen keys.
  4. Hunt for unauthorized SSH keys on every host that could have been reached. A key you did not plant is an open door, and it survives the patch.

The uncomfortable truth of React2Keys is that none of its parts were exotic. A known flaw, public certificate logs, stolen keys, and the victims’ own AI services did the heavy lifting. The campaign’s real innovation was assembly: it chained ordinary ingredients into a machine that found targets, broke in, stole secrets, and spent them in ten days. The defense is equally unglamorous, and it starts before the next certificate is issued: patch, rotate, audit, and check the locks.

Comments

This site uses Akismet to reduce spam. Learn how your comment data is processed.