frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Please add min-release-age to your .npmrc

https://www.endorlabs.com/learn/npm-malware-compromises-keyv-and-cacheable-with-500m-weekly-downloads-and-spreads-to-hundreds-of-packages
2•scj13•58m ago

Comments

scj13•58m ago
I'm sure many of you will have seen the latest keyv / cachable compromise and worm-spread, now affecting over 350 packages. This isn't the first, and it won't be the last. The affected packages will steal and exfiltrate any secrets/credentials they can find, which is probably not what you want to happen.

There are several commercial solutions to help protect against this, but if you just add (as standard) to .npmrc in your repo root:

min-release-age=7d (or some value you feel comfortable with)

It will block a lot of malware, which is usually discovered within a few hours.