Research

React2Keys: A Year-Old Next.js Bug Just Paid Out 50,000 Secrets. Patching Does Not Undo It. Rotate the Keys and Grep authorized_keys for bluelocale-foothold Tonight.

React2Keys: A Year-Old Next.js Bug Just Paid Out 50,000 Secrets. Patching Does Not Undo It. Rotate the Keys and Grep authorized_keys for bluelocale-foothold Tonight.

What to do first. If you ran a Next.js or React Server Components app on the public internet that was not patched for React2Shell (CVE-2025-55182) at any point between November 9 and 19, treat every secret that app could read as stolen. Patching closes the door. It does not take back the keys already copied, and it does not remove the SSH key the attacker left behind. Do three things tonight, in this order:

  1. Look for the planted SSH key. On every host and container image that ran the app, check every account's authorized_keys file (root and the app user both) for the comment bluelocale-foothold, or for the key body that starts AAAAC3NzaC1lZDI1NTE5AAAAINiNfAw552VRo. A plain grep for "bluelocale-foothold" and for "INiNfAw552VRo" across /root/.ssh and /home/*/.ssh is enough. If you prefer fingerprints, run ssh-keygen -lf on each authorized_keys file and look for SHA256:ztvMBdTBkscWekLRs1764lnZC+PI4rcvME6tjQnqFok (we computed that fingerprint from the key body CloudSEK published; CloudSEK did not publish the fingerprint itself). Attackers can change a comment, so match the key body, not just the label. Remove it, then review cron jobs and SSH login history on that host.
  2. Rotate, assuming everything in the environment is gone. CloudSEK's own advice is to assume every environment variable and secret file is compromised. That means: AWS access keys (and kill any active STS sessions), Azure managed-identity permissions and anything that identity could reach, Google Cloud service-account keys, Anthropic, OpenAI and Gemini API keys, Claude Code OAuth tokens, GitHub tokens, PostgreSQL, Redis and MongoDB passwords, secrets-manager gateway credentials, registrar, payment and messaging tokens, and any crypto-exchange API keys or wallet keys (move funds first, rotate second).
  3. Patch. React Server Components packages 19.0.1, 19.1.2 or 19.2.1 and later fix the flaw; take Next.js to a release patched for CVE-2025-55182 per the vendor advisory.

Am I affected? The logs to read. In AWS CloudTrail, look from November 9 onward for calls from your app's keys or roles that came from outside your own network, new IAM users or access keys, Bedrock model-access changes, and instances you did not launch. In your AI provider consoles (Anthropic, OpenAI, Google AI Studio, Azure AI Foundry), look for usage spikes or model calls you did not make: the attacker tested stolen keys against Claude models and ran AI requests billed to victims' Claude Code tokens. In your databases, look for logins from unfamiliar addresses, because the toolkit connected to victims' own PostgreSQL, Redis and MongoDB and searched for columns named like key, secret, token or password. In your git host, look for full repository clones or archive downloads you cannot explain: the toolkit took git archives with history, including infrastructure-as-code. CloudSEK also offers a free exposure check at exposure.cloudsek.com/react2keys.

What was found

CloudSEK published the research on November 30, 2026, and BleepingComputer (Bill Toulas) covered it the same morning. Both trace to one source: CloudSEK, which says it got access to the attacker's own infrastructure and recovered a 1.9-million-line exfiltration log, per-victim data and a toolkit of more than 900,000 files.

