r/linuxadmin • u/Expert_Sort7434 • 2d ago
CloudSEK recovered an attacker's exfil log from a React2Shell campaign: 50k+ credentials, and patching revokes none of them
Based on the technical breakdown CloudSEK TRIAD published on Nov 30, here is the architectural impact. All numbers come from CloudSEK's recovered attacker logs, so treat them as single-source.
The campaign (CloudSEK calls it React2Keys) polls six public CT logs every three minutes, fingerprints Next.js, and sends one unauthenticated POST that executes JS in the live Node.js process. From there it reads env vars, .env files, SSH keys and the k8s service-account token. It then pivots:
- AWS: IRSA/EKS Pod Identity exchange for temporary credentials, so "no static keys on the box" doesn't protect you.
- Azure: managed-identity tokens.
- GCP: OAuth tokens minted from service-account keys.
- Databases and git: runtime-installed drivers, repo archives, org-wide GitHub code search.
- Secrets manager: one gateway credential readable by the app exposed the whole vault.
Every key is scored by estimated value and validated against about ten LLM providers. The actor also appends its own SSH key to authorized_keys, so persistence outlives the patch. React and Next.js both say the original fix still works. The problem is anything that was exposed before it landed.
For teams running workloads on EKS with IRSA or Pod Identity: how are you detecting token use from outside the expected workload? CloudTrail alone feels slow, and I'm curious what people actually run.
2
u/Open-Adhesiveness-86 2d ago
IRSA projected tokens default to an 86400s expiry, so put eks.amazonaws.com/token-expiration: "600" on the service account (600 is the floor) and an exfiltrated JWT is usually dead before anyone gets around to using it. Then add an STS interface endpoint and an aws:SourceVpce condition to the role's trust policy, so replay from outside just gets AccessDenied in CloudTrail, which is a far cleaner signal than trying to baseline normal API calls.