3 ms·
I don't get why package install scripts are the focus here. Yes they can run malicious code on your computer, but even if you take the correct precautions and b
by paxys 5y ago
I don't get why package install scripts are the focus here. Yes they can run malicious code on your computer, but even if you take the correct precautions and block these scripts, the rest of the code from the package is still in your application. It will run regardless, not just on your local machine but presumably also on your servers and/or your customers' devices. If the install script was malicious why on earth would the rest of the package be considered safe?
The one and only solution here is – don't pull code from sources you don't fully trust.
- Someone1234 5y ago> The one and only solution here is – don't pull code from sources you don't fully trust. An idea that is antithetical to the whole ecosystem surrounding npm/JavaScript. You can be careful with your direct dependencies, but their dependencies and those things dependencies? That's how a bunch of otherwise very respectable/well engineered projects ended up with left-pad in them.