# Ensure macOS compliance policy requires a Defender machine risk score level

Ensure at least one assigned macOS compliance policy requires a Microsoft Defender machine risk score level.

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

<!-- 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.1216
```

## Overview

Ensure at least one **assigned** macOS compliance policy requires a Microsoft Defender machine risk score level.

Microsoft Defender for Endpoint calculates a machine risk score for every onboarded device based on its active alerts and detections. Intune compliance policy can consume that score through **Require the device to be at or under the machine risk score**, so a Mac whose risk rises above an accepted threshold is marked non-compliant and can then be blocked by Conditional Access.

Without this setting the Defender signal never reaches the access decision. A Mac with active high-severity Defender alerts stays compliant and keeps its access to corporate resources, which removes exactly the automatic containment that a Zero Trust architecture assumes is present. Detection without enforcement leaves a compromised endpoint fully trusted.

The threshold accepts **Secured**, **Low**, **Medium** and **High**. The values *unavailable* and *notSet* mean the risk score is not evaluated at all, and neither counts as configured by this test.

Note that a threshold has no effect until the macOS devices are actually onboarded to Microsoft Defender for Endpoint and the Intune connector is enabled. This test reports whether **Require the device to be at or under the machine risk score** is paired with device threat protection, so a threshold that can never evaluate is visible.

#### Remediation action

1. Navigate to the [Microsoft Intune admin center](https://intune.microsoft.com).
2. Confirm the Defender for Endpoint connector is enabled under **Endpoint security** > **[Microsoft Defender for Endpoint](https://intune.microsoft.com/#view/Microsoft_Intune_Workflows/SecurityManagementMenu/~/mdeIntegration)**, and that **Connect macOS devices** is set to **On**.
3. Go to **Devices** > **Manage devices** > **[Compliance](https://intune.microsoft.com/#view/Microsoft_Intune_DeviceSettings/DevicesMenu/~/compliance)**.
4. Select an existing macOS policy, or select **+ Create policy** with **Platform** set to **macOS**.
5. Under **Compliance settings** > **Microsoft Defender for Endpoint**, set **Require the device to be at or under the machine risk score** to **Medium** or stricter.
6. On the **Assignments** tab, assign the policy to your macOS device or user groups.
7. Select **Next** and then **Create** or **Save**.

#### 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 - Enforce compliance for Microsoft Defender for Endpoint with Conditional Access](https://learn.microsoft.com/intune/device-security/advanced-threat-protection)
- [Microsoft Learn - Microsoft Defender for Endpoint on macOS](https://learn.microsoft.com/defender-endpoint/microsoft-defender-endpoint-mac)

## Details

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

| Field | Value |
| --- | --- |
| Test ID | MT.1216 |
| Severity | Medium |
| Suite | Maester |
| Product | Intune |
| Related products | Defender |
| Feature | Device compliance |
| Area | Devices and endpoints |
| Resource type | Tenant |
| User impact | Low |
| Implementation cost | Medium |
| MITRE ATT&CK | T1078.004 Cloud Accounts |
| Supports controls | nist-800-53-r5:SI-4, nist-800-53-r5:AC-19 |
| PowerShell test | [Test-MtMacOSDefenderRiskScore](https://github.com/maester365/maester/blob/main/tests/maester/intune/Test.MT.1216.ps1) |
| Services | Graph |
| Compatible licenses | INTUNE_A |

</details>

## Source

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