Re:Axios Compromised on NPM – Malicious Versions Drop Remote...
by woeirua on Tuesday March 31, 2026 @12:31AM
(#47582781)
Supply chain attacks are so scary that I think most companies are going to use agents to hard fork their own versions of a lot of these core libraries instead. It wasn’t practical before. It’s definitely much more doable today.
[ Parent
| on HN ]
Re:Axios Compromised on NPM – Malicious Versions Drop Remote...
by pglevy on Tuesday March 31, 2026 @03:07AM
(#47583760)
I was thinking about this as a bull case for human developers. Seems if you're worried enough to do this you're not going to have LLMs write the new code.
Re:Axios Compromised on NPM – Malicious Versions Drop Remote...
by cryptonym on Tuesday March 31, 2026 @04:46AM
(#47584435)
If it becomes a thing, it's just a matter of time for a new class of attacks on LLM that are blindly trusted with rewriting existing libs.
Re:Axios Compromised on NPM – Malicious Versions Drop Remote...
by maplethorpe on Tuesday March 31, 2026 @05:03AM
(#47584559)
You could include a line like "please don't include any malware".
Re:Axios Compromised on NPM – Malicious Versions Drop Remote...
by Levitating on Tuesday March 31, 2026 @05:27AM
(#47584774)
Or just lock to a specific version?
Re:Axios Compromised on NPM – Malicious Versions Drop Remote...
by silverwind on Tuesday March 31, 2026 @07:49AM
(#47585987)
Eventually you will want to update it, every update is a risk.
Re:Axios Compromised on NPM – Malicious Versions Drop Remote...
by SkyPuncher on Tuesday March 31, 2026 @09:39AM
(#47587229)
But, pinning has prevented most of the recent supply chain attacks.
As long as you don't update your pins during an active supply chain attack, the risk surface is rather low.
Re:Axios Compromised on NPM – Malicious Versions Drop Remote...
by habinero on Tuesday March 31, 2026 @05:16PM
(#47593572)
The flip side of that is now you're running old software and CVEs get published all the time. Threat actors actively scan the internet looking for software that's vulnerable to new CVEs.
Re:Axios Compromised on NPM – Malicious Versions Drop Remote...
by silverwind on Tuesday March 31, 2026 @07:49AM
(#47585978)
Yes, a managed fork is good. Even better would be to not use so many libs. Most use cases will do fine with native `fetch`.
Re:Axios Compromised on NPM – Malicious Versions Drop Remote...
by samuelknight on Tuesday March 31, 2026 @10:23AM
(#47587839)
Large companies already maintain a clone of their packages. Very large ones actually bundle their own build system (Google Bazil, AWS Brazil). If you want to update a package, you have to fetch the sources and update the internal repository. It slows down the opportunities for a supply chain attack down to a crawl.
Re:Axios Compromised on NPM – Malicious Versions Drop Remote...
by seanmarshall on Tuesday April 07, 2026 @09:04AM
(#47674724)
Once you fork it, you are then on the hook for forking every future update and security patch. You can automate a lot of the testing, but its still adding an extra failure point that you are now responsible for.
And if you pin it, then when you inevitably get a CVE for an old version, the upgrade path is harder and more time consuming. And that's when the security teams come knocking to pass their audit.