Someone recommended this to me on another thread and tried it yesterday and it seems very good:
Also I find the irony goes hard in their recommendation of installing another attack surface (brew) on Linux and missing the point.
their blog: https://safedep.io/dynamic-analysis-oss-package-at-scale/