Query Details
# Identities set to “Password Never Expires” with Blast Radius value or tagged as Sensitive # Description The following query will take advantage of the recently introduced IdentityInfo table and will identify enabled accounts that are set with no password expiration that either have a Blast Radius value or are ragged as Sensitive. Results might return accounts that should be further investigated whether the pose a risk or not. ### Defender XDR ``` let IdBlastRadiusLow = IdentityInfo | where IsAccountEnabled == "1" | where parse_json(UserAccountControl)[1] == 'PasswordNeverExpires' | where BlastRadius == "Low" | extend BlastRadius = "🟨 Low" | project AccountDisplayName, AccountName, EmailAddress, BlastRadius; let IdBlastRadiusMedium = IdentityInfo | where IsAccountEnabled == "1" | where parse_json(UserAccountControl)[1] == 'PasswordNeverExpires' | where BlastRadius == "Medium" | extend BlastRadius = "🟧 Medium" | project AccountDisplayName, AccountName, EmailAddress, BlastRadius; let IdBlastRadiusHigh = IdentityInfo | where IsAccountEnabled == "1" | where parse_json(UserAccountControl)[1] == 'PasswordNeverExpires' | where BlastRadius == "High" | extend BlastRadius = "🟥 High" | project AccountDisplayName, AccountName, EmailAddress, BlastRadius; let SensitiveAccount = IdentityInfo | where IsAccountEnabled == "1" | where parse_json(UserAccountControl)[1] == 'PasswordNeverExpires' | where Tags != "[]" | extend Tags = "⚠️ Sensitive Account" | project AccountDisplayName, AccountName, EmailAddress, Tags; union isfuzzy=true IdBlastRadiusLow,IdBlastRadiusMedium, IdBlastRadiusHigh, SensitiveAccount | summarize by AccountDisplayName, AccountName, EmailAddress, BlastRadius, Tags | sort by AccountDisplayName asc ``` ### Versioning | Version | Date | Comments | | ------------- |---------------| ---------------------------------------| | 1.0 | 16/05/2025 | Initial publish |
This query is designed to identify user accounts that are enabled, have the "Password Never Expires" setting, and are either associated with a "Blast Radius" value or tagged as "Sensitive." Here's a simple breakdown of what the query does:
Data Source: It uses the IdentityInfo table, which contains information about user accounts.
Enabled Accounts: It filters for accounts that are currently enabled.
Password Never Expires: It specifically looks for accounts where the password is set to never expire.
Blast Radius:
Sensitive Accounts:
Combining Results:
The purpose of this query is to help identify accounts that may require further investigation due to their potential risk, either because they have a significant blast radius or are marked as sensitive.

Michalis Michalos
Released: May 16, 2025
Tables
Keywords
Operators