4 ms·
Why don’t I hear about npm package attack vectors more often? I’d expect it to be super common
by maddyboo 5y ago
Why don’t I hear about npm package attack vectors more often? I’d expect it to be super common
- Etheryte 5y agoMy guess is that it's a two-tier process. For one, in many ways, NPM packages are kind-of winner takes all type of a setup where a narrow circle of packages accounts for most of the installs. This leads to more eyes on them, but I would say this is secondary to the following point. Most of the time, when a package is either added or updated, someone technical, usually a developer, is staring at their terminal, browser dev tools, and/or dozens of other things. If something fishy was aloof, the chances of it being noticed are considerably higher than in a regular user-computer interaction. Add automated scanning employed by Github, NPM and others to the mix, and I'd say that's the answer. Clearly it can happen since it has, but every time it does happen, the space for shenanigans grows narrower.