MT.1215 - Ensure Gatekeeper restricts macOS app download locations
Overviewβ
Ensure macOS devices are restricted to trusted app download locations by Gatekeeper.
Gatekeeper decides which app download locations are permitted on macOS. Intune can address it two ways, and this check credits either:
- A macOS compliance policy evaluates the device's current Gatekeeper state and marks the device non-compliant if it is looser than required, which feeds Conditional Access.
- A macOS configuration policy pushes the
com.apple.systempolicy.controlpayload, enforcing the setting on the device rather than merely observing it. The macOS endpoint protection template is deprecated, so this is authored in the settings catalog under System Policy Control.
The compliance policy exposes it as Allow apps downloaded from these locations, with three meaningful states:
- Mac App Store - only App Store apps may run. The most restrictive option.
- Mac App Store and identified developers - App Store apps plus apps signed by a developer whose identity Apple has verified and notarized. The practical baseline for most organizations.
- Anywhere - any app from any source may run, including unsigned binaries. This is the least secure setting, and Apple removed it from the macOS user interface for good reason.
When the setting is left as Not configured, Gatekeeper has no effect on the compliance verdict at all, so a Mac whose user has allowed apps from anywhere is still reported as compliant.
Unrestricted app sources are a direct initial-access path. Unsigned or ad-hoc signed binaries delivered by phishing or a drive-by download execute without Gatekeeper objection, which is how macOS infostealers such as Atomic Stealer are routinely installed. Restricting the allowed source breaks that chain at execution.
On the configuration side, two payload keys matter: enableassessment controls whether Gatekeeper is active at all, and allowidentifieddevelopers decides whether Developer ID signed apps are permitted alongside App Store apps.
This test passes if at least one assigned policy of either kind restricts app sources. A compliance policy set to Anywhere or left unconfigured does not count, and neither does a configuration policy that disables Gatekeeper assessment. Unassigned policies are reported but never applied or evaluated, so they do not count either.
Remediation actionβ
- Navigate to the Microsoft Intune admin center.
- Go to Devices > Manage devices > Compliance.
- Select an existing macOS policy, or select + Create policy with Platform set to macOS.
- Under Compliance settings > System Security > Gatekeeper, set Allow apps downloaded from these locations to Mac App Store and identified developers (or Mac App Store if your app estate allows it).
- On the Assignments tab, assign the policy to your macOS device or user groups.
- Select Next and then Create or Save.
To enforce the setting rather than only report on it, also create a configuration policy:
- Go to Devices > Manage devices > Configuration > Create > New policy.
- Set Platform to macOS and Profile type to Settings catalog.
- Add the System Policy Control category, then enable Enable Assessment and set Allow Identified Developers as your app estate requires.
- Assign the policy to your macOS groups.
Related linksβ
- Microsoft Intune admin center - Device compliance
- Microsoft Learn - Device compliance settings for macOS in Intune
- Microsoft Learn - Levels of protection and configuration in Intune
- Apple Support - Safely open apps on your Mac
Test Metadataβ
| Field | Value |
|---|---|
| Test ID | MT.1215 |
| Severity | Medium |
| Suite | Maester |
| Category | Intune |
| PowerShell test | Test-MtMacOSGatekeeper |
| Tags | Intune, Maester, MT.1215 |
Sourceβ
- Pester test:
tests/Maester/Intune/Test-MtIntunePlatform.Tests.ps1 - PowerShell source:
powershell/public/maester/intune/Test-MtMacOSGatekeeper.ps1
