
The Self-Propagating npm Worm (April 2026): How postinstall Hooks Got Weaponized
April 2026's self-propagating npm worm used postinstall hooks to scrape developer tokens (npm, GitHub, AWS), then auto-publish backdoored package versions. Detection steps, rotation playbook, and the structural defenses (ignore-scripts, pnpm, sandboxed CI, signed publishes).







