# React2Keys: Automated Credential-Theft Campaign Exploiting React2Shell (CVE-2025-55182) in Next.js Server Actions

> CloudSEK reports an automated, AI-assisted campaign named React2Keys that exploits CVE-2025-55182 (React2Shell) to run code on vulnerable Next.js servers and harvest secrets. Reported impact is more than 50,000 credentials from over 19,000 hosts at about 400 organizations. The actor also appends an SSH public key to authorized_keys, so patching alone does not remove access.

- **Author:** Threadlinqs Team
- **Published:** 2026-11-30T21:06:16Z
- **Last updated:** 2026-11-30T21:06:16Z
- **Canonical:** https://intel.threadlinqs.com/threat/TL-2026-7115
- **Card image:** https://intel.threadlinqs.com/og/threat/TL-2026-7115.png
- **ID:** TL-2026-7115
- **Severity:** CRITICAL (CVSS 10)
- **Category:** THREAT_INTEL
- **Status:** ACTIVE
- **Detections:** 9 (1 shown free below) · **IOCs:** 14
- **CVEs:** CVE-2025-55182

## Description

React2Keys is a large-scale, automated credential-harvesting operation reported by CloudSEK (published 2026-11-30) and summarized by BleepingComputer. It exploits CVE-2025-55182 (React2Shell), a pre-authentication remote code execution flaw in React Server Components caused by unsafe deserialization of payloads sent to Server Function endpoints (CWE-502; CVSS 3.1 10.0 per the CNA score listed in NVD; on the CISA KEV catalog since 2025-12-05). Reported scale differs between sources: the CloudSEK headline cites 50,000+ credentials from 19,000+ victims, its executive summary cites over 400 organizations, and BleepingComputer describes 50,000+ credentials from at least 19,000 hosts at about 400 organizations. CloudSEK does not reconcile the figures. BleepingComputer states the campaign ran for ten days, November 9 to 19, 2026; CloudSEK's captured text gives no timeframe (its campaign timeline is an image).

Target discovery and initial access: the actor polls six public Certificate Transparency logs (Google, Cloudflare, DigiCert, Sectigo) every three minutes so newly issued certificates become scan targets within minutes. Domains are deduplicated by registrable domain and fingerprinted for Next.js; about 3% pass. A module infers an undocumented Cloudflare IP range from failed-probe patterns to reach origin servers behind a blocked edge. The exploit is a single unauthenticated POST to any Server-Action-reachable route carrying a crafted multipart body with a malicious React Flight object; prototype pollution leads to attacker JavaScript executing in the Node.js process. Command output returns to the attacker in the digest field of a thrown Error, so Next.js production error handling carries the data out. The exploit re-sends its body at each redirect hop so applications behind auth-middleware redirects are not mistaken for patched. Probing uses 60 concurrent probes, TLS verification off, and an SSRF fallback against the cloud metadata endpoint. CloudSEK also describes an Odoo mode targeting CVE-2026-25137 and a WordPress chain targeting CVE-2026-63030 and CVE-2026-60137 (of 2,939 hosts scanned, 4 were confirmed vulnerable). Tooling imports from a .hermes/skills path, which CloudSEK says suggests an AI-agent framework.

Harvesting and pivoting: the payload fingerprints the runtime (Kubernetes pod, AWS Lambda, ECS Fargate, PM2 host, generic container), collects environment variables matching credential patterns, .env* files, cloud credential files, SSH keys and the Kubernetes service-account token, then applies a server-side filter that keeps key-shaped values. Regexes mine LLM, payment, cloud, GitHub, Slack, Telegram, crypto and SMTP credentials. AWS: queries the container metadata endpoint and exchanges Kubernetes/IRSA tokens through EKS Pod Identity for temporary credentials; 225 captured STS session-credential files (ASIA* keys) suggest near-real-time validation using hand-rolled request signing with no SDK fingerprint. Azure: steals managed-identity tokens from the Instance Metadata Service. GCP: mints OAuth tokens from stolen service-account keys and inventories Firebase apps, projects, billing and Vertex/Gemini access. Databases: PostgreSQL, Redis and MongoDB drivers are installed at runtime; the actor opened a live read-only superuser Postgres session, dumped SMTP credentials and searched columns named key, secret, token or password. Source code: full git archives with history (including infrastructure-as-code) are exfiltrated, and a GitHub reconnaissance tool uses a stolen token for organization-wide code search for Anthropic keys, AWS secrets, private keys and mnemonic phrases. A gateway credential was used to pull every secret from the Infisical secrets manager. Where an AWS account was gated by the Bedrock use-case form, the actor's script submitted the Anthropic form using stolen credentials.

Validation and monetization: each secret is scored by estimated monetary value and validated in priority order (max 10 probes per host) into seven states (live, no-credit, quota-capped, organization-disabled, workspace-scoped, dead, rate-limited). LLM keys are tested against roughly ten providers, including OpenRouter (4 Claude models), Azure AI Foundry, OpenCode Zen, OpenAI Codex and Google Gemini; stolen Claude Code OAuth tokens are refreshed and used for inference billed to victims. Crypto keys are tagged spendable when they have trade or withdraw scope, when cloud KMS credentials can sign Ethereum-style keys, or when they are raw extended private keys; eleven exchanges are covered and Binance keys are validated with signed calls routed through Tor.