The numbers, with their populations, as CloudSEK states them: more than 50,000 credentials, from more than 19,000 hosts (CloudSEK's headline says "victims"), in an environment it ties to over 400 organizations, during a ten-day run from November 9 to 19, 2026. The report does not reconcile the 19,000 hosts with the 400 organizations, and we cannot either.

How it worked, per CloudSEK. The scanner polled six public Certificate Transparency logs every three minutes, so a brand-new TLS certificate could become a target within minutes of being issued. Domains were deduplicated and fingerprinted for Next.js; about 3% passed. Each candidate got one unauthenticated POST to a Server Action route carrying a crafted React Flight body, the React2Shell exploit, and the command output came back inside the error digest. The exploit re-sent its body at every redirect hop, so an app sitting behind a login redirect was not mistaken for patched.

Once inside, the payload worked out where it was running (Kubernetes pod, Lambda, ECS Fargate, PM2 host or a plain container) and then read environment variables, every .env file it could find (including non-standard .env.* names), cloud credential files, SSH keys and the Kubernetes service-account token. It queried the AWS container metadata endpoint and Azure's Instance Metadata Service. It connected to the victims' databases and searched them for secrets. It then checked which stolen keys still worked, ranked them by value, and flagged crypto credentials that could move funds. Different AI services had different jobs in that validation step: OpenRouter tested stolen keys against four Claude models, Azure AI Foundry checked access to Claude deployments, and Gemini verified Google API keys. Last, it appended its SSH key to authorized_keys for persistence.

This is the part worth sitting with. React2Shell is not new. CISA added CVE-2025-55182 to the Known Exploited Vulnerabilities catalog on Friday, December 5, 2025, with a federal due date of December 12, 2025, and CISA marks it as known to be used in ransomware campaigns. Almost a year later, a scanner keyed on new certificates was still finding unpatched apps, and those apps held the keys to cloud accounts, AI budgets, databases and wallets.

Confirmed and not known

Confirmed by the primary (CloudSEK's report): the CVE, the November 9 to 19 window, the counts above as CloudSEK states them, the list of secret types taken, the CT-log targeting, the SSH persistence, and the key body CloudSEK published in its detection rule. CloudSEK dated that Sigma rule November 24, 2026.

Not published, so we do not have it: attacker IP addresses, domains, URLs and file hashes. CloudSEK says it observed Telegram bot tokens and a lateral-movement target list but did not publish values. It also did not confirm that any later stage used that target list, and it describes the toolkit checking for competing cryptominers but not deploying one.

Not known to us: who is behind it (CloudSEK names no actor or malware family), whether access to the infrastructure has ended the campaign, and how many of the stolen keys have already been rotated.

What we did, and what we did not

Feed. CloudSEK's report publishes no network indicators, so we added nothing to the IP, domain or hash feeds. The one published indicator is an SSH public key. Our feed has no indicator type for SSH keys, and filing it as a "hash" would put it into the file-hash blocklist where it does not belong, so we left it out of the feed and printed it here instead, where you can grep for it. If you already pull our feed, it will not catch this campaign; the authorized_keys check above will.

Our edge. React2Shell has no unique URL path: the exploit is a POST to whatever Server Action route an app happens to expose, so path matching on our own edge cannot tell a React2Shell probe from ordinary traffic. We ran our edge check anyway, for November 1 to 30: of 699,529 edge-block records, 33 matched React2Shell-related patterns from 6 addresses, and 31 of those 33 were requests for Next.js static files (/_next/static/chunks/framework.js and similar). That is someone asking "is this a Next.js site?", the same fingerprinting step CloudSEK describes, but it is shared recon that any scanner does, not an exploit attempt, and nothing ties those 6 addresses to this campaign. Our edge canaries (111,180 records) and origin honeypot (955 records) had zero matches in the same window. Our sites are not Next.js apps. So: we saw Next.js inventory scanning, we did not see React2Keys, and the edge cannot see the exploit's POST body to say more.

Lead. We have no lead claim. CloudSEK found this, and the credit is theirs.

Get the DugganUSA feed free for the campaigns where indicators are published (docs at docs.dugganusa.com).

Sources

Read next: React2Shell Was a Christmas Story. Seven Months Later Our Harvester Has Logged Two Dozen Exploit Repos for It, on why a 10.0 bug keeps getting re-weaponized long after the news cycle leaves.


Every indicator in this post is in the feed. Free.

1.58M+ IOCs, STIX 2.1 / TAXII, 88% novel vs ThreatFox, exploited-CVE leads ahead of CISA. No credit card — a free API key in 30 seconds, and you can audit every claim above against the live endpoints.

Get your free key → analytics.dugganusa.com/stix/register