Incredible uptick in supply chain attacks over the last few weeks. I feel like npm specifically needs to up their game on SA of malicious code embedded in public projects.
NPM is designed to let you run untrusted code on your machine. It will never work. There is no game to step up. It's like asking an ostrich to start flying.
Post Mortem: axios NPM supply chain compromise
11–20 of 165 posts
Re: Post Mortem: axios NPM supply chain compromise
#12Does OIDC flow block this same issue of being able to use a RAT to publish a malicious package?
Re: Post Mortem: axios NPM supply chain compromise
#13Earlier quoted context omitted.
NPM is designed to let you run untrusted code on your machine. It will never work. There is no game to step up. It's like asking an ostrich to start flying.
It’s far from a complete solution, but to mitigate this specific avenue of supply chain compromise, couldn’t Github/npm issue single-purpose physical hardware tokens and allow projects (or even mandate, for the most popular ones) maintainers use these hardware tokens as a form of 2FA?
Edit: wait, did the attacker intercept the totp code as it was entered? Trying to make sense of the thread
Re: Post Mortem: axios NPM supply chain compromise
#14Re: Post Mortem: axios NPM supply chain compromise
#15Earlier quoted context omitted.
It’s far from a complete solution, but to mitigate this specific avenue of supply chain compromise, couldn’t Github/npm issue single-purpose physical hardware tokens and allow projects (or even mandate, for the most popular ones) maintainers use these hardware tokens as a form of 2FA?
What would a physical token give you that totp doesn't? Edit: wait, did the attacker intercept the totp code as it was entered? Trying to make sense of the thread
Re: Post Mortem: axios NPM supply chain compromise
#16Any good payload analysis been published yet? Really curious if this was just a one and done info stealer or if it potentially could have clawed its way deeper into affected systems.
Re: Post Mortem: axios NPM supply chain compromise
#17The interesting detail from this thread is that every legitimate v1 release had OIDC provenance attestations and the malicious one didn't, but nobody checks. Even simpler, if you're diffing your lockfile between deploys, a brand new dependency appearing in a patch release is a pretty obvious red flag.
Re: Post Mortem: axios NPM supply chain compromise
#18NPM rejected PRs to support optional signing multiple times more than a decade ago now, and this choice has not aged well.
Anyone that cannot take 5 minutes to set up commit signing with a $40 usb smartcard to prevent impersonation has absolutely no business writing widely depended upon FOSS software.
Normalized negligence is still negligence.
Re: Post Mortem: axios NPM supply chain compromise
#19I ask this on every supply chain security fail: Can we please mandate signing packages? Or at least commits? NPM rejected PRs to support optional signing multiple times more than a decade ago now, and this choice has not aged well. Anyone that cannot take 5 minutes to set up commit signing with a $40 usb smartcard to prevent impersonation has absolutely no business writing widely depended upon FOSS software. Normaliz…
Re: Post Mortem: axios NPM supply chain compromise
#20The next incarnation of this, I worry, is that the malware hibernates somehow (e.g., if (Date.now() ) to maximize the damage.