Homebrew is heavily sandboxed and has been using the macOS sandbox for the best part of a decade, long before many other package managers did.

We also offer a .pkg installer and other installation options so curl | bash not needed for install that either.

TIL! Thank you :)

I’ll take a look then, as I am unsure how sandboxing will interact with this system since it does a few unusual things