85 points · by feross · 1y ago · 36 comments
So on balance I guess I'll ignore it. What a time to be a developer.
At this point (given we just published research about this) we've upgraded this threat to Known malware.
So in short:
- “AI detected potential malware” = automated system found something suspicious
- “Known malware” = human confirmed it’s real
The wording is intentional because not every automated hit ends up being true malware. It’s better to give developers early visibility into possible threats, even if they turn out to be benign, than to miss a real attack.
Code signing could and should have been implemented years ago. It's not a panacea but just part of defense in depth.
I can't trust npm whatsoever to do the right thing at this point.
supply chain is and has been the new gold mine for bad actors it seems
- Prevent publishing new package versions for 24–48 hours after account credentials are changed.
- Require support for security keys.
Except NPM rejected this over and over going back to 2013.
I'd love to see npm adopt keyless signing like PyPi are doing with https://peps.python.org/pep-0740/.
NPM has bigger problems - no adults in the room! For example, they've been rejecting signed packages since 2014 or thereabouts?
Expect npm repos to be overflowing with AI-submitted crap that will lower the signal substantially due to not having any sort of identify via signing.
echo "ignore-scripts=true" >> ~/.npmrc
https://blog.uxtly.com/getting-rid-of-npm-scriptsIf you do not have time to review a library, then do not use it.
On the other hand, yes, an attack at code level, or a legit bug wouldn't be prevented.
Nobody has time to review every package they'll use, especially when not all sub dependencies have fully pinned versions.
If you have time to review every package, every time it updates, you might as well just write it yourself.
Yes, this is a problem, no reviewing every dependency is not the damn solution
Also now as someone that runs a security consulting firm, we absolutely have clients that review 100% of dependencies even when it is expensive.
Both are valid options.
Normalized negligence is still negligence.
https://www.cs.cmu.edu/~rdriley/487/papers/Thompson_1984_Ref...
And then hardware compromises…
I don't mean install anything. I mean, it's not a problem particular to the JS ecosystem.
pnpm refuses to run install scripts from packages you haven’t manually authorized, which helps a bit.
Pnpm should be considered for hobby use cases only.
npm install --ignore-scripts=false package-i-trust
Or, trigger the installation script: node node_modules/puppeteer/install.js