Persistence and scaling: the actor's ssh-ed25519 public key (comment 'bluelocale-foothold' per the CloudSEK Sigma rule) is appended to compromised authorized_keys files, so patching does not evict the actor. A companion pipeline builds a 74-entry lateral-movement target list from harvested SSH credentials; CloudSEK had not confirmed a separate stage using it. The toolkit checks for competing cryptominers but deploys none. Stolen cloud tokens fund more scanning: Hetzner servers are provisioned as scan workers joining a fleet broker, the scan worker was deployed as an AWS Lambda in a stolen-credential account, and a VM-fleet bundle carries 1,483,686 target lines across 297 shard files. BleepingComputer reports recovery of a 1.9-million-line exfiltration log, per-victim data and a toolkit of over 900,000 files. No threat actor is attributed in either source, and neither lists attacker IPs, domains or file hashes; the only published IOC is the SSH public key (a partial base64 blob appears in the captured text). Victims span dozens of countries and TLDs and both enterprise and small-business infrastructure; CloudSEK states it is not targeted at a specific sector or region. BleepingComputer notes China-linked actors began exploiting React2Shell within hours of its December 2025 disclosure and that it has since been used in ransomware, botnet, cryptomining and credential-theft campaigns.

## MITRE ATT&CK

- T1595.002 Vulnerability Scanning
- T1596.003 Digital Certificates
- T1583.003 Virtual Private Server
- T1190 Exploit Public-Facing Application
- T1078.004 Cloud Accounts
- T1059.007 JavaScript
- T1098.004 SSH Authorized Keys
- T1552.001 Credentials In Files
- T1552.005 Cloud Instance Metadata API
- T1528 Steal Application Access Token
- T1555 Credentials from Password Stores
- T1082 System Information Discovery
- T1580 Cloud Infrastructure Discovery
- T1213.003 Code Repositories
- T1119 Automated Collection
- T1090.003 Multi-hop Proxy
- T1496.004 Cloud Service Hijacking

## Free detection (Splunk SPL, Microsoft KQL, Sigma)

**React2Keys CVE-2025-55182 — Node.js Worker Spawning Shell for Credential Fetch and Metadata Access** (`TL-2026-7115-SPL-001`)

Detects a Node.js / Next.js server process (the React2Shell, CVE-2025-55182 exploitation context) spawning sh/bash/dash with a command line that downloads or encodes data or reaches for credential sources: curl/wget, base64, the EC2 (169.254.169.254) and ECS (169.254.170.2) metadata endpoints, the Kubernetes service-account token, ~/.aws/credentials or .env files. A Next.js server has little reason to shell out like this, so a hit is a strong sign of T1190 exploitation followed by T1059.007 JavaScript execution and T1552 credential harvesting, as in the React2Keys campaign.

- **Languages:** Splunk SPL, Microsoft KQL, Sigma
- **ATT&CK:** T1190, T1059.007, T1552.001, T1552.005
- **Data sources:** sysmon_for_linux, linux_process_creation
- **Severity:** critical
- **Confidence:** high

### Splunk SPL

````spl
index=linux sourcetype="sysmon:linux" EventCode=1 earliest=-24h (ParentImage="*/node" OR ParentImage="*/nodejs" OR ParentImage="*/next-server") (Image="*/sh" OR Image="*/bash" OR Image="*/dash") (CommandLine="*curl *" OR CommandLine="*wget *" OR CommandLine="*base64*" OR CommandLine="*169.254.169.254*" OR CommandLine="*169.254.170.2*" OR CommandLine="*serviceaccount/token*" OR CommandLine="*.aws/credentials*" OR CommandLine="*.env*") ```CVE-2025-55182 React2Shell post-exploitation: Node.js worker spawns a shell that fetches, encodes or reads credential material```
| stats count min(_time) as firstTime max(_time) as lastTime dc(CommandLine) as distinct_commands values(CommandLine) as commands by host User ParentImage Image
| convert ctime(firstTime) ctime(lastTime)
````

### Microsoft KQL

```kql
DeviceProcessEvents
| where Timestamp > ago(24h)
| where InitiatingProcessFileName in~ ("node", "nodejs", "next-server")
| where FileName in~ ("sh", "bash", "dash")
| where ProcessCommandLine has_any ("curl ", "wget ", "base64", "169.254.169.254", "169.254.170.2", "serviceaccount/token", ".aws/credentials", ".env")
| project Timestamp, DeviceName, AccountName, InitiatingProcessFileName, InitiatingProcessCommandLine, FileName, ProcessCommandLine
| sort by Timestamp desc
```

### Sigma

