by foxfired · 1y ago · 0 comments
I just checked one of our repos right now and it has a 981 packages. It's not even realistic to vet the packages or to know which one is compromised. 99% of them are dependencies of dependencies. Where do we even get started?
The first thing I do for all of my projects is adding a .npmrc with save-exact=true
Or setup a caching proxy, whatever is easier for your org. I've had good experience with nexus previously, it's pretty heavy but very configurable, can introduce delays for new versions and check public vulnerability databases for you.
It's purely an efficiency problem though, nothing to do with security, which is covered by lock files.