Shai-Hulud
A self-replicating worm that spreads through compromised npm packages.
What it is
A self-propagating supply-chain worm, first observed in the npm ecosystem, that steals credentials and CI/CD secrets from a compromised package's maintainer and automatically publishes malicious versions of every other package that maintainer controls, spreading itself further with each new compromise.
Why it matters
Its self-replication turns a single compromised maintainer account into an exponentially growing outbreak across the package registry with no further attacker action required, making containment and cleanup dramatically harder than a single tainted package.
In practice
A developer's CI pipeline installs a dependency that was silently republished by the worm, which then harvests the pipeline's own npm publish token and repeats the compromise on every package that token can publish.
What to look for
- npm packages publishing new versions with install scripts you did not expect.
- Credential scanning tools run during package install.
- New public repositories named after the worm in your accounts.
Common mistake
Rotating only npm tokens. It also hunts cloud keys and GitHub tokens, so rotate all of them.
Practice it nearby
CyberKit has no tool for this term itself. These are the closest places to practice it.
- File Triage
Drop any file. It names the format from its first bytes, hashes it, and opens the parser that reads it: PE, ELF, Mach-O, Office, PDF, plist, or entropy and strings.
- Rule Range
Write a regex, a Sigma rule, a YARA rule and a query pipeline, each graded live against samples, some of which you never see.
In the field
Well-known tools where this shows up on the job. They are listed to show the landscape, not as a recommendation.
-
Trivy Open source
Scans images, file systems and code for known vulnerabilities and secrets.
-
Falco Open source
Detects suspicious behavior inside running containers and Kubernetes.
-
Sigstore Open source
Signs and verifies software artifacts so you can prove where a build came from.
-
CrowdStrike Falcon Cloud Security Commercial
Protects cloud workloads and containers, from build to runtime.
Read next
- Supply Chain Compromise: Tampering with software or hardware before it reaches the victim.
- Supply-Chain Implant: Malicious code slipped into trusted software before it ships.
- Worm: Malware that self-propagates across systems without needing a human to run it.