Re:Popular GitHub Action tj-actions/changed-files is comprom...
by theamk on Saturday March 15, 2025 @06:43PM
(#43375635)
I don't think it would help in this case, when the entire process can be replaced with malicious version. It just won't make the Capscium call.
What you really want is something external and easily inspectable, such as systemd per-service security rules, or flatpak sandboxing. Not sure if FreeBSD has somethingike this.
To help with things that can't be done in the sandbox, e.g. DNS lookups and opening new files, it provides the libcasper library which implements them using helper processes.
Not all utilities are sandboxed, but some are and hopefully more will be.
Linux recently added Landlock [1] which seems sort of similar, although it has rulesets and doesn't seem to block everything by default, as far as I can tell from quickly skimming the docs.
[0] https://wiki.freebsd.org/Capsicum
[1] https://docs.kernel.org/userspace-api/landlock.html