trailofbits / sinter

A user-mode application authorization system for MacOS written in Swift
https://blog.trailofbits.com/2020/08/12/sinter-new-user-mode-security-enforcement-for-macos/
GNU Affero General Public License v3.0
301 stars 15 forks source link

More 'allowed_application_directories' in config.json #99

Closed JayBrown closed 4 years ago

JayBrown commented 4 years ago

Please note: this is just a proposal; however, I do believe that at the very least /sbin should be added to the list.

Missing:

Subdirectories missing in /usr/local:

Support for Homebrew:

Support for specific locations incl. subdirectories in system default /opt path:

Support for (a) system default app location (NSAllDomainsMask > NSAllApplicationsDirectory) and for (b) system default library locations (NSAllDomainsMask > NSAllLibrariesDirectory) in:

FURTHER PATHS NOT (YET) ADDED (with explanations)

CLAassistant commented 4 years ago

CLA assistant check
All committers have signed the CLA.

alessandrogario commented 4 years ago

Hello @JayBrown

it does make sense to include the list of paths you added to the configuration file, thanks for updating it!

JayBrown commented 4 years ago

There's another problem: several apps tend to update while launching "intermediate" processes from /private/tmp or some folder nested in the user library etc. But I think there has to be a limit to how many execution paths you allow. At some point it has to be manged by the individual sys admin, which paths he will add to the default ones.