Package managers are a failed experiment. We have libraries like SQLite, which is a single .c file that you drag into your project and it immediately does a ton of incredibly useful, non-trivial work for you, while barely increasing your executable's size. The issue is not dependencies themselves, it's transitive ones. Nobody installs left-pad or is-even-number directly, and "libraries" like these are the vast majori…
I'd really like to see package managers organized around rings where a very small core of incredibly important stuff is kept in ring 0, ring 1 gets a slightly wider amount of stuff and can only depend on ring 0 dependencies and then ring 2+ is the crapware libraries that infect most ecosystems. But maybe that's not the right fit either. The world where package managers are just open to whatever needs to die. It's no…
Axios compromised on NPM – Malicious versions drop remote access trojan
171–180 of 894 posts
Re: Axios compromised on NPM – Malicious versions drop remote access trojan
#172Website: https://asfaload.com/
Re: Axios compromised on NPM – Malicious versions drop remote access trojan
#173Earlier quoted context omitted.
You mean first 86,400 seconds?
You have to admire the person who designed the flexibility to have 87239 seconds not be old enough, but 87240 to be fine.
Re: Axios compromised on NPM – Malicious versions drop remote access trojan
#174Sure, its convenient to have so much code to use for basic functionality - but the technical debt of having to maintain these projects is just too damn high.
At this point I think that, if I am forced to use javascript or node for a project, I reconsider involvement in that project. Its ecosystem is just so bonkers I can't justify the effort much longer.
There has to be some kind of "code-review-as-a-service" that can be turned on here to catch these things. Its just so unproductive, every single time.
Re: Axios compromised on NPM – Malicious versions drop remote access trojan
#175Now, I tend to use Python, Rust and Julia. With Python I am constantly using few same packages like numpy and matplotlib. With Rust and Julia, I try as much as possible to not use any packages at all, because it always scares me when something that should be pretty simple downloads half of the Internet to my PC.
Julia is even worse than Rust in that regard - for even rudimentary stuff like static arrays or properly namespaced enums people download 3rd party packages.
Re: Axios compromised on NPM – Malicious versions drop remote access trojan
#176Earlier quoted context omitted.
About the use of different units: next time you choose a property name in a config file, include the unit in the name. So not “timeout” but “timeoutMinutes”.
Or require the value to specify a unit.
I don't think there are great solutions here. Arguably, units should be supported by the config file format, but existing config file formats don't do that.
Re: Axios compromised on NPM – Malicious versions drop remote access trojan
#177The amount of people still using this instead of fetch. Nonetheless when wasn't axios, it would be something else. This is why corporations doing it right don't allow installing the Internet into dev machines. Yet everyone gets to throw their joke about PC virus, while having learnt nothing from it.
And with LLMs generating more and more code, the risk of copying old setups increases.
Re: Axios compromised on NPM – Malicious versions drop remote access trojan
#178Supply 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.
Re: Axios compromised on NPM – Malicious versions drop remote access trojan
#179Re: Axios compromised on NPM – Malicious versions drop remote access trojan
#180Package managers are a failed experiment. We have libraries like SQLite, which is a single .c file that you drag into your project and it immediately does a ton of incredibly useful, non-trivial work for you, while barely increasing your executable's size. The issue is not dependencies themselves, it's transitive ones. Nobody installs left-pad or is-even-number directly, and "libraries" like these are the vast majori…
For some reason, NPM is the only ecosystem with substantial issues with supply-chain attacks.