Audit Logs / Microsoft Entra ID AuditLogs category
Audit Logs: Device
| OperationName | Description | Sample | Rule |
|---|---|---|---|
| Add device | A device object was added to the directory. | Y | Y |
| Add registered owner to device | A registered owner was added to a device. | Y | Y |
| Add registered users to device | Registered users were added to a device. | N | Y |
| Delete device | A device object was deleted. | N | Y |
| Register device | A device was registered or joined to Entra ID. | N | Y |
| Update device | A device object was modified. | Y | Y |
| Delete pre-created device | Deletion of a pre-created device object registered in an Azure AD B2C tenant. | N | N |
| Device no longer compliant | A device's compliance state changed to non-compliant in Microsoft Entra ID. | N | Y |
| Device no longer managed | A device's management state changed to unmanaged in Microsoft Entra ID. | N | Y |
| Hard Delete device | Permanent deletion of an Entra device object; BitLocker/LAPS data lost and unrecoverable. | N | N |
| Pre-create device | A device object was pre-created (pre-registered) in the directory before enrollment or join. | N | N |
| Recover device local administrator password | A device's Windows LAPS-managed local administrator password was retrieved from Microsoft Entra ID. | N | N |
| Remove registered owner from device | The registered owner was removed from a Microsoft Entra device object. | N | N |
| Remove registered users from device | One or more registered users were removed from a Microsoft Entra device object. | N | N |
| Restore device | A soft-deleted device object was restored to the active directory. | N | N |
| Unregister device | A device was unregistered, removing its directory device object. | N | N |
| Update device local administrator password | A device's Windows LAPS local administrator password was updated (rotated) in Entra ID. | N | N |
| Update local administrator password | Windows LAPS-managed local administrator password updated/backed up to Entra ID (e.g., rotation). | N | N |
Add device
#Description
A device object was added to the directory.
Example Audit Log Entry #
{
"AADOperationType": "Add",
"AADTenantId": "11111111-1111-1111-1111-111111111111",
"ActivityDateTime": "2026-06-29T17:34:58.2171727Z",
"ActivityDisplayName": "Add device",
"AdditionalDetails": [
{
"key": "User-Agent",
"value": "Python-urllib/3.11"
}
],
"Category": "Device",
"CorrelationId": "69949ca7-71d3-4dee-bb88-6d2ce44529e3",
"DurationMs": "0",
"Id": "Directory_69949ca7-71d3-4dee-bb88-6d2ce44529e3_G0SO4_120748367",
"Identity": "",
"InitiatedBy": {
"user": {
"displayName": null,
"agentType": "notAgentic",
"id": "aaaaaaaa-0000-0000-0000-000000000001",
"userPrincipalName": "adminuser@example.onmicrosoft.com",
"ipAddress": "203.0.113.10",
"roles": []
}
},
"Level": "",
"Location": "",
"LoggedByService": "Core Directory",
"OperationName": "Add device",
"OperationVersion": "1.0",
"Resource": "Microsoft.aadiam",
"ResourceGroup": "Microsoft.aadiam",
"ResourceId": "/tenants/11111111-1111-1111-1111-111111111111/providers/Microsoft.aadiam",
"ResourceProvider": "",
"Result": "success",
"ResultDescription": "",
"ResultReason": "",
"ResultSignature": "None",
"ResultType": "",
"SourceSystem": "Azure AD",
"TargetResources": [
{
"id": "aaaaaaaa-0000-0000-0000-000000000016",
"displayName": "zzcap-device-001",
"type": "Device",
"modifiedProperties": [
{
"displayName": "AccountEnabled",
"oldValue": [],
"newValue": [
true
]
},
{
"displayName": "CloudAccountEnabled",
"oldValue": [],
"newValue": [
true
]
},
{
"displayName": "CloudDeviceOSType",
"oldValue": [],
"newValue": [
"Windows"
]
},
{
"displayName": "CloudDeviceOSVersion",
"oldValue": [],
"newValue": [
"10.0.22631"
]
},
{
"displayName": "CloudDisplayName",
"oldValue": [],
"newValue": [
"zzcap-device-001"
]
},
{
"displayName": "CloudCreated",
"oldValue": [],
"newValue": [
true
]
},
{
"displayName": "DeviceId",
"oldValue": [],
"newValue": [
"7d9f806c-db56-423b-b3fb-cda0d7339554"
]
},
{
"displayName": "DeviceOSType",
"oldValue": [],
"newValue": [
"Windows"
]
},
{
"displayName": "DeviceOSVersion",
"oldValue": [],
"newValue": [
"10.0.22631"
]
},
{
"displayName": "DisplayName",
"oldValue": [],
"newValue": [
"zzcap-device-001"
]
},
{
"displayName": "Included Updated Properties",
"oldValue": null,
"newValue": "\"AccountEnabled, CloudAccountEnabled, CloudDeviceOSType, CloudDeviceOSVersion, CloudDisplayName, CloudCreated, DeviceId, DeviceOSType, DeviceOSVersion, DisplayName\""
}
],
"administrativeUnits": [],
"agentType": "notAgentic"
}
],
"TenantId": "00000000-0000-0000-0000-000000000000",
"TimeGenerated": "2026-06-29T17:34:58.2171727Z",
"Type": "AuditLogs"
}
Common Indicators #
Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.
| Field | Kind | Value | Rules | Vendors |
|---|---|---|---|---|
EventType (elastic rule field) | eq | add device | 2 rules | elastic |
azure.auditlogs.properties.target_resources.0.modified_properties.4.new_value (elastic rule field) | contains | desktop- | 2 rules | elastic |
Detection Rules #
Full rule details for this event, including ATT&CK technique mappings and native queries →Elastic #
T1098, T1098.005T1098, T1098.005Microsoft.OData.Client user agent. These sequences are uncommon in typical user behavior and may reflect abuse of device trust for session hijacking or silent token replay.T1098, T1098.005↳ also matches Add registered owner to device, Add registered users to device
References #
Add registered owner to device
#Description
A registered owner was added to a device.
Example Audit Log Entry #
{
"AADOperationType": "Assign",
"AADTenantId": "11111111-1111-1111-1111-111111111111",
"ActivityDateTime": "2026-06-29T17:34:58.6109542Z",
"ActivityDisplayName": "Add registered owner to device",
"AdditionalDetails": [
{
"key": "User-Agent",
"value": "Python-urllib/3.11"
}
],
"Category": "Device",
"CorrelationId": "7c4914ef-8d1c-41ee-b88b-df0eb1683f5a",
"DurationMs": "0",
"Id": "Directory_7c4914ef-8d1c-41ee-b88b-df0eb1683f5a_ER07J_154109879",
"Identity": "",
"InitiatedBy": {
"user": {
"displayName": null,
"agentType": "notAgentic",
"id": "aaaaaaaa-0000-0000-0000-000000000001",
"userPrincipalName": "adminuser@example.onmicrosoft.com",
"ipAddress": "203.0.113.10",
"roles": []
}
},
"Level": "",
"Location": "",
"LoggedByService": "Core Directory",
"OperationName": "Add registered owner to device",
"OperationVersion": "1.0",
"Resource": "Microsoft.aadiam",
"ResourceGroup": "Microsoft.aadiam",
"ResourceId": "/tenants/11111111-1111-1111-1111-111111111111/providers/Microsoft.aadiam",
"ResourceProvider": "",
"Result": "success",
"ResultDescription": "",
"ResultReason": "",
"ResultSignature": "None",
"ResultType": "",
"SourceSystem": "Azure AD",
"TargetResources": [
{
"id": "aaaaaaaa-0000-0000-0000-000000000014",
"displayName": null,
"type": "User",
"modifiedProperties": [
{
"displayName": "Device.ObjectID",
"oldValue": null,
"newValue": "\"aaaaaaaa-0000-0000-0000-000000000016\""
},
{
"displayName": "Device.DisplayName",
"oldValue": null,
"newValue": "\"zzcap-device-001\""
}
],
"administrativeUnits": [],
"agentType": "notAgentic",
"userPrincipalName": "zzcap-user-002@example.onmicrosoft.com"
},
{
"id": "aaaaaaaa-0000-0000-0000-000000000016",
"displayName": null,
"type": "Device",
"modifiedProperties": [],
"administrativeUnits": [],
"agentType": "notAgentic"
}
],
"TenantId": "00000000-0000-0000-0000-000000000000",
"TimeGenerated": "2026-06-29T17:34:58.6109542Z",
"Type": "AuditLogs"
}
Detection Rules #
Full rule details for this event, including ATT&CK technique mappings and native queries →Elastic #
Microsoft.OData.Client user agent. These sequences are uncommon in typical user behavior and may reflect abuse of device trust for session hijacking or silent token replay.T1098, T1098.005↳ also matches Add device, Add registered users to device
References #
Add registered users to device
#Description
Registered users were added to a device.
Detection Rules #
Full rule details for this event, including ATT&CK technique mappings and native queries →Elastic #
Microsoft.OData.Client user agent. These sequences are uncommon in typical user behavior and may reflect abuse of device trust for session hijacking or silent token replay.T1098, T1098.005↳ also matches Add device, Add registered owner to device
References #
Delete device
#Description
A device object was deleted.
Detection Rules #
Full rule details for this event, including ATT&CK technique mappings and native queries →Sigma #
T1485, T1565, T1565.001↳ also matches Update device, Delete device configuration, Update device configuration
References #
Register device
#Description
A device was registered or joined to Entra ID.
Common Indicators #
Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.
| Field | Kind | Value | Rules | Vendors |
|---|---|---|---|---|
azure.signinlogs.properties.device_detail.is_managed (elastic rule field) | ne | true | 1 rule | elastic |
azure.signinlogs.properties.incoming_token_type (elastic rule field) | eq | primaryRefreshToken | 1 rule | elastic |
azure.signinlogs.properties.incoming_token_type (elastic rule field) | eq | refreshToken | 1 rule | elastic |
azure.signinlogs.properties.is_interactive (elastic rule field) | eq | true | 1 rule | elastic |
azure.signinlogs.properties.token_protection_status_details.sign_in_session_status (elastic rule field) | eq | unbound | 1 rule | elastic |
azure.signinlogs.result_signature (elastic rule field) | eq | SUCCESS | 1 rule | elastic |
azure_ad::app_id (elastic rule field) | eq | 29d9ed98-a469-4536-ade2-f981bc1d605e | 1 rule | elastic |
azure_ad::resource_display_name (elastic rule field) | ne | Device Registration Service | 1 rule | elastic |
azure_ad::signin_category (elastic rule field) | eq | NonInteractiveUserSignInLogs | 1 rule | elastic |
azure_ad::user_type (elastic rule field) | eq | Member | 1 rule | elastic |
Detection Rules #
Full rule details for this event, including ATT&CK technique mappings and native queries →Elastic #
T1078, T1078.004, T1098, T1098.005, T1528, T1550T1078, T1078.004, T1098, T1098.005, T1557T1098, T1098.005
References #
Update device
#Description
A device object was modified.
Example Audit Log Entry #
{
"AADOperationType": "Update",
"AADTenantId": "11111111-1111-1111-1111-111111111111",
"ActivityDateTime": "2026-06-29T17:34:58.6079582Z",
"ActivityDisplayName": "Update device",
"AdditionalDetails": [
{
"key": "DeviceId",
"value": "7d9f806c-db56-423b-b3fb-cda0d7339554"
},
{
"key": "DeviceOSType",
"value": "Windows"
},
{
"key": "DeviceTrustType",
"value": ""
},
{
"key": "User-Agent",
"value": "Python-urllib/3.11"
}
],
"Category": "Device",
"CorrelationId": "7c4914ef-8d1c-41ee-b88b-df0eb1683f5a",
"DurationMs": "0",
"Id": "Directory_7c4914ef-8d1c-41ee-b88b-df0eb1683f5a_ER07J_154109857",
"Identity": "",
"InitiatedBy": {
"user": {
"displayName": null,
"agentType": "notAgentic",
"id": "aaaaaaaa-0000-0000-0000-000000000001",
"userPrincipalName": "adminuser@example.onmicrosoft.com",
"ipAddress": "203.0.113.10",
"roles": []
}
},
"Level": "",
"Location": "",
"LoggedByService": "Core Directory",
"OperationName": "Update device",
"OperationVersion": "1.0",
"Resource": "Microsoft.aadiam",
"ResourceGroup": "Microsoft.aadiam",
"ResourceId": "/tenants/11111111-1111-1111-1111-111111111111/providers/Microsoft.aadiam",
"ResourceProvider": "",
"Result": "success",
"ResultDescription": "",
"ResultReason": "",
"ResultSignature": "None",
"ResultType": "",
"SourceSystem": "Azure AD",
"TargetResources": [
{
"id": "aaaaaaaa-0000-0000-0000-000000000016",
"displayName": "zzcap-device-001",
"type": "Device",
"modifiedProperties": [
{
"displayName": "TargetId.DeviceId",
"oldValue": null,
"newValue": "\"7d9f806c-db56-423b-b3fb-cda0d7339554\""
},
{
"displayName": "TargetId.DeviceOSType",
"oldValue": null,
"newValue": "\"Windows\""
},
{
"displayName": "TargetId.DeviceTrustType",
"oldValue": null,
"newValue": "\"\""
}
],
"administrativeUnits": [],
"agentType": "notAgentic"
}
],
"TenantId": "00000000-0000-0000-0000-000000000000",
"TimeGenerated": "2026-06-29T17:34:58.6079582Z",
"Type": "AuditLogs"
}
Common Indicators #
Field/value combinations most frequently checked by detection rules targeting this event, derived from cross-vendor predicate analysis.
| Field | Kind | Value | Rules | Vendors |
|---|---|---|---|---|
displayName (kusto rule field) | eq | included updated properties | 1 rule | kusto |
Detection Rules #
Full rule details for this event, including ATT&CK technique mappings and native queries →Sigma #
T1485, T1565, T1565.001↳ also matches Delete device, Delete device configuration, Update device configuration Kusto #
T1528
References #
Delete pre-created device
#Description
Records the deletion of a pre-created device object registered in an Azure AD B2C tenant.
References #
Device no longer compliant
#Description
Records that a device's compliance state in Microsoft Entra ID changed to non-compliant, typically reported through the mobile device management integration. The change can affect Conditional Access policies that require a compliant device.
Detection Rules #
Full rule details for this event, including ATT&CK technique mappings and native queries →Sigma #
References #
Device no longer managed
#Description
Records that a device's management state in Microsoft Entra ID changed to unmanaged, typically when it stops being managed by mobile device management. The change can affect Conditional Access policies that require a managed device.
Detection Rules #
Full rule details for this event, including ATT&CK technique mappings and native queries →Sigma #
References #
Hard Delete device
#Description
Records the permanent (hard) deletion of a device object from Microsoft Entra ID, after which associated data such as BitLocker recovery keys and LAPS passwords is permanently lost and the device object must be recreated. A hard delete occurs when a soft-deleted device is not restored within 30 days, an administrator explicitly permanently deletes a soft-deleted device, or the device type does not support soft delete.
References #
Pre-create device
#Description
Records the pre-creation (pre-registration) of a device object in the directory, establishing a device identity before the device actually enrolls or joins.
References #
Recover device local administrator password
#Description
A device's Windows LAPS-managed local administrator password was retrieved from Microsoft Entra ID. Because it exposes a privileged local credential, an unexpected or repeated recovery is relevant to credential-access and lateral-movement monitoring.
References #
Remove registered owner from device
#Description
Records that the registered owner was removed from a Microsoft Entra device object, dissociating the user account recorded as that device's registered owner.
References #
Remove registered users from device
#Description
Records that one or more registered users were removed from a Microsoft Entra device object.
References #
Restore device
#Description
Records that a soft-deleted device object was restored, moving it out of the soft-deleted container back to the active directory so it can authenticate and be managed again. Soft-deleted devices are recoverable for 30 days and retain their identity, key material, BitLocker recovery keys, and LAPS passwords, so a restore reinstates a device identity that can again access Entra-protected resources.
References #
Unregister device
#Description
Records that a device registration was removed (unregistered) from the directory, removing the directory device object. Loss of a registered or compliant device can affect device-based Conditional Access, and unexpected unregistration may reflect cleanup of attacker-controlled devices or tampering with device trust.
References #
Update device local administrator password
#Description
A device's Windows LAPS managed local administrator password was updated (rotated) and backed up to Microsoft Entra ID. Monitoring these events helps detect unexpected local-credential changes.
References #
Update local administrator password
#Description
Records that a Windows device's local administrator password managed by Windows LAPS was updated and backed up to Microsoft Entra ID (for example, a scheduled rotation). Retrieval of the stored password is logged separately as a recover event, so these records support monitoring of local-admin credential lifecycle.
References #
Rules often query computed field names, not native AuditLogs columns #
Many Entra detection rules pivot on field names that are not columns in this table but KQL projections the rule author computes from two dynamic columns. Searching the field list for those names finds nothing; use the canonical paths instead.
InitiatingUserPrincipalName(and siblingInitiating*names) is not a column. Rules project it fromInitiatedBy, for exampleextend InitiatingUserPrincipalName = tostring(InitiatedBy.user.userPrincipalName). The native paths areInitiatedBy.user.userPrincipalName,InitiatedBy.user.displayName, andInitiatedBy.user.idfor user actors, andInitiatedBy.app.displayName/InitiatedBy.app.appIdfor application or service-principal actors.- What changed lives in
TargetResources, adynamicarray. Expand it before filtering on the change:AuditLogs | mv-expand TargetResources | extend props = TargetResources.modifiedProperties, then readprops[].displayName,props[].oldValue, andprops[].newValue.
Column shapes per the AuditLogs table reference and the Graph directoryAudit resource.