React2Keys: CloudSEK Investigates Credential Theft via React2Shell Exploitation
1. Overview Title: React2Keys: AI-Powered React2Shell Campaign Steals 50,000+ AI, Cloud, Database, Payment, Registrar, and Crypto Keys from 19K+ Victims Source: CloudSEK Published: 2026-11-30 Original: CloudSEK
1. Overview
- Title: React2Keys: AI-Powered React2Shell Campaign Steals 50,000+ AI, Cloud, Database, Payment, Registrar, and Crypto Keys from 19K+ Victims
- Source: CloudSEK
- Published: 2026-11-30
- Original: CloudSEK
- Related Sources: BleepingComputer: AI-powered React2Keys campaign steals secrets from 400 organizations, React Official Advisory, Next.js Official Advisory, NixOS Official Advisory, WordPress 7.0.2 Official Release
- Severity (Author's Priority): critical
2. Summary
CloudSEK analyzed the attacker infrastructure and records of React2Keys, which automatically scans for and exploits CVE-2025-55182 to collect and validate secrets in environment variables and files, temporary cloud credentials, database credentials, and AI service API keys.
3. Attack Flow
Theft via React2Shell is the primary path. The Odoo-targeted mode and the WordPress-targeted chain are separate paths found in the same attacker toolset.
Path A: Credential Theft via React2Shell
- The attack infrastructure analyzed by CloudSEK uses certificate transparency logs to look for publicly exposed hosts that may be running Next.js and targets CVE-2025-55182.
- In compromised environments, it collects credentials accessible from the application and evaluates their validity and value. The obtained credentials may be used to access other services.
Path B: Separate Mode Targeting Odoo on NixOS
- This mode targets the Odoo database management feature on NixOS affected by CVE-2026-25137.
Path C: Separate Path Targeting WordPress Core
- This path combines CVE-2026-63030 and CVE-2026-60137 in WordPress core.
4. Attacker Position and Execution Location
- The attacker is remote, reaching exposed Next.js services from the internet. Post-compromise code runs inside the victim application's Node.js process. If workload identity credentials can be obtained from the application's runtime environment, the attacker can access cloud APIs with those permissions.
5. What Victims and Administrators May Notice
Victims
- Even if there are no changes to the normal interface, credentials and cloud resources may be used.
Administrators
- In addition to anomalous RSC requests, clues include file reads by Node.js, connections to metadata services or external APIs, and the addition of SSH public keys, depending on what telemetry is collected.
6. Success and Failure Conditions
Success Conditions
- For initial React2Shell compromise, the attacker must be able to reach a Next.js service using vulnerable React Server Components with App Router. Applications can be affected even if they do not implement custom Server Functions.
- For credential collection, the application's runtime environment must have access to target environment variables, files, workload identities, or similar resources.
- For follow-on operations using obtained credentials, those credentials must be valid and have the permissions required for the operation.
Failure Conditions and Mitigations
- Update affected React Server Components packages and Next.js to the latest patched version in each release line according to the official advisories. The initial React fixes for CVE-2025-55182 are 19.0.1, 19.1.2, and 19.2.1.
- Separate workload identities and secrets per application, and minimize permissions to metadata, secret vaults, and repositories.
- As post-compromise containment, rotate exposed credentials, revoke issued sessions and tokens, and remove unauthorized SSH public keys.
7. What Happens Upon Success
- Unauthenticated code execution on the application server.
- Theft and validation of cloud, database, AI, payment, registrar, and other credentials.
- Persistence via SSH and lateral movement to source repositories and secret managers.
8. Observable Logs
- Proxy / SWG / DNS: In web access logs, check for anomalous POST requests targeting RSC processing. Correlating with certificate publication times requires separate cross-referencing against certificate transparency logs.
-
Endpoint / EDR: Reading of
.envor cloud credential files by the Node.js process or its child processes, and addition of suspicious public keys toauthorized_keys. The scope of recorded file operations depends on audit settings. - Identity / IdP: Anomalous use of AWS STS, Azure managed identity, GCP service-account, and GitHub tokens.
- SaaS / Cloud: In cloud and AI service audit logs, check for Firebase enumeration, Bedrock usage configuration changes, and requests associated with API key validation, depending on what the audit logs capture. For metadata service access, also check communication records on the application host.
- Network: Unusual connections from the application host to databases, cloud APIs, and AI providers.
9. Assessment of Attack Success
- Follow-on compromise confirmed: Public information: CloudSEK reported credential collection from attacker-side materials, and in some cases confirmed actual database connections, GitHub code searches using stolen tokens, and access to secret vaults using stolen credentials. Scope: Attacker-side materials and individual cases related to React2Shell analyzed by CloudSEK. No aggregate count independently confirmed on the victim side across all organizations or hosts is presented.
10. Investigation Playbook
-
Trigger: React2Shell exploit, metadata or secret discovery from Node.js, or
authorized_keysmodification. - Initial triage: Identify the version, exposed routes, initial POST request, app identity, and secret scope.
-
Endpoint: Preserve processes, file access records,
.env, SSH keys, and repository archives. - Identity & Cloud: Track cloud sessions, managed identities, service accounts, AI keys, and GitHub tokens.
- Follow-on actions: Check for database access, vault dumps, source code searches, and creation of additional instances.
- Containment: Isolate the host, apply patches, rotate all secrets, remove SSH keys, and revoke cloud sessions.
- Classification: Distinguish between scanning, code execution, secret collection, credential use, persistence, and follow-on compromise.
11. Defense and Detection Ideas
-
Single events: Crafted multipart POST requests to Server Actions, and addition of known public keys to
authorized_keys. - Time-series correlation: Correlate exploit -> secret access by Node.js -> metadata token retrieval -> checks of cloud and AI credentials against the relevant APIs.
- Hunting: Search for GitHub code searches from application hosts, installation of database clients, and probes to vaults or AI providers.
- Log gaps: If file access or cloud API records are missing, it becomes difficult to correlate how credentials were obtained with how they were used afterward.
- Priority actions: Prioritize patching, secret rotation, least privilege for workload identities, and metadata controls.
12. Facts / Inference / Hypothesis
Facts
- CloudSEK obtained 1.9 million lines of exfiltration logs, victim-specific results, over 900,000 toolkit files, and a scan ledger from the attacker infrastructure.
- According to CloudSEK, the scanner checks six public certificate transparency logs every three minutes. Among candidates deduplicated by registrable domain, approximately 3% passed the Next.js fingerprinting check.
- The payload collects environment variables,
.env, cloud credential files, SSH keys, and Kubernetes service account tokens. - CloudSEK reported capabilities to collect and validate AWS, Azure, and Google Cloud credentials and workload identities, as well as actual access to some databases, GitHub, and secret vaults.
- CloudSEK reported the addition of SSH public keys to compromised accounts. A lateral movement target list created from stolen SSH credentials contained 74 entries, though actual use is unconfirmed.
- Based on attacker-side materials, CloudSEK reported compromises of CI/CD, cloud, and AI infrastructure associated with over 400 organizations. CloudSEK separately reported over 19,000 targets it labeled βvictimsβ and over 50,000 stolen credentials. The mapping and deduplication method among organizations, victims, and credentials are not explicitly stated.
- On the WordPress-targeted path, 4 out of 2,939 scanned hosts were confirmed vulnerable.
Inference
- Based on the design that targets newly issued certificates for scanning within a short timeframe, the operation appears to continuously target unprotected environments immediately after exposure.
- Because credentials are classified by practical usability and monetary value, the post-compromise objective appears focused on reusing cloud and AI resources rather than simple file theft.
Hypothesis
- None
13. MITRE ATT&CK Mapping
| ID | Technique | Confidence | Basis |
|---|---|---|---|
| T1190 | Exploit Public-Facing Application | high | Sent CVE-2025-55182 payloads to exposed Next.js hosts. |
| T1552.001 | Credentials In Files | high | Collected .env, cloud credential files, and SSH keys. |
| T1098.004 | SSH Authorized Keys | high | Added attacker public keys to authorized_keys. |
| T1528 | Steal Application Access Token | high | Collected and validated tokens for AI providers, cloud, GitHub, etc. |
14. Unknowns and Further Investigation
- The extent to which React2Shell-related figures were independently confirmed on the victim side, and the number of compromises resulting from the Odoo and WordPress paths, cannot be confirmed from public materials.
- Attacker attribution, the full scope of stolen credential usage, and whether the attackers used the 74-entry SSH lateral movement target list remains unconfirmed.
15. Impact on SOCs and Organizations
Organizations using Next.js, Kubernetes, cloud managed identities, and AI APIs together must treat not only the application server but also all secrets and temporary credentials readable from it as compromised, and simultaneously apply patches, rotate credentials, audit cloud environments, and check for SSH persistence.
16. Audience-Specific Summary
-
For SOCs: Correlate React2Shell requests, secret discovery from Node.js, metadata access, GitHub code searches, AI API key validation, and
authorized_keyschanges. - For Administrators: Update React and Next.js to patched versions, rotate all app identities and secrets, and reduce permissions to metadata, vaults, and repositories.
- For Users: Normal user operations are not the cause. Follow guidance from administrators regarding credential resets or service outages.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes β full credit and traffic to the original publisher.