React2Keys: Steps to Review Servers and Revoke Exposed Secrets

React2Keys: Steps to Review Servers and Revoke Exposed Secrets

React2Keys stole more than 50,000 credentials from at least 19,000 hosts linked to 400 organizations, according to CloudSEK. The campaign exploited React2Shell, the critical vulnerability CVE-2025-55182, on unpatched Node.js servers; it affected credentials for cloud services, databases, AI services, repositories, and cryptocurrency.

The campaign was active from November 9 to 19. CloudSEK describes victims in different countries, sectors, and of different sizes; it was not limited to a specific industry. The attacker may also have moved from the initial server to cloud identities, databases, Git repositories, and secret managers.

Who should check their systems

The priority is organizations running Node.js with React Server Components or Next.js that had not applied the fixes for React2Shell. The vulnerability allows remote code execution without authentication on vulnerable servers. CloudSEK also recommends checking systems that have already been updated: stolen credentials and installed SSH keys may remain valid after patching.

Searching the server for static keys is not enough. The operation collected environment variables and secret files, and also obtained managed identity tokens and temporary credentials. CloudSEK specifically points to Kubernetes, EKS Pod Identity, and IRSA on AWS, as well as Azure managed identity tokens.

The data sought included AWS, Azure, and Google Cloud keys; Anthropic, OpenAI, and Gemini keys; GitHub and Claude Code tokens; PostgreSQL, Redis, and MongoDB credentials; and access to cryptocurrency exchanges and wallets. If the server could read or use them, include them in the review.

What to do, step by step

  1. Check for exposure with CloudSEK. The company offers a validation tool at exposure.cloudsek.com/react2keys. Enter the domain or work email to check for possible exposure to React2Keys. Treat the result as a starting point: continue reviewing servers and credentials even if no match appears.

  2. Update vulnerable components. CloudSEK recommends updating React Server Components packages to 19.0.1, 19.1.2, 19.2.1, or later, and upgrading Next.js to a version fixed for CVE-2025-55182 according to the vendor's advisory. Check which packages each application uses and apply the appropriate fix; do not assume a deployment is protected just because one part of the stack has been updated.

  3. Assume the host's secrets are exposed. Rotate environment variables and file-based secrets accessible from the affected server. The review should cover cloud keys, database credentials, AI provider keys, repository tokens, registrar and payment credentials, messaging tokens, and access to secret managers. CloudSEK warns that a single secret granting access to a vault may allow other secrets stored there to be extracted.

  4. Revoke affected tokens and sessions. Do not just generate new keys: invalidate the old ones wherever the service allows it and verify which identities or permissions could use them. Include temporary credentials and session tokens, not just permanent keys. If a cloud identity or AI application shows unexpected activity, review associated access as well before re-enabling credentials.

  5. Look for SSH-based persistence. Review the authorized_keys files for accounts in the compromised environment and remove keys you do not recognize, after confirming they are not for legitimate access. CloudSEK confirmed that the attacker added an SSH public key to retain access. The company also recommends reviewing cron jobs and SSH logins; the patch alone does not remove that key.

  6. Audit cloud identities and their logs. Examine AWS CloudTrail activity, cloud provider audit logs, and AI platform usage. Look for unusual calls, new IAM users, changes to access to Bedrock models, and unexpected instance deployments. Include your own cloud accounts in the review if they may have received activity from stolen credentials.

  7. Review identities that do not use static keys. CloudSEK calls for checking the use of Kubernetes service accounts, EKS Pod Identity, IRSA, and Azure managed identity tokens. The absence of a fixed key in code or an environment variable does not rule out the process obtaining temporary credentials through the environment's identity.

  8. Check the impact beyond the server. If the host's credentials provided access to GitHub, databases, cloud infrastructure, or a vault, review those systems as well. The campaign used GitHub tokens to search for secrets in organizations and may have accessed databases and secret managers. Limit IAM permissions and reduce the scope of identities that are still needed.

React2Keys: pasos para revisar servidores y revocar secretos expuestos
© CloudSEK

Mistakes that can leave access open

Patching without rotating credentials leaves keys that have already been copied usable. CloudSEK emphasizes that stolen secrets operate independently of the vulnerable application: updating React or Next.js closes the initial entry point, but does not by itself invalidate cloud keys, API tokens, or database passwords.

Searching only for visible keys can also create a false sense of security. The campaign obtained temporary credentials and tokens through environment identities, in addition to variables and files. Check the logs and permissions for those identities, even if you do not find a static key on the server.

Finally, do not leave unknown SSH keys for a post-patch review. CloudSEK confirmed their use as a persistence mechanism and also recommends inspecting cron jobs and logins. Remediation must address both the vulnerability and the access that may have been installed or stolen before it was fixed.

Sources: BleepingComputer, CloudSEK