Persistence (TA0003)(external, opens in a new tab or window)
text code block:FROM logs-azure.auditlogs-* METADATA _id, _version, _index | WHERE event.dataset == "azure.auditlogs" AND event.action IN ("Reset user password", "Update PasswordProfile") AND event.outcome == "success" AND azure.auditlogs.properties.initiated_by.app.displayName != "Microsoft password reset service" | EVAL Esql.actor = COALESCE(azure.auditlogs.properties.initiated_by.user.userPrincipalName, azure.auditlogs.properties.initiated_by.app.displayName), Esql.target = `azure.auditlogs.properties.target_resources.0.user_principal_name` | WHERE Esql.actor IS NOT NULL AND Esql.target IS NOT NULL AND Esql.actor != Esql.target | KEEP _id, _version, _index, @timestamp, Esql.*, event.*, source.*, azure.*
Install detection rules in Elastic Security
Detect Entra ID Password Reset of Another User in the Elastic Security detection engine by installing this rule into your Elastic Stack.
To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(external, opens in a new tab or window).