Comment on NPM Package With 56K Downloads Caught Stealing WhatsApp Messages

<- View Parent
LedgeDrop@lemmy.zip ⁨9⁩ ⁨hours⁩ ago

The way I see it, there are two problems with NPM:

  1. It can blindly run any shell command w/o the developers explicit permission.
  2. Anyone can make an NPM module, and the community is so fractured - common tools/features are not built into the language (or a standard library or a “vetted” community library - like boost for C++)

The first issue might be solvable with things like WebAssembly. Then it’s the developer who gets to decide how far these pm-hooks will reach (both interns of filesystem, network, etc) on a per project basis.

The second will need a shift in community mindset… and all these supply chain attacks are the fuel for that. Unfortunately, it needs to get worse before it’ll get better.

source
Sort:hotnewtop