Shai-hulud: A Cyber Apex Predator
September 17th, 2025

❓What:
ReversingLabs discovered a self-replicating worm, coined Shai-hulud (named after the giant sand worm in the Dune series) infecting packages on the npm registry.
The worm takes over compromised maintainers’ npm accounts and injects malicious code into their public and private packages so downloads spread the worm further.
It harvests developer/cloud secrets (tokens for npm, GitHub, AWS, GCP) and installs TruffleHog to hunt for hundreds of secret types; it has also made some private GitHub repositories public.
⚠️Impact:
Large blast radius: Hundreds of packages — including widely used download libraries such as ngx-bootstrap and @ctrl/tinycolor — were infected, affecting projects that depend on them (millions of weekly downloads cited).
Credential & IP exposure: Stolen cloud/service tokens risk account takeover, data exfiltration, and unauthorized code publication (private repositories exposed ~700 results observed).
Supply-chain propagation: Because npm dependencies are widely reused, a single compromised package can cascade infections across many projects and CI pipelines. Several packages published by large companies have already been compromised, including CrowdStrike.
💡Recommendations:
Rotate and revoke credentials now — revoke any npm/GitHub/AWS/GCP tokens that may have been used from affected accounts; rotate CI/service tokens that touch npm packages.
Enable/enforce 2FA & strong access controls on all maintainer and org accounts (npm, GitHub, cloud consoles).
Revoke & reprovision leaked keys with least privilege — treat exposed tokens as fully compromised and replace them with scoped, short-lived credentials.
Scan CI/CD pipelines and connected systems for persistence or backdoors (build jobs, deployment keys, post-install scripts).
Inform and patch maintainers — communicate to contributors/maintainers about account compromise signs; remove malicious code and republish only after verification.
Monitor for publicized repo changes — search for repositories that became public unexpectedly and restore privacy or investigate leakage.
Read the full article HERE