{
  "id": "react2keys-credential-theft",
  "url": "https://ohshit.app/incidents/react2keys-credential-theft/",
  "title": "React2Keys campaign steals cloud and AI credentials through unpatched React2Shell servers",
  "level": 4,
  "level_name": "septic-tank-blew",
  "date": "2026-11-30",
  "date_is_approximate": false,
  "updated": null,
  "tags": [
    "React",
    "Next.js",
    "credential theft",
    "cloud"
  ],
  "ecosystems": [
    "node"
  ],
  "summary": "CloudSEK reports a credential-theft campaign against unpatched React2Shell servers, with SSH persistence and cloud-identity pivots. Its estimates of 50,000+ credentials and 19,000+ hosts remain independently unverified; patching alone does not revoke stolen access.",
  "splash": "Internet-accessible, unpatched RSC servers; no authentication required. Reported campaign targets Next.js.",
  "wipe": "Deploy current RSC/framework security updates, revoke exposed credentials and sessions, and remove persistent access.",
  "in_the_wild": "yes",
  "source_exception": null,
  "cves": [
    {
      "id": "CVE-2025-55182",
      "score": 10,
      "name": "React2Shell",
      "description": "Unauthenticated remote code execution in React Server Components request decoding."
    },
    {
      "id": "CVE-2025-66478",
      "score": 10,
      "name": "Next.js downstream React2Shell advisory",
      "description": "Tracks the same upstream vulnerability in affected Next.js App Router releases; not a second independent exploit."
    }
  ],
  "fixed": [
    {
      "product": "RSC packages 19.0.x",
      "version": "19.0.4",
      "status": "January 26, 2026 follow-up security baseline; use current patched releases"
    },
    {
      "product": "RSC packages 19.1.x",
      "version": "19.1.5",
      "status": "January 26, 2026 follow-up security baseline; use current patched releases"
    },
    {
      "product": "RSC packages 19.2.x",
      "version": "19.2.4",
      "status": "January 26, 2026 follow-up security baseline; use current patched releases"
    }
  ],
  "checklist": [
    {
      "title": "Contain suspected hosts and preserve evidence",
      "hint": "Restrict external access to affected origins and preserve application, proxy, SSH and cloud logs plus relevant disk/container evidence before rebuilding from trusted images. Perform recovery and credential changes from clean systems."
    },
    {
      "title": "Patch the deployed RSC stack and redeploy",
      "hint": "Inventory react-server-dom-webpack, react-server-dom-parcel and react-server-dom-turbopack, including framework-bundled copies. Follow current framework security instructions and verify the deployed lockfile/image. React’s January 26 baseline is 19.0.4/19.1.5/19.2.4; the older 19.0.1/19.1.2/19.2.1 releases only fixed the original RCE. WAF rules and login redirects do not replace patching."
    },
    {
      "title": "Revoke every credential accessible to the compromised application",
      "hint": "Treat environment variables, .env* and non-standard .env.* files, cloud credential files, SSH private keys and Kubernetes service-account tokens as exposed. Revoke or rotate cloud, AI, database, payment, registrar, messaging, repository and secrets-manager gateway credentials; assess secrets reachable through repositories and vaults too. Invalidate associated sessions and refresh tokens through each provider’s controls."
    },
    {
      "title": "Investigate temporary cloud identities",
      "hint": "Review Kubernetes service-account use, IRSA and EKS Pod Identity, AWS role sessions, Azure managed-identity tokens and GCP service-account use. Removing a static API key does not end temporary or refreshed access; use provider-specific revocation controls and reduce role permissions."
    },
    {
      "title": "Hunt for the published SSH foothold and other persistence",
      "hint": "Inspect every account’s paths ending /.ssh/authorized_keys for AAAAC3NzaC1lZDI1NTE5AAAAINiNfAw552VRo+E3mBu/MHaVsRDcN0BMGuVCjgIyHbb3; the attacker script uses the comment bluelocale-foothold. Also inspect .hermes/skills references, cron jobs, unfamiliar SSH keys and SSH login history. Preserve evidence, remove unauthorized access and rebuild as needed. A match alone does not prove compromise; the .hermes/skills path is only a tooling clue."
    },
    {
      "title": "Trace downstream access and unauthorized spending",
      "hint": "Correlate application requests and file writes with AWS CloudTrail, other cloud audit logs, database/repository access and AI usage. Investigate new IAM users, Bedrock model-access changes, unexpected instances or Lambda workers, token refreshes and billing anomalies; revoke unauthorized resources and access."
    },
    {
      "title": "Reduce exposure and validate recovery",
      "hint": "Keep origins behind intended access controls, run applications without root privileges, isolate per-application secrets and avoid shared hosts. Recheck clean deployments and monitor for repeated access. CloudSEK offers an exposure lookup linked in its report; a negative lookup is not evidence that a host or credential is safe."
    }
  ],
  "sources": [
    {
      "name": "CloudSEK TRIAD: React2Keys investigation",
      "url": "https://www.cloudsek.com/blog/react2keys-react2shell-ai-powered-credential-theft",
      "says": "November 30 campaign report, recovered logs/toolkit, timeline and scope figures, credential pivots, SSH indicator and response advice. Counts and affected-organization associations are the researcher’s findings, not independently reconciled totals.",
      "primary": true
    },
    {
      "name": "React: original React2Shell advisory",
      "url": "https://react.dev/blog/2025/12/03/critical-security-vulnerability-in-react-server-components",
      "says": "Original December 3, 2025 RCE disclosure, affected RSC packages and scope exclusions; its upgrade instructions include later security updates.",
      "primary": true
    },
    {
      "name": "Next.js: downstream React2Shell advisory",
      "url": "https://nextjs.org/blog/CVE-2025-66478",
      "says": "App Router release scope, first RCE fixes and the need to upgrade and rotate secrets. The first-patch list is historical, not a current all-vulnerability safety claim.",
      "primary": true
    },
    {
      "name": "React: follow-up RSC vulnerabilities, updated January 26",
      "url": "https://react.dev/blog/2025/12/11/denial-of-service-and-source-code-exposure-in-react-server-components",
      "says": "Additional DoS/source-exposure vulnerabilities and 19.0.4/19.1.5/19.2.4 security baselines; the original React2Shell RCE patch remains effective.",
      "primary": true
    }
  ],
  "headline": null,
  "one_liner": "An unauthenticated server request becomes code execution, then readable application secrets become access to cloud, AI and other services.",
  "in_the_wild_note": "CloudSEK recovered exfiltration logs, per-victim records and the attacker toolkit.",
  "mitigation": null,
  "timeline": [
    {
      "date": "Dec 3, 2025",
      "title": "React2Shell disclosed and first RCE patches released",
      "body": "React and Next.js published advisories for the underlying vulnerability, nearly a year before this campaign report."
    },
    {
      "date": "Jan 26, 2026",
      "title": "React publishes further RSC security fixes",
      "body": "Follow-up denial-of-service fixes reach 19.0.4, 19.1.5 and 19.2.4; these address additional issues, not a reported bypass of the original RCE fix."
    },
    {
      "date": "Nov 9, 2026, 18:21 UTC",
      "title": "Campaign scan orchestration starts",
      "body": "CloudSEK’s recovered timeline records environment harvesting from 19:07 UTC the same day."
    },
    {
      "date": "Nov 9–18, 2026",
      "title": "Sustained exploitation and harvesting",
      "body": "The recovered material includes 782,643 scan-output files; files are not a count of unique compromised hosts."
    },
    {
      "date": "Nov 19, 2026, 04:56 UTC",
      "title": "Targeted follow-up recorded",
      "body": "The timeline shows attention to SSH, private Git and crypto-related hosts. The last observed dump write is 06:39 UTC; this is not a containment or campaign-end claim."
    },
    {
      "date": "Nov 30, 2026",
      "title": "CloudSEK publicly describes React2Keys",
      "body": "The report attributes 50,000+ stolen credentials, infrastructure associated with over 400 organizations and over 19,000 hosts to the campaign. These are researcher estimates, independently unverified."
    }
  ],
  "body_markdown": "CloudSEK published React2Keys on November 30, 2026, describing a November credential-theft campaign against unpatched Next.js servers. This is a newly reported exploitation campaign, not a newly discovered React2Shell vulnerability. Recovered exfiltration records and persistence tooling support active exploitation and a serious incident classification.\n\nThe researcher estimates 50,000+ credentials, infrastructure associated with over 400 organizations, and over 19,000 hosts; its diagram specifies 19,043 vulnerable Next.js hosts. These figures remain independently unverified and do not establish that every organization named by the researcher confirmed a breach. Scan files, target-list entries, credentials, hosts and organizations are different measures. A further 1,483,686 target-list lines are not additional confirmed compromises.\n\nThe attack requires a reachable, vulnerable RSC server path. React lists affected versions of `react-server-dom-webpack`, `react-server-dom-parcel` and `react-server-dom-turbopack` as 19.0.0, 19.1.0, 19.1.1 and 19.2.0 for the original RCE. Applications can be exposed even without explicitly defining Server Function endpoints. Client-only React and applications without an RSC-capable server/framework are outside that vulnerability’s scope. Next.js identifies App Router 15.x/16.x and 14.3.0-canary.77 and later canary releases as affected; 13.x/14.x stable, Pages Router and Edge Runtime are not affected by this RCE.\n\nThe first Next.js RCE fixes were 15.0.5, 15.1.9, 15.2.6, 15.3.6, 15.4.8, 15.5.7 and 16.0.7, with canary fixes 15.6.0-canary.58 and 16.1.0-canary.12. Affected 14.x canary users were told to return to stable 14.x. These are historical RCE thresholds, not current upgrade targets. Use current supported framework security releases, including subsequent RSC fixes; do not assume upgrading only a top-level React dependency patches a framework-bundled copy. The table above records React’s January 26 follow-up baseline, not a guarantee against every later vulnerability.\n\nCloudSEK describes runtime secret harvesting, temporary cloud-identity theft, repository-history exfiltration and secrets-manager pivots. Stolen credentials can remain usable after the original server is patched, while an added SSH key gives another access path. AI services were used to assist processing and validate stolen credentials, sometimes from victim infrastructure; this does not establish a breach of those AI or cloud providers. Crypto credentials were classified for their ability to move funds, but the report does not confirm a total cryptocurrency loss or an exchange-platform compromise. The 74-entry SSH lateral-movement list likewise does not prove that the separate follow-on stage ran.\n\nThe observed dump ends on November 19; neither that timestamp nor the November 30 publication establishes containment. Patch, investigate persistence, revoke exposed and downstream credentials, and check for continued use together."
}