Earlier quoted context omitted.
To be honest Rust has the exact same supply chain attack pattern - it's just newer and more maintained at the moment. Give it a decade.
Rust doesn’t have post install scripts
'No way to prevent this,' says only package manager where this regularly happens
41–50 of 230 posts
Re: 'No way to prevent this,' says only package manager where this regularly happens
#42I really don't understand why the npm project cannot embrace PGP as an ambulatory 'good enough' solution.
Would that help? Most of these recent attacks, the attackers have gained access to the system that builds the packages. So it would have just signed the malicious build the same.
Re: 'No way to prevent this,' says only package manager where this regularly happens
#43Vendorizing using git submodule should be a robust mitigation for this problem.
Re: 'No way to prevent this,' says only package manager where this regularly happens
#44The other one a few days ago was also good: https://nesbitt.io/2026/02/03/incident-report-cve-2024-yikes...
Re: 'No way to prevent this,' says only package manager where this regularly happens
#45What are the actual guarantees that go/Rust make that Python/npm don’t? It seems like it might just be that Python/npm are juicier targets? I’m starting to try and avoid all third party packages
With many other languages, you have a lot of functionality out of the box. Certainly, there have been bugs and security issues, but they're a drop in the bucket compared to what you see in the JS ecosystem. With other languages, you have a much smaller external dependency graph and the core functionality is coming from a trusted 3rd party.
Re: 'No way to prevent this,' says only package manager where this regularly happens
#46There is no legitimate reason why postinstall scripts need to exist. The npm team needs to grow up and declare "starting with npm version whatever, npm will only run postinstall scripts for versions of packages published before ${today}".
This is definitely going to affect any packages that need to link to native code and/or compile shims, but these are very few.
Re: 'No way to prevent this,' says only package manager where this regularly happens
#47What are the actual guarantees that go/Rust make that Python/npm don’t? It seems like it might just be that Python/npm are juicier targets? I’m starting to try and avoid all third party packages
Part of the point the article makes is that most other popular languages have a comprehensive standard library. JS has an astonishingly small on. Rather than have one vetted set of libraries that ship with the language, applications either need to roll it themselves or pull from a 3rd party package repository. We've drilled NIH into people, so they tend to reach for packages. That's not necessarily a bad thing, but i…
Re: 'No way to prevent this,' says only package manager where this regularly happens
#48There is no legitimate reason why postinstall scripts need to exist. The npm team needs to grow up and declare "starting with npm version whatever, npm will only run postinstall scripts for versions of packages published before ${today}".
install scripts are a distraction, just like package signatures are a distraction. adding/removing either feature has no significant impact on the wormability of this package ecosystem. installed npm code is run, with nearly zero exceptions.
Re: 'No way to prevent this,' says only package manager where this regularly happens
#49There is no legitimate reason why postinstall scripts need to exist. The npm team needs to grow up and declare "starting with npm version whatever, npm will only run postinstall scripts for versions of packages published before ${today}".
install scripts are a distraction, just like package signatures are a distraction. adding/removing either feature has no significant impact on the wormability of this package ecosystem. installed npm code is run, with nearly zero exceptions.
Re: 'No way to prevent this,' says only package manager where this regularly happens
#50There is no legitimate reason why postinstall scripts need to exist. The npm team needs to grow up and declare "starting with npm version whatever, npm will only run postinstall scripts for versions of packages published before ${today}".