Earlier quoted context omitted.
One that gets me 90% there would take me few hours, one that gets me 99% there few months, which is why eventually people would rather pull a dependency.
Or about 15 minutes with an LLM? https://github.com/williamcotton/markdown-to-html-llm ;)
Shai-Hulud malware attack: Tinycolor and over 40 NPM packages compromised
141–150 of 1001 posts
Re: Shai-Hulud malware attack: Tinycolor and over 40 NPM packages compromised
#142When the left-pad debacle happened, one commenter here said of a well known npm maintainer something to the effect of that he's an "author of 600 npm packages, and 1200 lines of JavaScript". Not much has changed since then. The best counter-example I know is esbuild, which is a fully featured bundler/minifier/etc that has zero external dependencies except for the Go stdlib + one package maintained by the Go project i…
Re: Shai-Hulud malware attack: Tinycolor and over 40 NPM packages compromised
#143> Shai Hulud Clever name... but I would have expected malware authors to be a bit less obvious. They literally named their giant worm after a giant worm. > At the core of this attack is a ~3.6MB minified bundle.js file Yep, even malware can be bloated. That's in the spirit of NPM I guess...
Re: Shai-Hulud malware attack: Tinycolor and over 40 NPM packages compromised
#144Earlier quoted context omitted.
AFAICT, the only thing this attack relies on, is the lack of scrutiny by developers when adding new dependencies. Unless this lack of scrutiny is exclusive to JavaScript ecosystem, then this attack could just as well have happened in Rust or Golang.
JavaScript does have some pretty insane dependency trees. Most other languages don’t have anywhere near that level of nestedness.
Re: Shai-Hulud malware attack: Tinycolor and over 40 NPM packages compromised
#145Earlier quoted context omitted.
as much as i can yes. I try to avoid JS, as it is a horrible language, by design. That does include TS, but it at least is useable, but barely - because it still tied to JS itself.
Lucky you. I keep coming back to it because jobs and even for desktop apps a native webview beats everything else. We fcked up with js, big time and its with us forever now
Re: Shai-Hulud malware attack: Tinycolor and over 40 NPM packages compromised
#146I'm coming to the unfortunate realizattion that supply chain attacks like this are simply baked into the modern JavaScript ecosystem. Vendoring can mitigate your immediate exposure, but does not solve this problem. These attacks may just be the final push I needed to take server rendering (without js) more seriously. The HTMX folks convinced me that I can get REALLY far without any JavaScript, and my apps will probab…
Re: Shai-Hulud malware attack: Tinycolor and over 40 NPM packages compromised
#147Re: Shai-Hulud malware attack: Tinycolor and over 40 NPM packages compromised
#148My posts way before the issue was created: https://news.ycombinator.com/item?id=45252940 https://www.linkedin.com/posts/daniel-pereira-b17a27160_i-ne...
Re: Shai-Hulud malware attack: Tinycolor and over 40 NPM packages compromised
#149post-install seems like it shouldn't be necessary anyway, let alone need shell access. What are legitimate JS packages using this for?
Modern node package managers such as yarn and pnpm allow you to prevent post installs entirely.
Today most of the time you need to make an exception for a package is when a module requires native compilation or download of a pre-built binary. This has become rare though.