Intune has a built-in Device Compliance Policy that governs how devices without an explicit compliance policy are treated. When the default behavior marks those devices as Compliant, unmanaged devices can be treated as compliant and gain access to corporate resources. This check verifies the default is set to Not compliant (secureByDefault = true).
Risk
If the built-in policy marks devices without a compliance policy as Compliant, those devices can bypass Conditional Access policies requiring device compliance, granting unauthorized access to corporate resources from unmanaged or non-compliant endpoints.
prowler m365 --checks intune_device_compliance_policy_unassigned_devices_not_compliant_by_default
Recommendation
Set the built-in Device Compliance Policy default so devices with no compliance policy assigned are marked as Not compliant.
Remediation
- Sign in to the Microsoft Intune admin center (intune.microsoft.com)
- Go to Devices > Compliance
- Select Compliance policy settings
- Set 'Mark devices with no compliance policy assigned as' to 'Not compliant'
- Save the settings
Source Code
Resource Type
NotDefined