```yaml
title: React2Keys CVE-2025-55182 Node.js Worker Spawning Shell for Credential Fetch
id: 7c1f2a4e-3b5d-4f60-9a1e-5d2c8b7e1a01
status: experimental
description: Detects a Node.js or Next.js server process spawning a shell whose command line downloads, encodes or reads credential material (cloud metadata endpoints, Kubernetes service-account token, AWS credentials file, .env files). Consistent with post-exploitation of React2Shell (CVE-2025-55182) as used by the React2Keys campaign.
references:
    - https://www.cloudsek.com/blog/react2keys-react2shell-ai-powered-credential-theft
    - https://nvd.nist.gov/vuln/detail/CVE-2025-55182
author: Threadlinqs Team
date: 2026-11-30
tags:
    - attack.initial-access
    - attack.t1190
    - attack.execution
    - attack.t1059.007
    - attack.credential-access
    - attack.t1552.001
    - attack.t1552.005
    - cve.2025-55182
logsource:
    category: process_creation
    product: linux
detection:
    selection_parent:
        ParentImage|endswith:
            - '/node'
            - '/nodejs'
            - '/next-server'
    selection_child:
        Image|endswith:
            - '/sh'
            - '/bash'
            - '/dash'
    selection_cmd:
        CommandLine|contains:
            - 'curl '
            - 'wget '
            - 'base64'
            - '169.254.169.254'
            - '169.254.170.2'
            - 'serviceaccount/token'
            - '.aws/credentials'
            - '.env'
    condition: selection_parent and selection_child and selection_cmd
falsepositives:
    - Application health checks or deploy scripts that shell out from Node.js to curl or wget
    - Build tooling (npm scripts, next build) running in the same host context
level: high
```

**Known false positives:**

- Deploy or health-check scripts that call curl/wget from a Node.js parent process
- Build or CI tooling (npm scripts, next build) running on the production host
- Legitimate applications that read .env files through a shell wrapper at start-up

**Tuning notes:** Field names assume the Splunk Add-on for Sysmon for Linux (sysmon:linux, EventCode 1); adjust index and sourcetype, or the field names, for auditd or CIM Endpoint.Processes data. Exclude known deploy users and wrapper scripts by User or ParentCommandLine. Narrow the CommandLine terms if curl/wget from Node.js is common in your estate, and keep the metadata, token and credentials-file terms.

### 8 more detection rules (Splunk SPL, Microsoft KQL, Sigma), unlock with TL Creds

- React2Keys Secret, Source-Code and Database Collection Spawned from Node.js (locked: unlock with TL Creds)
- React2Keys authorized_keys Modification by Non-SSH Process (Node.js Lineage) (locked: unlock with TL Creds)
- React2Keys EKS Pod Identity / IRSA Token Exchange from Previously Unseen Non-AWS Source (locked: unlock with TL Creds)
- React2Keys Runtime Fingerprinting and Environment Harvest from Node.js Shell (locked: unlock with TL Creds)
- React2Keys Bedrock Model-Access Use-Case Submission or Agreement by Session Credentials (locked: unlock with TL Creds)
- React2Keys Node.js Process Connecting to Cloud Metadata, Pod Identity Agent or Tor Relay Ports (locked: unlock with TL Creds)
- React2Keys SSH Persistence — Attacker ed25519 Key ([indicator]) Added to authorized_keys (locked: unlock with TL Creds)
- React2Keys Stolen AWS Session Credentials — ASIA Key Reconnaissance from Non-AWS Source (locked: unlock with TL Creds)

Sign up free to unlock the detection rules: https://threadlinqs.com/?modal=signup

## Sources

- [React2Keys: AI-Powered React2Shell Campaign Steals 50,000+ AI, Cloud, Database, Payment, Registrar, and Crypto Keys from 19K+ Victims](https://www.cloudsek.com/blog/react2keys-react2shell-ai-powered-credential-theft)
- [AI-powered React2Keys campaign steals secrets from 400 organizations](https://www.bleepingcomputer.com/news/security/ai-powered-react2keys-campaign-steals-secrets-from-400-organizations/)
- [NVD - CVE-2025-55182](https://nvd.nist.gov/vuln/detail/CVE-2025-55182)
- [React blog: Critical Security Vulnerability in React Server Components](https://react.dev/blog/2025/12/03/critical-security-vulnerability-in-react-server-components)
- [Meta security advisory CVE-2025-55182](https://www.facebook.com/security/advisories/cve-2025-55182)
- [CISA Known Exploited Vulnerabilities Catalog entry for CVE-2025-55182](https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-55182)
- [AWS Security Blog: China-nexus cyber threat groups rapidly exploit React2Shell vulnerability (CVE-2025-55182)](https://aws.amazon.com/blogs/security/china-nexus-cyber-threat-groups-rapidly-exploit-react2shell-vulnerability-cve-2025-55182/)
- [oss-security: CVE-2025-55182 disclosure](http://www.openwall.com/lists/oss-security/2025/12/03/4)

## Full data

The other 8 detection rules (Splunk SPL / Microsoft KQL / Sigma) unlock with TL Creds; a free account includes daily creds: https://threadlinqs.com/?modal=signup
Indicator values unlock with TL Creds, at a lower price on Red and Purple; AI agents can query rules and IOCs through the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account): https://intel.threadlinqs.com/mcp

Canonical: https://intel.threadlinqs.com/threat/TL-2026-7115
