Live data from Hacker News

Malicious crossenv package on npm

twitter.com

11–20 of 237 posts

Re: Malicious crossenv package on npm

#11

nodejs lack-of-QA comes back to bite them in the ass yet again. wasn't the first time nor will it be the last time, ditch this bullshit.

Explain to me how "QA" prevents a malicious package from transitively including another one and taking advantage of typo squatting.

Re: Malicious crossenv package on npm

#12

This is something I've always been concerned about with the node/NPM environment. Any project, even the smallest ones, have hundreds of dependencies. All it takes is some small lines of rogue code, and your entire project is vulnerable. Especially in JS, where you can do network requests and various critical actions all in one line of code.

The `left-pad` debacle a year ago[0] should've served as a wake up call to people writing projects with hundreds of dependencies.

[0]: http://left-pad.io

Re: Malicious crossenv package on npm

#13

This is serious stuff and we will definitely see more of it in the future! As there are more and more node.js developers, it will be more profitable to run a scam like this and you only need to hijack one page that has a lot of dependencies, one package that is for example used by `express` to get access to a lot of users. The only thing you can do is be careful and listen for projects like node security.

Or use some other technology.

There are remarkably few dependency management systems not vulnerable to some variant of this attack.

Re: Malicious crossenv package on npm

#14

This is something I've always been concerned about with the node/NPM environment. Any project, even the smallest ones, have hundreds of dependencies. All it takes is some small lines of rogue code, and your entire project is vulnerable. Especially in JS, where you can do network requests and various critical actions all in one line of code.

The `left-pad` debacle a year ago[0] should've served as a wake up call to people writing projects with hundreds of dependencies. [0]: http://left-pad.io

It's next to impossible for the average team to avoid hundreds of dependencies as their project grows though. You could write your own everything, but then what's the benefit of the node ecosystem?

Edit: spelling

Re: Malicious crossenv package on npm

#16
post #2

This is important. It looks like the organization is submerging; they've deleted their NPM account and the package and emptied their GitHub repo. This should be signal boosted as hard as it can be managed, because this is rough stuff.

What can be done to help sort problems like this?

Gardens. With gardeners. And walls.

Re: Malicious crossenv package on npm

#17
post #11

nodejs lack-of-QA comes back to bite them in the ass yet again. wasn't the first time nor will it be the last time, ditch this bullshit.

Explain to me how "QA" prevents a malicious package from transitively including another one and taking advantage of typo squatting.

QA prevents someone from adding a typo to the repository.

Re: Malicious crossenv package on npm

#18
post #11

Earlier quoted context omitted.

Explain to me how "QA" prevents a malicious package from transitively including another one and taking advantage of typo squatting.

QA prevents someone from adding a typo to the repository.

Your QA teams are looking up every entry in your package.json files, your Maven poms, your Gemfiles, your requirements.txt files? They're making sure that something that builds completely cleanly and shows no external errors doesn't have a typo in it?

Of course they're not.

Post reply on HN