'No way to prevent this,' says only package manager where this regularly happens
91–100 of 230 posts
Re: 'No way to prevent this,' says only package manager where this regularly happens
#92Re: 'No way to prevent this,' says only package manager where this regularly happens
#93Re: 'No way to prevent this,' says only package manager where this regularly happens
#94Earlier quoted context omitted.
Rust doesn’t have post install scripts
There is build.rs, proc macros are unsandboxed, and lastly you install the binary so that you can run it. Even if the build and install were fully sandboxed, the binary could still do malicious stuff if ran.
However the current npm vulns used a post install script.
Re: 'No way to prevent this,' says only package manager where this regularly happens
#95I know people have opinions about cooldowns, but they would have saved you from axios, tanstack, and many other recent npm supply chain attacks. If you have Artifactory / Nexus, you probably already have cooldowns, but it's easy to set up if you don't. Why cooldowns? Most npm (or pypi) compromises were taken down within hours, cooldowns simply mean - ignore any package with release date younger than N days (1 day can…
> Disclaimer: I maintain depsguard
Re: 'No way to prevent this,' says only package manager where this regularly happens
#96Re: 'No way to prevent this,' says only package manager where this regularly happens
#97There 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}".
With respect, post-install scripts are a total red herring. You're alarmed by them because they are code controlled by someone else that runs on your box, and they could do something bad -- yes, they are, and yes they could. But so is the regular code in those packages! It won't run at install time, but something in there will run -- otherwise it wouldn't have been included in the dependencies. Thinking that eliminat…
Re: 'No way to prevent this,' says only package manager where this regularly happens
#98What 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
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.
Re: 'No way to prevent this,' says only package manager where this regularly happens
#99What 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
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.
And that number tends to reduce even more when the ecosystem matures.
Re: 'No way to prevent this,' says only package manager where this regularly happens
#100With the recent high-profile attacks on PyPI packages, it’s no longer true that npm is the “only package manager where this regularly happens”. In fact, pip is much more dangerous than npm because it lacks a lockfile. uv fixes that, but adoption is proceeding at a snail’s pace.