A key on the server is a key on the attack surface
The usual way to connect an application to a large language model is to request an API key, put it in an environment variable or a .env file on the application server, and read it at start-up. Cloud keys, database passwords and GitHub tokens tend to live in the same place.
It is convenient, and it has a cost. If any application on that server has a remote code execution flaw, every key on it is lost at once. On 30 November 2026 the security company CloudSEK published a report on an automated campaign built to collect exactly these secrets. CloudSEK calls it React2Keys, and AI platform keys are among its main targets.

What happened
According to CloudSEK’s report, the attacker exploited React2Shell (CVE-2025-55182), an unauthenticated remote code execution flaw in React Server Components that was disclosed in December 2025 and affects sites built on Next.js. The servers that fell were therefore ones still unpatched a year later.
The report puts the scale at more than 400 organisations, more than 19,000 victims and more than 50,000 credentials. BleepingComputer adds that the activity CloudSEK identified ran for ten days, from 9 to 19 November. CloudSEK says the figures come from logs and tooling it recovered from the attacker’s infrastructure, and that victims span dozens of countries and both large and small businesses, with no particular sector targeted. So far these numbers come from CloudSEK alone and have not been independently confirmed.
The operation is automated end to end. The report describes these stages:
- Finding targets. The attacker polls public Certificate Transparency logs every three minutes. A site that has just been issued an HTTPS certificate can be on the scan list within minutes.
- Getting in. A single unauthenticated request to a Next.js site is enough to run code on the server.
- Collecting secrets. Every environment variable is matched against credential patterns, and the payload reads
.envfiles, cloud credential files, SSH keys and the Kubernetes service-account token. - Moving further. Stolen credentials are exchanged for temporary cloud identities, used to connect to the victim’s own databases, and used with GitHub tokens to search an entire organisation’s code for more secrets. In one case described in the report, a credential for a secrets manager was sitting in the application environment, and the attacker used it to pull every secret stored there.
- Validating and ranking. Each secret is scored by estimated value and then tested live. LLM keys are tried against roughly ten model providers, and a key that is valid but out of credit is kept, not discarded.
- Staying in. The attacker’s SSH public key is appended to a compromised account, so patching the flaw does not remove access.

Three kinds of AI-related access were taken: API keys for Anthropic, OpenAI, Google Gemini and other model platforms; Claude Code login tokens, which the report says the attacker refreshes and uses to run its own workloads billed to the victim’s subscription; and model-service permissions inside cloud accounts. Stolen cloud resources were also used to expand the scanning, which means victims were paying for the campaign that hit them.
Two further details will matter to many companies. The same attack code can switch to an Odoo mode aimed at CVE-2026-25137. According to the vulnerability database, that identifier covers the NixOS package of Odoo exposing the database manager to the internet without authentication, which lets an outsider download or delete the whole database. A separate chain targets WordPress; CloudSEK says only 4 of 2,939 scanned hosts were confirmed vulnerable.
How we read it
LLM keys now have a market price. A year ago an intruder on a server looked for cloud keys and database passwords. Today’s tooling carries the key formats of around ten model platforms and validates and grades what it finds automatically. The consequences of an API key leak are direct: the bill runs up, quota is consumed, and whatever conversations or files the key can reach may be read.
Centralising secrets is not the same as protecting them. The secrets-manager example shows that if the application server can read the master credential, central storage makes the loss larger. What matters is not where the secrets are stored. It is what a compromised machine is able to fetch.
Patching is half the job. Stolen keys work without the vulnerability, and a planted SSH key does not disappear after an upgrade. After a compromise, three things are all required: patch, rotate, and remove persistence.
The clock is shorter. If a new certificate is scanned minutes after it is issued, then test environments, temporary sites and newly launched systems no longer have a few quiet days before anyone notices them.
A checklist for IT managers
- Find out whether you run affected systems. Ask your developers or agency whether any public site or application uses Next.js or React Server Components, and whether it is patched for CVE-2025-55182. CloudSEK lists the fixed React Server Components versions as 19.0.1, 19.1.2, 19.2.1 or later, with Next.js upgraded according to the vendor advisory. Include staging sites, campaign pages and old projects.
- On any host that was exposed, rotate everything. That means LLM API keys, cloud keys, database passwords, GitHub tokens, SMS and email service tokens, and any secrets-manager credential. Do not rotate only the ones that appear to have been used.
- Look for persistence and unusual usage. Check every
authorized_keysfile for keys nobody recognises. Review usage, billing and audit logs on your model and cloud platforms for unfamiliar calls, new users or new instances. - Keep raw LLM keys off application servers. Have applications call models through an internal LLM gateway, with the provider keys held only on the gateway. Give each application its own internal credential with a spending cap that can be revoked at any time. If one application server is compromised, what is lost is a key you can cancel in a minute.
- Set budget limits and usage alerts on model accounts. Turn on monthly caps or usage alerts wherever the platform offers them; the exact settings depend on each provider’s console. A sudden change in usage is often the earliest sign of a stolen key, and a cap is the last line of defence for cost.
- If you run Odoo or WordPress, check two things. The Odoo database manager (
/web/database) should not be reachable from the internet. Keep WordPress core and plugins updated, and remove plugins you do not use.

Where DELine can help
DELine deploys AI agents and LLM applications for businesses and also runs day-to-day IT operations. Three parts of that work apply here: building an internal LLM gateway that holds provider keys in one place, issues revocable per-application credentials and records usage; reviewing the exposure and patch status of Odoo, company websites and other internet-facing systems; and helping rotate credentials and look for persistence after a leak. If you want to confirm whether your systems are affected, or move LLM keys off your application servers, contact us.
References
- CloudSEK: React2Keys: AI-Powered React2Shell Campaign Steals 50,000+ AI, Cloud, Database, Payment, Registrar, and Crypto Keys from 19K+ Victims (30 November 2026)
- BleepingComputer: AI-powered React2Keys campaign steals secrets from 400 organizations (30 November 2026)
- NVD: CVE-2025-55182 (remote code execution in React Server Components)
- NVD: CVE-2026-25137 (NixOS Odoo package exposes the database manager)



