Query Details
id: 7b8c9d10-aaaa-4001-8001-00000000000F
name: HUNT - Recent Intune policy assignment / unassignment changes
description: |
Surfaces recent Intune policy assignment changes from IntuneAuditLogs — Compliance, Configuration,
App Protection and App Configuration policies. Scoping changes are a common precursor to
compliance bypass because they exclude target groups/devices from enforcement.
requiredDataConnectors:
- connectorId: AzureMonitor(IntuneLogs)
dataTypes:
- IntuneAuditLogs
tactics:
- DefenseEvasion
relevantTechniques:
- T1562
query: |
IntuneAuditLogs
| where TimeGenerated > ago(7d)
| where Category in~ ("Compliance","DeviceConfiguration","ApplicationManagement")
| where OperationName has_any ("assign","Assignment","unassign","Scope","GroupAssignment")
| extend Props = parse_json(tostring(Properties))
| extend Actor = tostring(Identity)
| extend PolicyName = tostring(Props.TargetDisplayName)
| extend PolicyType = tostring(Props.TargetObjectType)
| extend Modified = tostring(Props.ModifiedProperties)
| project TimeGenerated, Actor, OperationName, Category, PolicyType, PolicyName, Modified
| order by TimeGenerated desc
version: 1.0.0
This query is designed to identify recent changes in Intune policy assignments, specifically focusing on compliance, configuration, app protection, and app configuration policies. It pulls data from IntuneAuditLogs within the last seven days to detect any assignment or unassignment activities, as well as changes in scoping or group assignments. These changes can be indicative of attempts to bypass compliance by excluding certain groups or devices from policy enforcement.
Here's a breakdown of what the query does:
IntuneAuditLogs via the Azure Monitor connector.This query is useful for security teams to monitor and investigate potential defense evasion tactics (Technique T1562) by tracking changes in Intune policy assignments.

David Alonso
Released: April 22, 2026
Tables
Keywords
Operators