Comment by yifanl

3 months ago

Asking people to run random install scripts just feels very out of place given the context.

I would agree if this were one of those `curl | sh` scenarios, but don't we consider things like `brew` to be sufficiently low-risk, akin to `apt`, `dnf`, and the like?

  • Anyone can upload an NPM package without much review. For Homebrew, you at least have to submit a pull request.

    • https://docs.brew.sh/Acceptable-Casks#apps-that-bundle-malwa...

      > Unfortunately, in the world of software there are bad actors that bundle malware with their apps. Even so, Homebrew Cask has long decided it will not be an active gatekeeper (macOS already has one) and users are expected to know about the software they are installing. This means we will not always remove casks that link to these apps, in part because there is no clear line between useful app, potentially unwanted program, and the different shades of malware—what is useful to one user may be seen as malicious by another.

      ---

      So there might be pull requests, but Brew's official stance is that they do not actively moderate casks for malware. I guess there's something built into the MacOS packaging step that help mitigate the risk, but I don't know much about it outside playing w/ app development in XCode.

  • > don't we consider things like `brew` to be sufficiently low-risk,

    Like ... npm?

    • Nah…

      Everybody knows npm is a gaping security issue waiting to happen. Repeatedly.

      It’s convenient, so it’s popular.

      Many people also don’t vendor their own dependencies, which would slow down the spread at the price of not being instantly up to date.

      5 replies →

    • I thought getting code into brew is blocked by some vetting (potentially insufficient, which could be argued for all supply chains), whereas getting code into npm involves no vetting whatsoever.

      1 reply →

ripgrep is quite well known. It’s not some obscure tool. Brew is a well-established package manager.

(I get that the same can be said for said for npm and the packages in question, but I don’t really see how the context of the thread matters in this case).