Query Details
id: 7b8c9d10-aaaa-4001-8001-000000000001
name: HUNT - First-time device enrollment per user
description: |
Surfaces the first Intune device enrollment per user in the last 30 days.
Useful to review new devices against HR / joiner lists and catch stealth enrollments.
requiredDataConnectors:
- connectorId: AzureMonitor(IntuneLogs)
dataTypes:
- IntuneAuditLogs
tactics:
- Persistence
relevantTechniques:
- T1098.005
query: |
IntuneAuditLogs
| where TimeGenerated > ago(30d)
| where OperationName has_any ("enroll","Create Device","register")
| extend Props = parse_json(tostring(Properties))
| extend DeviceName = tostring(Props.TargetObjectName)
| summarize FirstEnroll = min(TimeGenerated), Devices = make_set(DeviceName, 50), Count = count()
by Identity = tostring(Identity)
| where FirstEnroll > ago(7d)
| order by FirstEnroll desc
version: 1.0.0
This query is designed to identify the first time a device is enrolled in Intune for each user over the past 30 days. Here's a simple breakdown:
Purpose: The query helps in detecting the first instance of device enrollment for each user within the last 30 days. This can be useful for verifying new devices against HR or joiner lists and identifying any unauthorized or stealth enrollments.
Data Source: It uses data from Intune Audit Logs, specifically looking at operations related to device enrollment.
Process:
Security Context: This query is associated with the "Persistence" tactic and is relevant to the technique T1098.005, which involves unauthorized account manipulation or creation.
In summary, this query helps security teams monitor and review new device enrollments in Intune to ensure they are legitimate and authorized.

David Alonso
Released: April 22, 2026
Tables
Keywords
Operators