They Stole 50,000 Keys From Unpatched Servers

For ten days in November, an attacker used a year-old flaw in React and Next.js, plus AI tools, to steal more than 50,000 keys and passwords from unpatched web servers at over 400 organizations. Here's what I'd do this week.
By Felipe Isaza, FUNCSHUN | Companion to CyberScope Weekly Vol 74
You may not keep a list of every key and password sitting on your web servers. For ten days in November, someone else was making that list for companies that hadn't patched a year-old flaw.
What happened
CloudSEK, a threat research firm, uncovered a campaign it calls React2Keys after getting into the attacker's infrastructure. BleepingComputer, citing CloudSEK, says the campaign ran for ten days, from Nov 9 to 19, against web servers still exposed to React2Shell (CVE-2025-55182). That's a critical flaw in React Server Components. It lets anyone run code on a vulnerable server, including one hosting a Next.js app, without logging in. BleepingComputer says the flaw was disclosed last December, and that attackers have used it since then in ransomware, botnet, and cryptomining campaigns, as well as credential theft.
The attacker found targets by watching newly issued TLS certificates. CloudSEK says it polled six public certificate logs every three minutes, so a new site could be scanned within minutes of going live. Domains were then checked for Next.js. Only about 3% passed that filter.
Once in, the attacker collected environment variables and secret files. CloudSEK says that haul included cloud keys (AWS, Azure, and Google Cloud), AI provider keys (Anthropic, OpenAI, and Google Gemini), database passwords (PostgreSQL, Redis, and MongoDB), GitHub tokens, and payment and crypto keys. In some cases, it went further: into cloud identities, databases, Git repositories, and secrets managers, using credentials found on the first server.
CloudSEK counts more than 50,000 credentials from more than 19,000 victims tied to over 400 organizations, across dozens of countries, and not limited to one sector. BleepingComputer reports the same campaign as more than 50,000 credentials from at least 19,000 hosts at 400 organizations.
AI tools did much of the sorting. CloudSEK says the attacker used AI services to test which stolen keys were still live and to rank them by estimated value. It even ran stolen Claude Code logins and billed the usage to the victims.
The attacker also planted its own SSH key on compromised servers. Patching the flaw closes the hole. It doesn't remove that key, and it doesn't take back what was already copied.
CloudSEK recovered a 1.9-million-line exfiltration log and a toolkit of more than 900,000 files from the attacker's infrastructure. That's how it mapped the campaign. It also published a free exposure check at https://exposure.cloudsek.com/react2keys. I'd use it, then still do the work below. A clean result is not a substitute for rotating keys.
Why this matters in a small company
You don't need to be a large tech firm for this to land. A 15- or 40-person company in South Florida often has a customer portal or a marketing site that a contractor built on Next.js, plus a few internal apps. The keys for cloud accounts, email, payments, and AI tools often live in a .env file on that same server. That's exactly what this campaign went looking for.
A new site can be found within minutes of getting a TLS certificate. If the server wasn't patched, the keys on it were fair game. And if someone already copied them, installing the patch this week doesn't take them back.
If an attacker has your cloud key, they can stand up new servers on your bill. CloudSEK says this actor used stolen cloud credentials to expand its own scanning. If they have an AI provider key or a Claude Code login, they can run up charges on your account. If they have a database password or a payment key, the damage is more direct.
Why this matters if you handle CUI
CMMC Phase II is still suspended. Your obligations aren't. DoD's CMMC page says the pause that began on Jul 13 remains in effect, Phase I self-assessments stay in place, and the Department is still enforcing NIST SP 800-171 Rev 2 through self-assessments and some government-led assessments. If your contracts carry DFARS 252.204-7012, you already have to implement 800-171 on systems that handle covered defense information, and report a cyber incident to DoD within 72 hours of discovery.
If keys to a system that holds CUI were sitting on an unpatched web server, this is not only a patching problem. It may be a reportable incident.
A few controls map directly to this story:
- 3.14.1 Identify, report, and correct information and information system flaws in a timely manner. React2Shell has been public since last December.
- 3.5.10 Store and transmit only encrypted representation of passwords. Keys sitting in a .env file on an internet-facing server are what this campaign collected.
- 3.1.1 Limit system access to authorized users, processes acting on behalf of authorized users, or devices (including other systems). A planted SSH key is access you didn't authorize.
- 3.14.6 Monitor organizational systems, including inbound and outbound communications traffic, to detect attacks and indicators of potential attacks. You should be able to see unusual use of a cloud key or an AI login.
If your system security plan says these are implemented, you should be able to show that React and Next.js are patched, that secrets on those servers have been rotated, and that you checked for SSH keys you don't recognize. Your SPRS score is a statement you sign.
What I'd do this week
-
Find every internet-facing app built on React or Next.js. Include the customer portal a contractor built, the marketing site, and anything that went live this year. Write down the product, version, who owns it, and whether it was patched for React2Shell (CVE-2025-55182) (3.14.1).
-
Patch first. Upgrade React Server Components to 19.0.1, 19.1.2, 19.2.1 or later, and move Next.js to a release patched for this flaw, per the vendor advisory (3.14.1).
-
Rotate every key and password that lived on an exposed server. Treat environment variables and secret files as compromised: cloud keys, AI provider keys, database passwords, GitHub tokens, payment keys, and any secrets-manager credentials (3.5.10).
-
Check authorized_keys on those servers for SSH keys nobody added. CloudSEK says the attacker planted its own key, and patching does not remove it (3.1.1, 3.14.6).
-
Look at cloud, AI, and payment logs for use you don't recognize. Unusual API calls, new keys, new servers, or a sudden spike in AI or cloud spend are worth a close look (3.14.6). Don't assume you're clear just because you found no static keys. CloudSEK says the attacker also pulled temporary cloud credentials from the server's own identity service.
-
If a contractor or hosting company runs the site, ask them in writing: which release you're on, whether the patch is in, which secrets they rotated, and whether they checked for unknown SSH keys. You still own what those keys can reach.
Write down the answers, with dates.
The bottom line
This wasn't a brand-new flaw. It was disclosed last December. For ten days in November, an attacker used it to steal more than 50,000 keys and passwords from servers that were never patched, and AI tools helped sort what was worth keeping. Patching closes the door. It doesn't take back what was already copied, and it doesn't remove a key the attacker left behind.
If you can't list every key and password stored on your web servers right now, that's the place to start.
Want a second set of eyes on the keys sitting on your web servers? Book a Cyber Risk Strategy Call: https://start.funcshun.com
Felipe Isaza is the founder of FUNCSHUN Cybersecurity, a Miami firm that helps South Florida businesses with cybersecurity, IT support, and compliance, including CMMC.
Sources
- CloudSEK TRIAD, "React2Keys: AI-Powered React2Shell Campaign Steals 50,000+ AI, Cloud, Database, Payment, Registrar, and Crypto Keys from 19K+ Victims" (Nov 30, 2026): https://www.cloudsek.com/blog/react2keys-react2shell-ai-powered-credential-theft
- CloudSEK, React2Keys exposure validation tool: https://exposure.cloudsek.com/react2keys
- BleepingComputer, Bill Toulas, "AI-powered React2Keys campaign steals secrets from 400 organizations" (Nov 30, 2026): https://www.bleepingcomputer.com/news/security/ai-powered-react2keys-campaign-steals-secrets-from-400-organizations/
- DoD CIO, About CMMC (Phase II suspension): https://dodcio.defense.gov/CMMC/About/
- DFARS 252.204-7012, Safeguarding Covered Defense Information and Cyber Incident Reporting: https://www.acquisition.gov/dfars/252.204-7012-safeguarding-covered-defense-information-and-cyber-incident-reporting
- NIST SP 800-171 Rev 2, Protecting Controlled Unclassified Information in Nonfederal Systems and Organizations: https://csrc.nist.gov/pubs/sp/800/171/r2/upd1/final



