This is why I am not a huge fan of separate package managers for libraries, such as in the case of rust, or node. The C style of sharing deps. couldn't really be simpler as just including the headers in your Makefile. We really don't need more package managers other than the ones provided by your operating system, but I dunno maybe its just me.
Shai-Hulud Returns: Over 300 NPM Packages Infected
411–420 of 797 posts
Re: Shai-Hulud Returns: Over 300 NPM Packages Infected
#412I guess you should never use the latest versions of libraries.
But you also need the latest versions to avoid zero-day attacks.
Re: Shai-Hulud Returns: Over 300 NPM Packages Infected
#413The "use cooldown" [0] blog post looks particularly relevant today. I'd argue automated dependency updates pose a greater risk than one-day exploits, though I don't have data to back that up. That's harder to undo a compromised package already in thousands of lock files, than to manually patch a already exploited vulnerability in your dependencies. [0] https://blog.yossarian.net/2025/11/21/We-should-all-be-using...
Why not take it further and not update dependencies at all until you need to because of some missing feature or systems compatibility you need? If it works it works.
Indeed there are people doing that and communities with a consensus such approach makes sense, or at least is not frowned upon. (Hi, Gophers)
Re: Shai-Hulud Returns: Over 300 NPM Packages Infected
#414I compiled a list of NPM best practices one can adopt to reduce supply chain attack risks (even if there's no perfect security preventions, _always_): https://github.com/bodadotsh/npm-security-best-practices Discussion on HN last time: https://news.ycombinator.com/item?id=45326754
1. Don't
Re: Shai-Hulud Returns: Over 300 NPM Packages Infected
#415Earlier quoted context omitted.
When I last looked (as a consulting dev in a bank or three, horrified) absolutely they had not!
If this was in the US, all financial institutions need to audit their code to comply with NIST SP 800-53. If they haven’t, it would be ethically dubious for you to not report it.
Re: Shai-Hulud Returns: Over 300 NPM Packages Infected
#416Re: Shai-Hulud Returns: Over 300 NPM Packages Infected
#417Why the biggest package mess is always with the Node ecosystem? Why in particular this community still insists on preemptively updating all deps always, on running complicated extra hooks together with package installation and pretending this all is good engineering practices? ("Look, we have so plenty of things and are so busy, thus it must be good") Why certain kind of mindset is typical to this community? Why the…
Re: Shai-Hulud Returns: Over 300 NPM Packages Infected
#418"No Way To Prevent This" Says Only Package Manager Where This Regularly Happens
The circumstances for this are not unique to NPM. The popularity is what makes it so susceptible to these attacks.
Re: Shai-Hulud Returns: Over 300 NPM Packages Infected
#419This is why I am not a huge fan of separate package managers for libraries, such as in the case of rust, or node. The C style of sharing deps. couldn't really be simpler as just including the headers in your Makefile. We really don't need more package managers other than the ones provided by your operating system, but I dunno maybe its just me.
Including headers isn't remotely "simple". There's so many considerations in linking, .SO version compatibility, architecture and instruction set issues, building against multiple versions on the same system. Or if you want to feel frustrated in a single word: GDAL (IYKYK)
And that's only where #include is even applicable. That is not gonna fly for any interpreted language - JS in this case, but also python, ruby, php.
Re: Shai-Hulud Returns: Over 300 NPM Packages Infected
#420Earlier quoted context omitted.
When I last looked (as a consulting dev in a bank or three, horrified) absolutely they had not!
If this was in the US, all financial institutions need to audit their code to comply with NIST SP 800-53. If they haven’t, it would be ethically dubious for you to not report it.