The Cybermatic Signal · Fix-it Guides · Devices · macOS
← All guides · Time to fix: 5 minutes per device · macOS
Gatekeeper is the macOS mechanism that checks every app against Apple's malware assessments before it opens — if it is turned off, that check never happens and anything can run. It is most commonly disabled on developer machines or after someone followed bad advice online to "fix" an app that wouldn't open. Re-enabling it takes under five minutes.
The fix, verified
Gatekeeper disabled
| Severity | high · macOS |
| Where to click | System Settings → Privacy & Security → allow apps from 'App Store and identified developers'. |
| Or run | sudo spctl --master-enable |
| Maps to | CIS macOS 2.6.1.4SOC2 CC6.8 |
When a user double-clicks an app, Gatekeeper checks whether it was signed by an identified Apple developer and, for apps distributed outside the App Store, whether Apple has notarized it — meaning Apple scanned it for known malware. If Gatekeeper is disabled, that check is skipped entirely. Any executable, regardless of origin, runs with the permissions the user has at that moment.
A realistic scenario: an employee downloads what looks like a free PDF converter from a search result. The file is a signed-looking disk image containing an unsigned binary. With Gatekeeper on, macOS would block it and prompt the user. With Gatekeeper off, it opens silently, installs a credential-harvesting agent in the user's login items, and starts exfiltrating saved browser passwords. Nothing in the download flow looked unusual to the user.
Open Terminal and run the following command. If the output is 'assessments disabled', Gatekeeper is off on that machine.
You can also check visually: go to System Settings → Privacy & Security and look at the 'Allow applications downloaded from' section. If the setting is absent or grayed out with no option selected, Gatekeeper has likely been disabled via the command line and the UI alone will not show you the full picture — use the Terminal check.
There are two ways to re-enable Gatekeeper. Use whichever fits your situation.
Option 1 — System Settings (no admin Terminal access needed): Open System Settings → Privacy & Security, scroll to the 'Allow applications downloaded from' section, and select 'App Store and identified developers'. You may be prompted for your administrator password.
Option 2 — Terminal (works even when the UI option is missing or grayed out):
sudo spctl --master-enable
Enter your administrator password when prompted. Run 'spctl --status' again to confirm the output now reads 'assessments enabled'.
Re-enabling Gatekeeper will cause any unsigned or unnotarized apps already on the machine to be blocked the next time a user tries to open them. This is the intended behavior, but it can surprise people. Common culprits are older internal tools, niche industry software, and apps installed from developer builds. Before you push this change broadly, audit which apps are in use. For any legitimate app that gets blocked, the user will see a dialog; an administrator can approve that specific app by going to System Settings → Privacy & Security and clicking 'Open Anyway' within 30 minutes of the blocked attempt, or by running 'sudo spctl --add /path/to/app' for a permanent per-app exception. Do not disable Gatekeeper system-wide just to accommodate one app.
A determined local administrator can turn Gatekeeper off again with a single command, so a one-time fix is not enough. If you manage Macs with an MDM such as Jamf Pro, Mosyle, or Kandji, deploy a configuration profile that enforces the Gatekeeper setting under the Security & Privacy payload — this prevents users and scripts from disabling it without MDM removal. If you do not have MDM, add a periodic check to your maintenance routine: run 'spctl --status' on each machine monthly, or use a script that alerts you if the output is not 'assessments enabled'. CIS macOS Benchmark 2.6.1.4 and SOC 2 CC6.8 both require this control, so if you are working toward either standard, document the check and its results.
No. Gatekeeper only checks apps at launch time, not retroactively. Apps already on your machine stay in place; they will just be assessed the next time someone tries to open them, and unsigned ones will be blocked at that point.
Open System Settings → Privacy & Security within about 30 minutes of the blocked attempt and click 'Open Anyway' next to the app name. Alternatively, an administrator can run 'sudo spctl --add /path/to/app' in Terminal to add a permanent exception for that app without disabling Gatekeeper globally.
Disabling Gatekeeper via Terminal requires administrator credentials, so a standard user account cannot do it. However, anyone with a local admin account can. Using MDM to enforce the setting is the most reliable way to prevent unauthorized changes.
Is this open in your environment?
Cybermatic checks for "Gatekeeper disabled" automatically — on every device, every day — and shows you the exact fix above next to each one it finds. The free scan takes about ten minutes and needs no credit card.
Run the free scan All guides →Part of The Cybermatic Signal. Written by the Cybermatic editorial agent from the configuration check Cybermatic runs for this setting (ID mac-gatekeeper) and reviewed before publication. The click path, command and caution in the fix card are the vendor's documented procedure as of 2026-12-02. Found an error? Write to info@cybermatic.ai.
BriefingIssuesFlashGuidesInsurance checkDomain checkSubscribe
Cybermatic.ai by Ironhawk Group · 9330 Lyndon B Johnson Fwy, Suite 900 · Dallas, TX 75243 · Privacy · cybermatic.ai