Query Details
WorkloadIdentityInfoXdr | mv-expand parse_json(AssignedAzureRoles) | where parse_json(AssignedAzureRoles)["RoleIsPrivileged"] == 'true' | where parse_json(AssignedAzureRoles)["IsOverProvisioned"] == 'true' or parse_json(AssignedAzureRoles)["IsIdentityInactive"] == 'true'
This query is analyzing data from the WorkloadIdentityInfoXdr table. Here's a simple breakdown of what it does:
Expand Assigned Azure Roles: It takes each entry in the AssignedAzureRoles field, which is in JSON format, and expands it so that each role can be analyzed individually.
Filter Privileged Roles: It filters the roles to only include those where the RoleIsPrivileged property is set to 'true'. This means it focuses on roles with elevated permissions.
Filter Over-Provisioned or Inactive Identities: It further filters these privileged roles to find cases where either:
IsOverProvisioned is 'true'), meaning the role has more permissions than necessary.IsIdentityInactive is 'true').In summary, the query identifies privileged roles that are either over-provisioned or associated with inactive identities.

Thomas Naunheim
Released: June 4, 2025
Tables
Keywords
Operators