News for hackers. Stuff that matters.
Re:Malware found on NPM infecting local package with reverse... by fc417fc802 on Wednesday March 26, 2025 @06:15PM (#43488070)
> Wild West open-source repos

There's a deeper issue though. I frequently have difficult getting things to build from source in a network isolated environment. That's after I manually wrangle all the dependencies (and sub-deps, and sub-sub-deps, and ...).

Even worse is something like emscripten where you are fully expected to run `npm install`.

Any build process that depends on network access is fundamentally broken as far as I'm concerned.

Re:Malware found on NPM infecting local package with reverse... by no_wizard on Wednesday March 26, 2025 @06:19PM (#43488109)
Which is nearly all of them, except perhaps C/C++, that I can think of, in terms of languages broadly adopted

You can cache and/or emulate the network to go offline but fundamentally a fresh build in most languages will want to hit a network at least by default

Re:Malware found on NPM infecting local package with reverse... by robinsonb5 on Wednesday March 26, 2025 @06:59PM (#43488451)
In my world (VHDL/Verilog and some C/C++) there's a difference between the "fetch" and "build" steps. It's perfectly reasonable for the fetch step to require network access; the build step should not.

The real problem is that some language ecosystems conflate those two steps.

Re:Malware found on NPM infecting local package with reverse... by fc417fc802 on Wednesday March 26, 2025 @07:03PM (#43488481)
I'm mostly on board with that dichotomy except that I think it's also important that all fetched artifacts either come from a VCS or are similarly cryptographically versioned and all historical versions made available in a reliable manner.
Re:Malware found on NPM infecting local package with reverse... by robinsonb5 on Wednesday March 26, 2025 @07:10PM (#43488545)
Yes, absolutely - I can't disagree with that.
Re:Malware found on NPM infecting local package with reverse... by fc417fc802 on Wednesday March 26, 2025 @06:59PM (#43488455)
> at least by default

Even in C/C++ after changing the relevant parameters to non-default values things often break. It seems those configurations often go untested.

Google managed repos are a nice exception to this. Clearly documented commit hashes for all dependencies for a given release.