# How to automate secure password changes for risky users with Microsoft Entra ID Protection

Author: [Opeyemi Enitan](https://blog.threatintels.org/blog/about.html)

Canonical article: https://blog.threatintels.org/blog/entra-ca-05-high-risk-password-change.html

Historical project period: January 2025 series (2025-01)

## Why this matters

When identity monitoring detects signs that an account may be compromised, waiting for a manual password reset can prolong the period in which stolen credentials remain useful. The SOC may also face a growing remediation queue if every eligible risky account requires manual intervention.

This guide uses Entra ID Protection and Conditional Access to require eligible risky users to complete secure password remediation, while preserving administrator-led recovery and incident response for cases that cannot safely self-remediate.

PRACTICAL WALKTHROUGH · PART 05 OF 06

## What you'll accomplish

Configure user-risk-based password remediation and validate recovery readiness.

[Microsoft Entra Conditional Access Series](https://blog.threatintels.org/blog/entra-conditional-access-series.html)

Identity compromise can require intervention before users regain access to enterprise resources. Microsoft Entra ID Protection integrates risk signals with Conditional Access to automate eligible secure password remediation. User risk represents the probability of account compromise, while sign-in risk describes a particular authentication request. Use separate controls for those objectives.

## 1. Prerequisites and recovery readiness

Entra ID P2 for benefiting users, Conditional Access Administrator permissions, suitable MFA registration, SSPR eligibility and a validated incident response process are required. For hybrid users, verify the supported password writeback configuration and on-premises password policy. Review emergency access accounts, guests and users unable to self-remediate. Establish an administrator-assisted recovery process. Do not rely on an unverified authentication method after suspected compromise.

In Entra ID > Password reset, review SSPR scope and authentication method requirements; test a dedicated hybrid identity where relevant. Inspect Identity Protection > Risky users and risk detections to understand expected volumes before configuring thresholds.

## 2. Configure risk-based Conditional Access

Navigate to Entra ID > Conditional Access > Policies > New policy.

Configuration captures show a newer Microsoft Entra portal interface, with sensitive details removed. They illustrate the settings, not proof of a successful deployment or a January 2025 capture.

1. **Name:** Require secure password change for risky users. The original policy title mentions High risk, but its actual selected levels are Medium and High.

![Risky-user password change policy overview](https://blog.threatintels.org/blog/evidence/entra-ca-series/part-05/configuration-01.png)

**Figure 1.** Risky-user password change policy overview. [Open full-size image](https://blog.threatintels.org/blog/evidence/entra-ca-series/part-05/configuration-01.png)

2. **Users:** include All users, excluding designated emergency access and justified exceptions. Verify special recovery paths for guests and unsupported identities.

![All users included, with specific exclusions](https://blog.threatintels.org/blog/evidence/entra-ca-series/part-05/configuration-02.png)

**Figure 2.** All users included, with specific exclusions. [Open full-size image](https://blog.threatintels.org/blog/evidence/entra-ca-series/part-05/configuration-02.png)

3. **Target resources:** All resources. The password-change grant is designed for all resources.
4. **Conditions > User risk:** Configure Yes. Select High and Medium; leave Low unselected. Do not confuse user risk with sign-in risk. High-only is a reasonable starting threshold; medium adds remediation volume and requires validation.

![User risk: Medium and High selected](https://blog.threatintels.org/blog/evidence/entra-ca-series/part-05/configuration-03.png)

**Figure 3.** User risk: Medium and High selected. [Open full-size image](https://blog.threatintels.org/blog/evidence/entra-ca-series/part-05/configuration-03.png)

5. **Grant:** Grant access > Require password change. MFA is automatically required as part of secure password change. Other grant controls are constrained by this design.

![Grant control: Require password change with MFA](https://blog.threatintels.org/blog/evidence/entra-ca-series/part-05/configuration-04.png)

**Figure 4.** Grant control: Require password change with MFA. [Open full-size image](https://blog.threatintels.org/blog/evidence/entra-ca-series/part-05/configuration-04.png)

6. **Session:** Sign-in frequency > Every time. This mandatory setting is automatically applied for the password change control in current guidance. It does not mean every user changes passwords at every sign-in; risk applicability drives the remediation.

![Session control: sign-in frequency set to Every time](https://blog.threatintels.org/blog/evidence/entra-ca-series/part-05/configuration-05.png)

**Figure 5.** Session control: sign-in frequency set to Every time. [Open full-size image](https://blog.threatintels.org/blog/evidence/entra-ca-series/part-05/configuration-05.png)

7. **State:** for a new policy use report-only evaluation as supported and controlled pilot testing. The captured policy is On.

## 3. Understand and test remediation

When the user is in scope and assessed at a selected risk level, Entra requires verification and a secure password change through the remediation flow. A routine password change outside that flow is not necessarily equivalent. If successful and eligible, the user risk can be remediated; access still depends on all applicable controls. If verification fails, initiate administrator-assisted recovery. Use dedicated lab identities and supported testing methods rather than provoking production compromise.

<table><thead><tr><th>Test</th><th>Expected outcome</th></tr></thead><tbody><tr><td>No or Low user risk</td><td>This policy not applied</td></tr><tr><td>Medium or High user risk</td><td>Secure password change required when enforced</td></tr><tr><td>Eligible user completes secure flow</td><td>Check risk history and subsequent access</td></tr><tr><td>User lacks suitable MFA/SSPR</td><td>Remediation may fail; assisted recovery needed</td></tr><tr><td>Hybrid writeback failure</td><td>Investigate synchronisation/password restrictions</td></tr><tr><td>Explicit exception</td><td>This policy not applied; compensating controls needed</td></tr></tbody></table>

Monitor risky users and risk history, not just successful sign-in events. No actual tenant test outcomes are asserted here.

## 4. Track risky users in Sentinel

Enable the Entra risky-user diagnostic category. In the documented AADRiskyUsers schema, Id identifies the user at risk, while RiskLastUpdatedDateTime records the risk-state update. Select the latest retained risk snapshot per Id before filtering by risk level and state; filtering first could surface already-remediated users.

kusto

```
AADRiskyUsers
| where isnotempty(Id)
| summarize arg_max(RiskLastUpdatedDateTime, *) by Id
| where IsDeleted == false
| where RiskLevel in~ ("medium", "high")
| where RiskState in~ ("atRisk", "confirmedCompromised")
| project RiskLastUpdatedDateTime, TimeGenerated, Id,
    UserPrincipalName, RiskLevel, RiskState, RiskDetail, IsProcessing
| order by RiskLastUpdatedDateTime desc
```

The query is limited to retained snapshots in the selected workspace time range. Confirm current risk state, particularly records still being processed, in Entra Identity Protection. Use the risk history and actual recovery results to corroborate remediation; a password change or successful policy evaluation alone does not establish full incident containment. The query fields and KQL constructs were checked against the linked Microsoft documentation on 30 November 2026. These examples have not been executed against a live workspace. Use a workspace containing the required diagnostic tables, with sufficient retention and appropriate read permissions.

## 5. Incident response beyond password change

Investigate persistent risk and unexpected registered methods. Depending on evidence, revoke sessions, remove unauthorised authentication methods, review app consent, mailbox rules, endpoint and file activity, and temporarily disable access. Token theft and other persistence mechanisms are not comprehensively addressed by password changes. For suspected authentication method takeover, do not blindly allow self-service using the compromised method.

## 6. Current remediation options and rollout

Current Microsoft guidance also describes Require risk remediation, which supports password-based and passwordless users and can select a response based on risk type. It is a different control with its own requirements; evaluate separately. Avoid overlapping conflicting user-risk remediation policies. Review the threshold against analyst workload and failed recovery rates. Track outstanding risk, time to remediation and recurrence without claiming unmeasured improvements. If the new policy causes widespread legitimate disruption, use approved rollback and preserve other protections; investigate affected identities and restore after successful testing. Never dismiss actual compromise simply to restore access.

## References

- [Risk policies](https://learn.microsoft.com/en-us/entra/id-protection/howto-identity-protection-configure-risk-policies)
- [Remediate risks](https://learn.microsoft.com/en-us/entra/id-protection/howto-identity-protection-remediate-unblock)
- [Risk-based access policies](https://learn.microsoft.com/en-us/entra/id-protection/concept-identity-protection-policies)
- [User self-remediation](https://learn.microsoft.com/en-us/entra/id-protection/concept-identity-protection-user-experience)
- [AADRiskyUsers schema](https://learn.microsoft.com/en-us/azure/azure-monitor/reference/tables/aadriskyusers)
- [Microsoft risky-user query examples](https://learn.microsoft.com/en-us/azure/azure-monitor/reference/queries/aadriskyusers)
- [Kusto arg_max](https://learn.microsoft.com/en-us/kusto/query/arg-max-aggregation-function)

## Continue the series

[All six Conditional Access guides](https://blog.threatintels.org/blog/entra-conditional-access-series.html)

[← Part 04: Restrict access using named locations](https://blog.threatintels.org/blog/entra-ca-04-location-restrictions.html)

[Part 06: Block file downloads on unmanaged devices →](https://blog.threatintels.org/blog/entra-ca-06-block-unmanaged-downloads.html)
