News for hackers. Stuff that matters.
Re:Node.js packages don't deserve trust by CraigJPerry on Monday April 11, 2022 @11:32AM (#30990195)
>> why is NPM so uniquely absolutely horrible?

I don’t think it’s uniquely bad. For example, Python’s story is just as bad.

The Java world is the best i know of but even relatively modern stacks like Rust are still making the same errors long-solved in the java world.

For example, nothing stops me publishing a google-grpc crate today (first come first served on names and that name’s not taken and i don’t need to prove ownership of my domain like in the java world).

C# and nuget is a blind spot for me so I don’t know. Go gets it right arguably even better than Java. Deno borrows the same decentralised idea.

The whole situation is a stack of cards right now though. I’m genuinely surprised we haven’t seen more specific targeting of high value maintainers. Github is arguably ahead of the curve here a little bit (e.g. the ability to flag and act on unsigned commits).

Re:Node.js packages don't deserve trust by etchalon on Monday April 11, 2022 @11:51AM (#30990494)
I've been working with Python for 15 years and I don't remember any period of constant attacks as I see with NPM. Did I just miss them?
Re:Node.js packages don't deserve trust by CraigJPerry on Monday April 11, 2022 @11:59AM (#30990627)
I guess so - there’s certainly been enough examples of various attacks, from typo squatting and dependency confusion right through to crypto mining and exfiltration of user’s data from their machine.