r/devops • u/Ops_Pab • Aug 07 '26
Security NPM Supply Chain Compromise | ChainDrop
https://www.microsoft.com/en-us/security/blog/2026/08/04/chaindrop-supply-chain-compromise-anatomy-self-propagating-worm/?utm_source=chatgpt.comMicrosoft published a breakdown on a large-scale npm supply chain compromise (ChainDrop) affecting over 400 packages including common dependencies
66
Upvotes
31
u/mirrax Aug 07 '26
Blows my mind that lifecycle hooks are still an issue.
8
u/blorporius Aug 07 '26
Is there an exhaustive list somewhere? I only skimmed the article.
8
u/ksemel Aug 07 '26
NPM built the perfect ecosystem to inflict supply chain attacks upon, yet many still act shocked when they get supply chain attacks.
7
u/IndistinctWarbling Aug 07 '26
Oh, is it that day of the week again?
2
u/totheendandbackagain Aug 08 '26
Scary stuff, this could happen so easily.
Advice I cleaned from the article:
1
u/ImageFit3021 Aug 09 '26
Every form of open source faces the same dilemma — when everything runs on trust, someone will exploit it. Public CDNs get turned into pirate movie hosting, npm packages into credential stealers. It's not technically novel, just purely malicious. What's sad is these attacks slowly erode the commons that developers actually share.
1
u/Zestyclose-Cat2399 Sep 28 '26
the list helps with cleanup but it's stale by next week and this will keep happening. what actually helps is `--ignore-scripts` as the default in CI and on dev machines where your build allows it,plus waiting a few days before pulling any new version. most of these get caught within hours, you just don't want to to be in the first wave. for monitoring, a few platforms like ox security continuously watch the dependency tree and flag compromised packages and hijacked maintainer accounts, including transitive deps, or Endor Labs if you want something more focused on just the dependency side. none of it saves you if preinstall still runs unattended though