by always_good · 8y ago · 0 comments
You pitch a really good one: Any time you npm update/install, display ownership changes (especially compared to your prev version).
Another one is to show the source code on the NPM website itself instead of hiding it in a tarball. NPM basically trains people to assume the published code == the code at the linked repository. It's a hacky honor system that only helps attackers.