What Is macOS Gatekeeper? Security Explained
In this article
macOS Gatekeeper is a built-in security feature in Apple's macOS operating system that verifies downloaded apps before they run, blocking software that hasn't been signed by an Apple-approved developer or notarized by Apple. It's the reason you sometimes see a warning like “““App” can't be opened because Apple cannot check it for malicious software” when you try to open a downloaded program. Gatekeeper works quietly in the background, and understanding it helps you know why some apps open instantly while others trigger a warning or refuse to launch.
What Gatekeeper Actually Does
Gatekeeper checks two things when you launch an app downloaded from the internet: the app's code signature and its notarization status. A code signature is a cryptographic stamp that proves the app hasn't been tampered with since the developer built it. Notarization is a separate Apple service that scans the app for known malware before it's distributed. If both checks pass, the app runs normally. If either fails, macOS blocks it or shows a warning.
Gatekeeper is not an antivirus scanner in the traditional sense. It doesn't continuously watch for malware after an app is installed. Instead, it acts as a gate at the entrance: it checks the app's identity and safety status at launch time. Once an app passes, Gatekeeper doesn't re-scan it every time you open it (though macOS does re-check notarization periodically).
Where the Name Comes From
The term “gatekeeper” is standard English, not slang. It describes a person or thing that controls access to something—like a gatekeeper at a castle or a hotel doorman. Apple adopted the word in 2012 with the release of OS X Mountain Lion, naming the feature Gatekeeper because it literally controls the gate between the internet and your Mac. The name stuck and is now used in Apple's documentation, system settings, and support pages. It's a deliberate, descriptive product name, not informal jargon.
How Gatekeeper Works in Practice
When you download an app using Safari, Chrome, or another browser, macOS attaches a quarantine attribute to the file. This attribute tells Gatekeeper that the file came from the internet and needs to be checked. When you first double-click the app, Gatekeeper performs the following steps:
- Checks whether the app is signed with a Developer ID certificate issued by Apple.
- Verifies the signature is valid and hasn't been revoked.
- Checks whether the app has been notarized by Apple (this includes a malware scan).
- If all checks pass, launches the app normally.
- If any check fails, shows a warning or blocks the launch.
If you right-click (or Control-click) an app and select “Open” from the context menu, you can sometimes bypass a warning for a signed but not notarized app. This is a one-time override, not a permanent exception. For unsigned apps, you may need to go to System Settings > Privacy & Security and click “Open Anyway” in the Security section. Note that menu labels can vary slightly by macOS version.
How to Adjust Gatekeeper Settings
Gatekeeper's settings are found in System Settings (or System Preferences on older macOS versions) under Privacy & Security. The main option is “Allow applications downloaded from:” with choices like “App Store” and “App Store and identified developers.” The latter is the default and allows apps from the App Store plus apps signed and notarized by Apple-identified developers. You can also choose “App Store” only, which restricts installation to the Mac App Store exclusively.
There is no official toggle to turn Gatekeeper off entirely in modern macOS. Some older versions had an “Anywhere” option, but Apple removed it. If you need to run an unsigned app, you use the right-click or “Open Anyway” method, which is the intended workaround. Disabling Gatekeeper via terminal commands (like spctl --master-disable) is possible but not recommended, as it weakens your Mac's security and is not a supported configuration.
Common Gatekeeper Warnings and What They Mean
You'll likely encounter a few different Gatekeeper messages. Here's what they actually mean:
- ““App” can't be opened because Apple cannot check it for malicious software.” This means the app is signed but not notarized, or its notarization is outdated. You can right-click and select Open to run it if you trust the source.
- ““App” is damaged and can't be opened.” This usually means the app's signature is invalid or the file was corrupted during download. Re-download the app from the official source.
- ““App” can't be opened because the developer cannot be verified.” This appears for apps that are signed but the developer hasn't gone through Apple's notarization process. Right-click and Open can bypass it.
- ““App” can't be opened because Apple could not verify it contains no malware.” This is a more serious warning, often indicating the app failed notarization. It's safer not to run it.
If you see a warning and you're unsure about the app's legitimacy, the safest move is to delete it and download from the developer's official website instead.
Gatekeeper vs. Full Disk Access and Other macOS Protections
Gatekeeper is just one layer of macOS security, and it's often confused with other features. Full Disk Access is a privacy control that lets apps access files like Documents, Desktop, and Downloads—it's separate from Gatekeeper. XProtect is Apple's built-in antivirus engine that scans for known malware, and it works alongside Gatekeeper. Notarization is the process that feeds into Gatekeeper's checks. Understanding the difference helps you troubleshoot: if an app won't open due to Gatekeeper, it's a signature/notarization issue; if it opens but can't access your files, it's a Full Disk Access issue.
Gatekeeper on Macs with Apple Silicon
On Macs with Apple Silicon (M1, M2, M3, etc.), Gatekeeper works the same way, but there's an additional requirement: all apps must be signed and notarized to run natively. This is because Apple Silicon Macs enforce stricter code signing requirements. If you try to run an unsigned app, you'll get a clear warning that the app can't be opened. The right-click and Open method still works for signed but not notarized apps, but unsigned apps are more difficult to run. This is by design to prevent malware from running on the new architecture.
Frequently Asked Questions
How do I open an app that Gatekeeper blocks?
Right-click (or Control-click) the app icon and select “Open” from the menu. A dialog will appear asking you to confirm that you want to open it. This works for apps that are signed but not notarized. For unsigned apps, go to System Settings > Privacy & Security and click “Open Anyway” next to the app's name in the Security section. This option appears only after you've tried to open the app and it was blocked.
Is it safe to bypass Gatekeeper?
Bypassing Gatekeeper is safe only if you trust the developer and the source of the file. The warning exists because the app hasn't been verified by Apple. If you downloaded the app from a reputable developer's official website, it's likely fine. If you got it from a random website or email attachment, it's risky. Always verify the developer's website and check for other users' reviews.
Can I completely disable Gatekeeper?
There's no supported way to turn Gatekeeper off completely in modern macOS. The “Anywhere” option was removed years ago. You can use terminal commands to disable it, but that's not recommended because it leaves your Mac vulnerable to malware. The right-click and Open method is the intended way to run apps that aren't notarized.
Why does Gatekeeper say an app is damaged when it's not?
This usually happens when the app's code signature is invalid or the file was corrupted during download. It can also occur if the app was modified after download. Try downloading the app again from the official source. If the problem persists, the app may have been tampered with, and you should avoid it.
Does Gatekeeper scan apps for viruses?
Gatekeeper itself doesn't scan for viruses, but it checks whether an app has been notarized by Apple. Notarization includes a malware scan by Apple's XProtect engine. So, indirectly, Gatekeeper does block known malware by refusing to run apps that haven't passed notarization. However, it's not a real-time antivirus; it's a one-time check at launch.
Does Gatekeeper apply to apps from the Mac App Store?
No, apps from the Mac App Store are already signed and notarized by Apple, so they bypass Gatekeeper's checks entirely. Gatekeeper only applies to apps downloaded from the internet outside the App Store.