This sort of attack happened before (on a smaller scale) earlier this year. Until the npm maintainers actually start caring just a bit about security, these attacks will keep coming.
There are a whole lot of ways to improve on package hi jacking and malware in the npm package archives, to just name some recent issues.
Thus far the npm devs haven’t shown much interest in properly security related issues. Maybe it’s time to fix this in a better package and not wait for npm devs to fix it. (Just a wild thought)
3
u/bjpbakker Nov 27 '18
This sort of attack happened before (on a smaller scale) earlier this year. Until the npm maintainers actually start caring just a bit about security, these attacks will keep coming.