Skip to content
Back to articles
security2 min

npm worm in keyv/cacheable hits 400+ packages: Shai-Hulud again

KGA IT
2026-10-12Updated:2 min
npmSupply ChainkeyvcacheableShai-HuludMalware
Capa: ataque à cadeia de suprimentos npm em keyv e cacheable

The attack

On the morning of Tuesday, August 4, 2026 (US time), Socket and Wiz researchers saw an npm supply-chain attack begin in the keyv and cacheable namespaces after the apparent compromise of maintainer account Jaredwray. The packages have tens of millions of weekly downloads, often indirectly (e.g. eslint → file-entry-cache → flat-cache → keyv).

How the malware spreads

Malicious versions use a preinstall hook that downloads a Bun runtime and runs Math_Symbol.js. The payload steals AWS/GCP/Azure keys, Vault/Kubernetes/GitHub OIDC tokens and npm tokens, runs a TruffleHog-style sweep and spreads by republishing other packages with stolen tokens. Data is encrypted (AES-256-GCM) and sent to GitHub repos titled "Shai-Hulud: Here We Go Again", plus .claude and .vscode hooks.

What to do

Pin clean versions, rebuild lockfiles, audit npm/GitHub accounts and rotate cloud credentials. Remove malicious loaders before rotating tokens, because of a dead-man’s switch that polls the GitHub API every 60 seconds.

Sources

Let's solve your technical challenges together.

KGA IT Solutions delivers AI, cloud, and DevOps expertise to address your specific challenges.

Contact Us