by povils · 6y ago · 0 comments
- avoid dependencies where you reasonably can. Less moving parts are usually good
- just have a look at the dependencies of your dependencies - this might help you decide which one to trust
Dependencies are more dangerous (in this sense) because they compile into your application, so they can do anything they like to your customer data. A malicious tool could monitor your keystrokes and phone home, but it won't get installed on your production server.
A further problem with npm dependencies is that they get told when they're operating in dev mode and when in production mode. So malicious code can hide itself during dev and test, and then only do the bad thing on the production server.
On a somewhat related topic: https://drewdevault.com/2019/12/09/Developers-shouldnt-distr...