# Ensure Gatekeeper restricts macOS app download locations

Ensure macOS devices are restricted to trusted app download locations by Gatekeeper.

Source: https://maester.dev/docs/tests/MT.1215

<!-- This file is generated by website/scripts/generate-test-docs.mjs. Do not edit manually. -->

<div class="test-byline"><div class="test-byline-avatars"><a class="test-byline-avatar test-byline-avatar--author" href="/contributors/daniellystad" title="Daniel Lystad · Original author"><img src="https://github.com/DanielLystad.png" alt="Daniel Lystad" width="28" height="28" loading="lazy" decoding="async" /></a></div><div class="test-byline-meta"><span class="test-byline-text">Contributed by <a href="/contributors/daniellystad">Daniel Lystad</a></span><a class="test-byline-link" href="/contributors">All contributors →</a></div></div>

<p class="test-part">Part of <a href="/docs/tests/maester">Maester</a> · Intune · Device compliance · <a href="/docs/tests">All checks</a></p>

```powershell title="Run this check"
Invoke-Maester -TestId MT.1215
```

## 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.control` payload, 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

1. Navigate to the [Microsoft Intune admin center](https://intune.microsoft.com).
2. Go to **Devices** > **Manage devices** > **[Compliance](https://intune.microsoft.com/#view/Microsoft_Intune_DeviceSettings/DevicesMenu/~/compliance)**.
3. Select an existing macOS policy, or select **+ Create policy** with **Platform** set to **macOS**.
4. 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).
5. On the **Assignments** tab, assign the policy to your macOS device or user groups.
6. Select **Next** and then **Create** or **Save**.

To enforce the setting rather than only report on it, also create a configuration policy:

1. Go to **Devices** > **Manage devices** > **[Configuration](https://intune.microsoft.com/#view/Microsoft_Intune_DeviceSettings/DevicesMenu/~/configuration)** > **Create** > **New policy**.
2. Set **Platform** to **macOS** and **Profile type** to **Settings catalog**.
3. Add the **System Policy Control** category, then enable **Enable Assessment** and set **Allow Identified Developers** as your app estate requires.
4. Assign the policy to your macOS groups.

#### Related links

- [Microsoft Intune admin center - Device compliance](https://intune.microsoft.com/#view/Microsoft_Intune_DeviceSettings/DevicesMenu/~/compliance)
- [Microsoft Learn - Device compliance settings for macOS in Intune](https://learn.microsoft.com/intune/device-security/compliance/ref-macos-settings)
- [Microsoft Learn - Levels of protection and configuration in Intune](https://learn.microsoft.com/intune/fundamentals/protection-configuration-levels)
- [Apple Support - Safely open apps on your Mac](https://support.apple.com/en-us/102445)

## Details

<details>
<summary>Every attribute of this check</summary>

| Field | Value |
| --- | --- |
| Test ID | MT.1215 |
| Severity | Medium |
| Suite | Maester |
| Product | Intune |
| Feature | Device compliance |
| Area | Devices and endpoints |
| Resource type | Tenant |
| User impact | Low |
| Implementation cost | Low |
| MITRE ATT&CK | T1553.001 Gatekeeper Bypass, T1204.002 Malicious File |
| Supports controls | nist-800-53-r5:CM-11, nist-800-53-r5:CM-7(5) |
| PowerShell test | [Test-MtMacOSGatekeeper](https://github.com/maester365/maester/blob/main/tests/maester/intune/Test.MT.1215.ps1) |
| Services | Graph |
| Compatible licenses | INTUNE_A |

</details>

## Source

- Test: [`tests/maester/intune/Test.MT.1215.ps1`](https://github.com/maester365/maester/blob/main/tests/maester/intune/Test.MT.1215.ps1)
- Documentation: [`tests/maester/intune/Test.MT.1215.md`](https://github.com/maester365/maester/blob/main/tests/maester/intune/Test.MT.1215.md)
