New day, new npm malware. Sigh..
Shai-Hulud malware attack: Tinycolor and over 40 NPM packages compromised
11–20 of 1001 posts
Re: Shai-Hulud malware attack: Tinycolor and over 40 NPM packages compromised
#12We've seen many reports of supply chain attacks affecting NPM. Are these symptoms of operational complexity, which can affect any such service, or is there something fundamentally wrong with NPM?
It's just where the users and the juicy targets are. NPM packages are used by huge Electron apps like Discord, Slack, VS Code, the holy grail would be to somehow slip something inside them.
Re: Shai-Hulud malware attack: Tinycolor and over 40 NPM packages compromised
#13How many tokens do you have lying around in your home directory in plain text, able to be read by anything on your computer running as your user?
Re: Shai-Hulud malware attack: Tinycolor and over 40 NPM packages compromised
#14Is there a theoretical framework that can prevent this from happening? Proof-carrying code?
Stuff like intents "this is a math library, it is not allowed to access the network or filesystem".
At a higher level, you have app sandboxing, like on phones or Apple/Windows store. Sandboxed desktop apps are quite hated by developers - my app should be allowed to do whatever the fuck it wants.
Re: Shai-Hulud malware attack: Tinycolor and over 40 NPM packages compromised
#15Re: Shai-Hulud malware attack: Tinycolor and over 40 NPM packages compromised
#16Is there a theoretical framework that can prevent this from happening? Proof-carrying code?
When declaring dependencies, you'd also declare the permissions of those dependencies. So a package like `tinycolor` would never need network or disk access.
Re: Shai-Hulud malware attack: Tinycolor and over 40 NPM packages compromised
#17We've seen many reports of supply chain attacks affecting NPM. Are these symptoms of operational complexity, which can affect any such service, or is there something fundamentally wrong with NPM?
It's just where the users and the juicy targets are. NPM packages are used by huge Electron apps like Discord, Slack, VS Code, the holy grail would be to somehow slip something inside them.
It's the new pragmatic choice for web apps and so it's everyone is using it, from battle hardened teams to total noobs to people who just don't give a shit. It reminds me of Wordpress from 10 years ago, when it was the goto platform for cheap new websites.
Re: Shai-Hulud malware attack: Tinycolor and over 40 NPM packages compromised
#18I knew npm was a train wreck when I first used it years ago and it pulled in literally hundreds of dependencies for a simple app. I avoid anything that uses it like the plague.
Re: Shai-Hulud malware attack: Tinycolor and over 40 NPM packages compromised
#19Is there a theoretical framework that can prevent this from happening? Proof-carrying code?
Clojars (run by volunteers AFAIK) been doing signatures since forever, not sure why it's so difficult for Microsoft to follow their own yearly proclamation of "security is our top concern".
Re: Shai-Hulud malware attack: Tinycolor and over 40 NPM packages compromised
#20We've seen many reports of supply chain attacks affecting NPM. Are these symptoms of operational complexity, which can affect any such service, or is there something fundamentally wrong with NPM?
I would argue that is only one of the many issues with the JS/TS/NPM ecosystem. Many of the other problems have been normalized. The constant security issues are highly visible.