Check Gatekeeper State with spctl --status

See whether Gatekeeper assessments are enabled, and control the master policy switch from the Terminal.

macOSGatekeeperspctlsecurityMedium risk
Run `spctl --status` to show Gatekeeper state; `sudo spctl --master-enable` re-enables assessments after disabling.

01Command

Command
$ spctl --status

02What 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

RiskMedium risk
!Warning: Avoid --master-disable: it lowers protection for every app, not just the one causing trouble.

04Undo

Undo
$ sudo spctl --master-enable

05Sources

Last verified: 2026-09-17 · Category: System & Settings

06Related solutions