Check Gatekeeper State with spctl --status
See whether Gatekeeper assessments are enabled, and control the master policy switch from the Terminal.
01Command
$ spctl --status02What it does
spctl --status prints 'assessments enabled' or 'disabled', which explains behavior that looks like a bug: a Mac with assessments off silently runs unsigned apps. `spctl --add <path>` can whitelist a specific blocked app without touching the global switch, which is far safer. Apple Silicon Macs additionally require every native binary to be signed, so a disabled Gatekeeper does not remove that check.
03Risk
04Undo
$ sudo spctl --master-enable05Sources
- SPCTL Command: Manage security assessment policy in macOSEvidence: Documents spctl --status, --master-enable, and --master-disable for the Gatekeeper assessment policy.
- Safely open apps on your Mac - Apple SupportEvidence: Apple's guidance on Gatekeeper app-safety checks that spctl reports on and controls.
Last verified: 2026-09-17 · Category: System & Settings
06Related solutions
Check whether an application bundle was signed properly and hasn't been modified since.
List and clear extended attributes — the quarantine flag, Finder tags, and download provenance — on any file.
Build an AES-256 encrypted .dmg vault from the Terminal — no Disk Utility clicking required.