spctl

Created by Brendan Chamberlain (@infosecB)

Description

Manage the security assessment policy subsystem, Gatekeeper settings, and control which apps are allowed to run on the system.

CreatedTacticsTags
2023-05-23Defense Evasiongatekeeper

Paths

  • /usr/sbin/spctl

Use Cases

Disable Gatekeeper

The –master-disable switch disables Gatekeeper. The command must be run with root/sudo permission.

sudo spctl --master-disable

Detections

Resources