News for hackers. Stuff that matters.
Re:A web of trust for NPM by marcus_holmes on Sunday October 04, 2020 @08:47AM (#24678626)
Is there anything stopping a dev dependency from injecting malicious code into your app?
Re:A web of trust for NPM by striking on Sunday October 04, 2020 @11:28AM (#24679722)
Yeah, it's called pinning. When you use yarn or npm, they generate a lock file that pins the exact state of your downloaded set of node modules, so you can't accidentally download a different set of artifacts that might be poisoned.

As for "but what if they hide it?" that's just a problem with compilers. A very "Reflections on Trusting Trust" sort of thing. I'm usually a few versions behind, so if anything like that were to exist it would have been caught by someone else.

Re:A web of trust for NPM by johnisgood on Monday October 05, 2020 @08:34AM (#24687129)
For people who may want to read more about the " Reflections on Trusting Trust": https://www.win.tue.nl/~aeb/linux/hh/thompson/trust.html and https://wiki.c2.com/?TheKenThompsonHack.