React2Keys: One Old Next.js Bug, 50,000 Stolen Secrets
CloudSEK says an AI-assisted operator used React2Shell (CVE-2025-55182) to steal 50,000+ cloud, AI, database and crypto secrets from 19,000 hosts at 400 organizations, and planted an SSH key that survives patching.
An attacker running a largely automated, AI-assisted operation used the year-old React2Shell bug to break into unpatched Next.js servers and walk off with more than 50,000 secrets from over 19,000 hosts tied to at least 400 organizations, CloudSEK reports. The researchers got inside the attacker’s own infrastructure and recovered a 1.9-million-line exfiltration log and a toolkit of more than 900,000 files. They call the campaign React2Keys. BleepingComputer dates the main run to Nov. 9 to 19.
For defenders
Affected: apps built on React Server Components 19.0.0, 19.1.0, 19.1.1 and 19.2.0 (react-server-dom-webpack, -turbopack, -parcel), which includes many Next.js apps that use Server Actions. CVE-2025-55182, CVSS 10.0, in CISA KEV since Dec. 2025 and flagged there for ransomware use. Public exploits are widespread (Metasploit, Exploit-DB, Nuclei and hundreds of GitHub repositories, per our CVE data).
How it works: the attacker watches six public Certificate Transparency logs every three minutes, so a server with a fresh TLS certificate can be probed within minutes of going live. One unauthenticated POST runs JavaScript inside the Node.js process, and the output comes back in the digest field of a Next.js error. The payload then sweeps environment variables, .env* files, cloud credential files, SSH keys and Kubernetes service-account tokens, pulls temporary AWS and Azure credentials from metadata services, connects to the victim’s own PostgreSQL, Redis and MongoDB, copies git repositories, and runs GitHub code search across the victim’s organization with a stolen token. Every key is scored by value and tested live; CloudSEK says stolen Claude Code OAuth tokens were used to run AI requests billed to victims. T1190 (Exploit Public-Facing Application), T1552.001 (Unsecured Credentials: Credentials In Files), T1552.005 (Unsecured Credentials: Cloud Instance Metadata API), T1098.004 (Account Manipulation: SSH Authorized Keys).
Persistence: the actor appends its own SSH public key (comment label “bluelocale-foothold”) to authorized_keys, so patching alone does not evict it. CloudSEK published a Sigma rule for that key (below in the Hunt Leads).
Status: exploitation CONFIRMED (CloudSEK, from the attacker’s own logs). No actor name or attribution given. CloudSEK offers an exposure check at exposure.cloudsek.com/react2keys.
Mitigate now: patch React and Next.js, then assume every secret the server could read is burned: rotate cloud keys, database passwords, AI-provider keys, GitHub tokens and anything in a secrets manager the app could reach. Remove unknown SSH keys and review cloud and AI-platform usage since early November.
What it means for you
This one hits companies, not people’s phones. Websites built with a popular web framework were left unpatched for a year, and an automated attacker used that to steal the passwords and digital keys those sites use to reach their databases, cloud accounts and AI services. If you run a small business whose site or app a developer built with React or Next.js, ask them two questions today: is it patched, and have the keys been changed? If you don’t know what your site runs on, your developer or hosting company will.
Do this now
- Update React and Next.js to a patched release and redeploy.
- Change every password, API key and token the app stores, starting with cloud, database, payment and AI keys. Patching does not undo theft.
- Check each server’s
~/.ssh/authorized_keysfor keys nobody recognizes and remove them. - Look at your cloud and AI-provider bills for usage spikes since Nov. 9.
Source article: React2Keys: AI-Powered React2Shell Campaign Steals 50,000+ AI, Cloud, Database, Payment, Registrar, and Crypto Keys from 19K+ Victims
Publisher: CloudSEK (CloudSEK TRIAD)
Published: Nov. 30, 2026
URL: https://www.cloudsek.com/blog/react2keys-react2shell-ai-powered-credential-theft
Executive Summary
An unnamed, unattributed financially motivated operator, tracked by CloudSEK only by campaign name (React2Keys), ran a largely automated, AI-assisted credential-harvesting operation against unpatched React Server Components and Next.js applications vulnerable to React2Shell (CVE-2025-55182, CVSS 10.0, in CISA KEV). CloudSEK mapped the campaign from the attacker’s own infrastructure: more than 50,000 credentials stolen from over 19,000 hosts tied to at least 400 organizations across dozens of countries, with the main run between November 9 and 19, 2026, and no single sector or region targeted. Related worker code also targets an Odoo database manager flaw (CVE-2026-25137) and a WordPress chain (CVE-2026-63030, CVE-2026-60137). The chain runs from target discovery through Certificate Transparency log polling, to a single unauthenticated Server Action POST whose command output returns in the Next.js error digest, to local harvesting of environment variables, .env files, cloud credential files, SSH keys and Kubernetes service-account tokens, to pivots into cloud metadata services, EKS Pod Identity, the victim’s own databases, git repositories, GitHub organization-wide code search and a third-party secrets manager, followed by value-ranked live validation of every key against cloud, AI, payment and crypto-exchange services. The actor persists by appending its SSH public key to authorized_keys and reinvests stolen cloud credentials in more scanning capacity. The objective is monetizable access, including AI inference billed to victims and spendable crypto credentials. Hunt leads, false positive expectations, the published Sigma rule and indicators are detailed below.
ATT&CK chain: Reconnaissance → Initial Access → Execution → Credential Access → Discovery → Collection → Persistence → Exfiltration
Hunt Lead Grid
| Hunt Lead Level | Hunt Lead Name | ATT&CK | Risk of False Positives |
|---|---|---|---|
| 1 (Junior) | React2Keys SSH Key in authorized_keys | T1098.004 (Account Manipulation: SSH Authorized Keys) | Low. The rule matches one exact public-key blob taken from the attacker’s script; no legitimate administrator will hold that keypair. |
| 2 (Pro) | Server Action POSTs Returning Error Digests From New Sources | T1190 (Exploit Public-Facing Application) | Medium. Real apps throw server errors too, so the rule anchors on unauthenticated multipart POSTs to Server Action routes from sources with no prior browsing, repeated across redirect hops, that return 500-class responses. |
| 2 (Pro) | Node Process Reading Secrets and Metadata | T1552.005 (Unsecured Credentials: Cloud Instance Metadata API) | Medium. SDKs legitimately read credentials and metadata at startup; the rule anchors on a long-running Node.js web process doing it mid-life, sweeping .env* and SSH files, or installing database drivers at runtime. |
| 3 (Elite) | Stolen Key Validation From Unfamiliar Networks | T1078.004 (Valid Accounts: Cloud Accounts) | Medium. Keys are used from many places legitimately; the correlation anchors on keys that lived only on an exposed Next.js host suddenly being used from new networks, Tor or AI gateways, or for GitHub code search. |
React2Keys SSH Key in authorized_keys
After harvesting secrets, the actor appends its own ed25519 public key, carried in its scripts with the comment label “bluelocale-foothold”, to a compromised account’s authorized_keys file, giving it standing SSH access that survives patching. CloudSEK calls the key a confirmed indicator of compromise and published a Sigma rule that matches the exact key blob in any write to a file ending in /.ssh/authorized_keys. Run the rule over file-event telemetry, and also do a simple content search of every authorized_keys file on hosts that served a Next.js or React Server Components app, since the key may have been written before your file monitoring covered the host.
Use Linux EDR or auditd file events for the live rule and a configuration-management or SSH sweep for the retrospective search, across all container hosts, VMs, PM2 hosts and build servers that ran a vulnerable version since early November 2026. Containers that were rebuilt may have lost the key, but any host with persistent home directories should be checked. Do not just delete a hit: a match means the server was fully compromised, so treat it as an incident, rotate every secret the host could read and look for the 74-host lateral-movement list CloudSEK describes by reviewing SSH logins from that host. This lead is narrow by design; it catches this actor only.
title: React2Key Campaign — Attacker SSH Persistence Key Planted After React2Shell(CVE-2025-55182) exploitation
status: experimental
description:
Detects the exact SSH public key this CVE-2025-55182 (React2Shell) campaign plants into victim authorized_keys files for persistent backdoor access. This is the actual key material pulled from the attacker's own script (comment label "bluelocale-foothold"),not a filename or nickname — the strongest possible identity match since this exact keypair is reused across victims as their standing foothold.
references:
- Internal threat-intel capture of attacker exposed server, React2Keys
author: CloudSEK GTI
date: 2026/11/24
logsource:
category: file_event
product: linux
detection:
selection:
TargetFilename|endswith:
'/.ssh/authorized_keys'
FileContents|contains: 'AAAAC3NzaC1lZDI1NTE5AAAAINiNfAw552VRo+E3mBu/MHaVsRDcN0BMGuVCjgIyHbb3'
condition: selection
falsepositives:
- None — this exact base64 key blob is unique to this actor's keypair, impossible to collide with by chance
level: critical
tags:
- attack.persistence
- attack.t1098.004
- cve.2025.55182
Note: the rule is reproduced exactly as CloudSEK published it; its indentation under selection needs fixing before a Sigma converter will accept it.
Hunt Lead Level: 1 (Junior Analyst)
ATT&CK: Persistence → T1098.004 (Account Manipulation: SSH Authorized Keys)
Sources: “React2Keys: AI-Powered React2Shell Campaign Steals 50,000+ AI, Cloud, Database, Payment, Registrar, and Crypto Keys from 19K+ Victims”, CloudSEK, Nov. 30, 2026, https://www.cloudsek.com/blog/react2keys-react2shell-ai-powered-credential-theft (source article)
Server Action POSTs Returning Error Digests From New Sources
Initial access is one unauthenticated POST to any route that reaches a Next.js Server Action, carrying a crafted multipart body with a malicious React Flight object. Prototype pollution runs the attacker’s JavaScript in the live Node.js process, and the output comes back inside the digest field of a thrown error, so the response is a server error rather than a normal page. CloudSEK adds two traits: the exploit re-sends the body at each redirect hop, so apps behind auth middleware are still hit, and scanning runs at 60 concurrent probes with TLS verification off, against hosts whose certificates were issued minutes earlier. Detect unauthenticated multipart POSTs to Server Action endpoints (requests carrying the Next-Action header) from sources that never loaded a page, especially where the same body is replayed across a redirect chain and the response is a 500-class error.
Use reverse-proxy, load balancer, CDN or WAF logs, ideally with request headers and body size; sweep from November 1, 2026 and keep the rule running, since React2Shell remains in mass use. Scope to internet-facing Next.js and React Server Components apps, and give extra weight to apps that went live recently, because the Certificate Transparency polling means new deployments are hit first. CloudSEK says a module infers origin addresses behind Cloudflare, so also watch for direct-to-origin traffic that bypasses your CDN. Blocking by source IP is the wrong primary control because the fleet includes Hetzner servers and Lambda workers in victims’ own accounts; patching and origin lockdown are the fix. A burst of these errors from one source should trigger the next lead on the same host.
Hunt Lead Level: 2 (Pro)
ATT&CK: Initial Access → T1190 (Exploit Public-Facing Application); Execution → T1059.007 (Command and Scripting Interpreter: JavaScript)
Sources: CloudSEK, Nov. 30, 2026 (source article); “AI-powered React2Keys campaign steals secrets from 400 organizations”, BleepingComputer, Nov. 30, 2026, https://www.bleepingcomputer.com/news/security/ai-powered-react2keys-campaign-steals-secrets-from-400-organizations/ (additional source, same campaign)
Node Process Reading Secrets and Metadata
Once running, the payload fingerprints its runtime (Kubernetes pod, Lambda, ECS Fargate, PM2 host or plain container), reads every environment variable, opens .env* files including non-standard names, cloud credential files, SSH private keys and the Kubernetes service-account token, queries the container or instance metadata endpoint for temporary AWS credentials, exchanges the pod token through EKS Pod Identity, requests Azure managed-identity tokens from the Instance Metadata Service, and installs PostgreSQL, Redis and MongoDB drivers at runtime to connect to the victim’s databases. It also archives git repositories with history. The behavioral anchor is a long-running Node.js web server process that, well after startup, reads credential files outside its app directory, calls the metadata service, spawns npm or a package install, or opens new database connections it does not normally make.
Use container runtime security, Linux EDR or auditd for file and process events, VPC flow logs or DNS for metadata and database connections, and cloud audit logs for credential issuance; sweep from November 1, 2026. Baseline each app for a week: most Next.js servers read their own .env once at boot and never touch ~/.ssh or install packages in production. Allowlist by container image and startup window rather than by process name, because the attacker runs inside the real node process. Enforcing IMDSv2 with a hop limit of one and removing SSH keys and broad cloud roles from web containers cuts this off regardless of the exploit used, which is why the lead generalizes to other Node.js RCE bugs.
Hunt Lead Level: 2 (Pro)
ATT&CK: Credential Access → T1552.001 (Unsecured Credentials: Credentials In Files), T1552.005 (Unsecured Credentials: Cloud Instance Metadata API); Collection → T1213.003 (Data from Information Repositories: Code Repositories)
Sources: CloudSEK, Nov. 30, 2026 (source article)
Stolen Key Validation From Unfamiliar Networks
Every harvested key is ranked by value and tested live, at most ten probes per host. CloudSEK documents AWS keys checked with hand-rolled request signing (no SDK user agent), 225 short-lived ASIA session-credential files validated near real time, AI keys tested against about ten providers including through OpenRouter, Azure AI Foundry, OpenCode Zen, Gemini and Codex run from inside victims’ own networks, stolen Claude Code OAuth tokens refreshed and used for billed inference, Binance keys validated through Tor, an Infisical gateway credential used to dump a whole vault, the Anthropic Bedrock use-case form submitted with stolen AWS credentials, and GitHub tokens used for organization-wide code search for secrets. Correlate the inventory of secrets present on exposed Next.js hosts with their provider-side usage: flag first-seen source networks, calls with no SDK user agent, sts:GetCallerIdentity or similar validation-only calls, sudden AI token consumption, new Bedrock model-access requests, and GitHub code-search API use by a token that normally only clones.
Build it from CloudTrail, Azure activity and sign-in logs, GCP audit logs, AI provider usage dashboards and APIs, GitHub organization audit logs and your secrets manager’s access log, sweeping from November 9, 2026. Join on key ID or token fingerprint so each secret has a known home host and normal caller set, then alert on deviations. Expect noise from developers using production keys locally, which is itself worth fixing. Rotating keys is the required response, not tuning, and a key that was valid but out of credit is still tracked by the actor, so rotate those too. This correlation catches any secrets-theft campaign, not just React2Keys.
Hunt Lead Level: 3 (Elite)
ATT&CK: Defense Evasion / Persistence → T1078.004 (Valid Accounts: Cloud Accounts)
Sources: CloudSEK, Nov. 30, 2026 (source article); BleepingComputer, Nov. 30, 2026 (additional source, same campaign)
Hash Appendix
React2Keys toolkit
CloudSEK published no file hashes for the toolkit or payloads; the only published host artifact is the SSH public key above. No lookups in OTX AlienVault or VirusTotal were made for this report.
MD5s
(not available) # no toolkit hashes published
SHA1s
(not available) # no toolkit hashes published
SHA256s
(not available) # no toolkit hashes published
References Appendix
- “React2Keys: AI-Powered React2Shell Campaign Steals 50,000+ AI, Cloud, Database, Payment, Registrar, and Crypto Keys from 19K+ Victims”, CloudSEK, Nov. 30, 2026, https://www.cloudsek.com/blog/react2keys-react2shell-ai-powered-credential-theft
- “AI-powered React2Keys campaign steals secrets from 400 organizations”, BleepingComputer, Nov. 30, 2026, https://www.bleepingcomputer.com/news/security/ai-powered-react2keys-campaign-steals-secrets-from-400-organizations/
- “Critical Security Vulnerability in React Server Components”, React, Dec. 3, 2025, https://react.dev/blog/2025/12/03/critical-security-vulnerability-in-react-server-components
CVE at a glance
- CVSS
- 10 Critical (v3.1)
- EPSS
- 99.7% chance of exploitation in the next 30 days (higher than 99.9% of CVEs)
- Exploited in the wild
- Yes, on CISA’s KEV list since Dec 5, 2025; used by ransomware
- Public exploit
- Yes, reported in a Metasploit module, Exploit-DB, a Nuclei template and 459 GitHub repositories
Data from NVD, FIRST EPSS and CISA KEV, refreshed automatically. We report whether public exploit code exists but never link to it: fake proof-of-concepts that infect researchers are common.