AD
Episode
406
Interview
Web News

The Shai‑Hulud Worm Attack (NPM Hack)

Recorded:
September 17, 2025
Released:
September 20, 2025
Episode Number:
406

In this episode of Web News, Matt and Mike dive into two massive worm attacks that recently hit npm, targeting packages used in millions of projects. While the attackers aimed to steal crypto wallet keys, the actual damage was small—but the implications are enormous. We break down how these man-in-the-middle attacks worked, why shadow dependencies are such a big risk, and what tools like pnpm’s minimum release age can do to help. We also discuss whether AI might allow developers to skip quick one-time npm packages entirely, reducing dependency sprawl and potential vulnerabilities.

Listen

Also available on...
...and many more, check your podcast app!

Who’s in This Episode?

Show Notes

In the last two weeks there have been two massive worm attacks (causing man-in-the-middle attacks) on npm packages that are used as dependencies in millions of projects. Both were achieved by the attackers gaining access to the admin accounts of package maintainers. The goal seemed to be to steal crypto private keys and drain funds from wallets, even though the attacks were successful, the amount stolen was fairly inconsequential, but this still leads us to talk about the potential consequences that could come from these attacks in the future. And also highlights the dangers of having too many dependencies, especially nested or “shadow dependencies” buried within npm packages within further npm packages.

Links:

Questions/Topics to Discuss & Resolve

  • Are we relying on shadow dependencies too much?
    • Talk about ways to mitigate these issues by
      • Locking versions from updating automatically
      • Using the new minimum release age  feature in pnpm
  • Does AI give us the opportunity to dump “quick one-time use” npm packages?
    • AI can write us the custom code for these use-cases, a quick “copy & paste” just like how the npm package was a quick fix once installed.