In addition to rules, Santa can allow or block based on scopes. Currently, only a few scopes are implemented. Scopes are evaluated after rules, with block evaluation preceding allow.
Scopes are a broader way of allowing or blocking
For configuration of scopes see configuration.md.
|Blocked Path Regex||Yes|
|Allowed Path Regex||Yes|
|Not a Mach-O||No|
As seen above, Santa will allow any non Mach-O binary under an allow scope.
However, a blocked path regex or binary SHA-256 rule can be used to block non
execve()s since they are evaluated before the allow scope.
The paths covered by the allowed path and blocked path regex patterns are not
tracked. If an
execve() is allowed initially, then moved into a blocked
directory, Santa has no knowledge of that move. Since
decisions, the recently moved file will continue to be allowed to
even though it is now within a blocked path. The cache holds “allow” decisions
until invalidated and block decisions for 500 milliseconds. Going from a blocked
path to an allowed path is not largely affected.