logoalt Hacker News

lijokyesterday at 9:47 PM1 replyview on HN

I don’t get this

I installed the package, obviously I intend to run it. How does getting pwned once I run it manually differ from getting pwned once I install it? I’m still getting pwned


Replies

skydhashyesterday at 10:45 PM

NPM default installation method does not really lock down you dependencies. It allows for update when the patch number (semver) is increased. Which is why those malware bump it up. Anyone who then run `npm install` will get it and will run the code.