Brief · Both
An automated campaign used React2Shell to steal more than 50,000 secrets, and AI keys were the prize
On Nov 30, CloudSEK described a campaign it calls React2Keys: fully automated, AI-assisted credential theft built on React2Shell (CVE-2025-55182), the unauthenticated remote-code-execution bug in React Server Components and Next.js Server Actions. CloudSEK says it recovered the actor's infrastructure, including a 1.9-million-line exfiltration log and a toolkit of more than 900,000 files. From that material it reports more than 50,000 credentials taken from more than 19,000 victims, tied to more than 400 organizations.
The high-value credentials CloudSEK highlights start with AI provider keys, then cloud identities, then payment, registrar and crypto keys. If you ran an unpatched Next.js or React Server Components app, especially with those secrets in environment variables, assume they're burned. Patching the hole is not enough. You have to rotate.
How the campaign worked, as CloudSEK tells it
The actor polls six public Certificate Transparency logs every three minutes, so a host can be queued minutes after it gets a TLS certificate. It then exploits Server Actions without a login and harvests environment variables and known secret files. From there it pivots: cloud metadata and IRSA or managed-identity tokens, live database sessions, org-wide GitHub code search with a stolen token, and, in at least one case, a full dump of a secrets manager after the gateway credential was sitting in the app's environment. Keys are scored by estimated money value and live-tested, including against roughly ten LLM providers. Stolen Claude Code OAuth logins are refreshed and used for inference billed to the victim. Where a stolen AWS account is gated behind the Bedrock use-case form, a script submits the form with those credentials. The actor plants an SSH key for persistence, so a later patch does not kick them out, and reinvests stolen cloud accounts as scan workers.
CloudSEK also notes an import path under .hermes/skills, which it reads as a hint of an AI-agent framework. That's a clue, not a confirmed product name. What the evidence in the post shows is AI-assisted automation, plus AI keys as loot.
CloudSEK has an exposure checker. The published SSH key and other indicators are in the post; I'm not going to reprint them here.
What to do
-
Patch the React2Shell hole, then rotate every secret that lived on the host.
- Why: Stolen credentials work after the app is patched. CloudSEK recovered environment variables, secret files, cloud identities and vault gateway credentials from the same hosts.
- How: Upgrade React Server Components packages to 19.0.1, 19.1.2, 19.2.1 or later, and move Next.js to a release that's patched for CVE-2025-55182, per the vendor advisory. Assume every environment variable and secret file on the host is compromised — AI keys, cloud keys, database passwords, and any secrets-manager gateway credential — and rotate them (item 1 of the Builder's Checklist). Check
authorized_keysfor the key in CloudSEK's post. Review CloudTrail, Bedrock access changes and AI usage bills, including in accounts you thought were quiet. Don't leave vault or provider credentials readable by the app process if you can avoid it. This is the same "your AI login was the prize" pattern I wrote about in infostealers and in llmjacking.
Want the next one?
One email, weekly-ish. The week's briefs, how worried to be, and what to do about it. No doom.
Subscribe on Beehiiv ↗Free. Opens Beehiiv in a new tab. Unsubscribe whenever, I won't be offended.