spctl
Manage the security assessment policy subsystem. tldr-pages
On macOS 1 Sigma rule name it
macOS
Manage the security assessment policy subsystem. Utility for managing Gatekeeper in macOS.
Turn off Gatekeeper
spctl --master-disableIdentifyAdd a rule to allow an application to run (labeling of rule is optional)
spctl --add --label rule_name path/to/fileIdentifyTurn on Gatekeeper
spctl --master-enableIdentifyList all rules on the system
spctl --listIdentify