Researchers uncovered an npm supply‑chain worm that stole maintainer tokens, injected malicious preinstall hooks, and published infected packages with valid provenance attestations. The fake attestations let the malware slip past automated trust checks, compromising CI pipelines and developer machines. It forces teams to upgrade npm, pin versions, and rethink trusted publishing.
Sonatype researchers uncovered a coordinated campaign that has published nearly 850 malicious npm packages across hundreds of disposable accounts. By spreading tiny payloads and rotating account names, the attackers evade detection and overwhelm npm’s moderation, raising the stakes for JavaScript supply-chain security.
Staged publishing adds a human gate: a maintainer must approve a package version with two‑factor authentication before it becomes installable. This blocks accidental or malicious releases, tightening supply‑chain security for the Node.js ecosystem and integrating with trusted publishing in CI/CD pipelines.