TL;DR: The Shai-Hulud worm compromised 180+ npm packages, including some linked to CrowdStrike, and used post-install scripts, stolen tokens, and workflow abuse to steal secrets and propagate through developer environments, according to AccuKnox. The incident shows that supply chain defence now depends on identity controls, provenance checks, and runtime monitoring, not just dependency review.
Editorial analysis by NHI Mgmt Group, based on content published by AccuKnox: “Malicious NPM Packages – How AccuKnox Stops Supply Chain Attacks”.
Key questions
Q: What breaks when a malicious npm package can read developer secrets during install?
A: The main failure is that package execution inherits identity context it should never need.
Q: Why do standing CI/CD tokens create so much risk in supply chain attacks?
A: Standing tokens remain usable long after the moment they were created, so a compromise can persist through normal operations and even through partial remediation.
Q: What are the signs that a package compromise is reaching developer systems?
A: Watch for unexpected outbound network requests from Python processes, temporary payload files in system directories, and interpreter activity tied to package import rather than normal application flow.
Practitioner guidance
- Tighten CI/CD publishing permissions Remove broad publish rights from build identities and require explicit approval for package releases, workflow changes and registry access.
- Scan for exposed secrets before publish Continuously inspect repositories, build logs and environment variables for npm tokens, GitHub credentials and cloud keys before they can be harvested.
- Enforce package provenance and attestation Block unverified packages from internal builds and require signed, traceable provenance for dependencies and release artifacts.
Bottom line: Shai-Hulud shows that npm supply chain compromise is also an identity problem because publish tokens, workflow permissions and build credentials can be repurposed for propagation.
Explore further
View Full Forum → | NHI Foundation Course → | Our Services → | Read the full analysis →
Identity controls are now part of software supply chain defence. This attack pattern shows that package trust alone is insufficient when publishing tokens, workflow credentials and CI identities can be reused after compromise. The governance failure is not just weak dependency review, but standing machine access that can be repurposed for propagation. Practitioners should treat npm publishing and CI credentials as governed identities, not simple convenience tokens.
A few things that frame the scale:
- 59% of compromised machines in a major 2025 supply chain attack were CI/CD runners rather than personal workstations, according to the State of Secrets Sprawl 2026.
- 92% of organisations expose NHIs to third parties, raising concerns about supply chain security, according to the Ultimate Guide to NHIs.
A question worth separating out:
Q: How should security teams respond when a trusted JavaScript package is compromised?
A: Treat the event as both a supply-chain incident and a secrets exposure risk. Freeze affected builds, inventory every direct and transitive dependency, rotate any token or API key that may have touched the compromised runtime, and validate that package provenance is clean before redeploying. The goal is to stop inherited trust from becoming inherited compromise.
👉 Read our full editorial: Shai-Hulud shows why npm supply chain security needs identity controls