When it is written
Microsoft scans dark web forums, breach dumps, paste sites, law enforcement seizures and other sources, and checks the credentials it finds against the tenant's current password hashes. A detection is written only for a confirmed match, so it is always high risk. It is a user risk detection, calculated offline, and is available with Microsoft Entra ID Free and P1. Passwords of on-premises accounts are covered only when password hash synchronization is on, and only credentials Microsoft finds after it was turned on are matched: pairs found earlier are not checked again, and Microsoft deletes the credentials it found shortly after processing them. The absence of a record therefore says nothing about pairs found before that.
The detection is not tied to a sign-in, so CorrelationId and RequestId are empty. The sample leaves IpAddress and Location empty for the same reason; that is not shown in a vendor example, so check both on a record of your own. A cloud password reset through Microsoft Entra remediates the risk, for on-premises passwords too when password hash synchronization is on.
What a tenant without Microsoft Entra ID P2 is shown is less clear, because Microsoft's pages differ. The risk detection reference lists this detection for Microsoft Entra ID Free and P1. The licence table of ID Protection offers no Risk detections report with Microsoft Entra ID Free and limited information with P1, and lists the Microsoft Graph risk reports for P2 only, while the Graph reference of the list call asks for P1 or P2. The beta Graph reference says that riskLevel and riskDetail are returned as hidden to P1 customers and names no exception for this detection. In a tenant without P2, expect that RiskLevel and RiskDetail may read hidden, and check it on a record of your own.
How to turn it on
Microsoft Entra ID Protection risk detections records leakedCredentials calls to Microsoft Entra ID Protection risk detections without any setup. Vendor documentation
ID Protection evaluates every tenant and keeps its risk detections in the admin center (ID Protection > Risk detections, up to 90 days) and in Microsoft Graph. That is not a collection point: to keep the detections and send them to a SIEM, create a Microsoft Entra diagnostic setting (Entra ID > Monitoring & health > Diagnostic settings) with the UserRiskEvents category, sent to a Log Analytics workspace (table AADUserRiskEvents, the one Microsoft Sentinel reads), a storage account or an event hub. Security Administrator is the least privileged role that can create it.
- Licences decide what arrives. Most detection types are premium and need Microsoft Entra ID P2; without it they arrive as Additional risk detected (
generic) with no details, and in P1 tenants the risk level and risk detail readhidden. A few need more (Microsoft Defender for Cloud Apps, or Microsoft 365 E5 with EMS E5, or Defender for Endpoint); each page says which. - Timing. Real-time detections take 5 to 10 minutes to appear in the reports; offline detections take up to 48 hours. A detection's risk level and state can change after it is first written (
LastUpdatedDateTime). - Data starts to flow about 15 minutes after the setting is saved and only covers detections from then on.
- Low risk detections age out of the product after six months; medium and high ones stay until they are remediated or dismissed.
- Detections for workload identities (service principals) are a separate category, ServicePrincipalRiskEvents, with its own table.
(Invoke-AzRestMethod -Method GET -Path "/providers/microsoft.aadiam/diagnosticSettings?api-version=2017-04-01").ContentGet-MgRiskDetection -Top 5 | Format-Table RiskEventType, RiskLevel, DetectionTimingType, UserPrincipalName, DetectedDateTimeGet-MgRiskDetection -Filter "riskEventType eq 'leakedCredentials'" -Top 5 | Format-ListFields
The operation’s own fields first, then the fields every Microsoft Entra ID Protection risk detections record has. Field names are the JSON paths of the record as the vendor documents it.
| Field | What it holds |
|---|---|
Activity | The activity the risk is linked to; user for this user risk detection. |
DetectionTimingType | When the detection was computed; offline for this detection. |
RiskLevel | The level of the risk. Microsoft always delivers this detection as high; its beta Graph reference says the property is returned as hidden to P1 customers. |
RiskDetail | How the risk was resolved, if it was, for example userPerformedSecuredPasswordReset or adminGeneratedTemporaryPassword. Microsoft defines none as no details being available for the risk state, so read RiskState to see whether the risk is open. The beta Graph reference says the property is returned as hidden to P1 customers. |
Fields every Microsoft Entra ID Protection risk detections record has (14)
| Field | What it holds |
|---|---|
TimeGenerated | When the record was written to the workspace, in UTC. |
Id | Unique ID of the risk detection, the same as in the ID Protection report and Microsoft Graph. |
RiskEventTypeRead by 1 rule | The type of risk detected (for example passwordSpray). The operation this page is about. |
ActivityDateTime | When the risky activity happened, in UTC. |
DetectedDateTime | When ID Protection detected the risk, in UTC. For offline detections it can be hours after the activity. |
LastUpdatedDateTime | When the detection was last updated (new information, a level change, an administrator's action), in UTC. |
UserId | Object ID of the user the detection is about. |
UserPrincipalName | User principal name of the user. |
UserDisplayName | The user's name (Microsoft's table reference describes it as the user principal name). |
IpAddress | The client address the risky activity came from, when the detection has one. |
Location | Where the address is, from an IP address lookup (city, state, country or region, coordinates). |
RiskState | State of the risk: atRisk, confirmedCompromised, confirmedSafe, remediated, dismissed or none. |
CorrelationId | Correlation ID of the sign-in the detection is tied to, for finding the sign-in in the sign-in logs; empty when the detection is not tied to a sign-in. |
RequestId | Request ID of the sign-in the detection is tied to; empty when the detection is not tied to a sign-in. |
Values to know
RiskState
| Value | Meaning | Signal |
|---|---|---|
atRisk | The risk is open; the leaked password may still workReset the password. The detection rule reports every record of this type, whatever its state. | Attack signal |
RiskDetail
| Value | Meaning | Signal |
|---|---|---|
userPerformedSecuredPasswordReset | The user reset the password through a secure flowThe leaked password no longer works; check what happened between the leak and the reset. | Expected |
Volume and noise
Low, and every record is a confirmed match of a current password. The question is not whether it is real but whether the password was used before it was changed.
Keeping it manageable
- Check whether the user changed the password after
DetectedDateTime; if not, confirm the user compromised and reset the password. - Search the user's sign-ins since the leak for unfamiliar locations, anonymous addresses or other risk detections.
- Look for changes after the leak that keep access (new authentication methods, application registrations, inbox rules, privilege changes).
- Warn the user if the same password is used elsewhere; Microsoft's guidance treats it as compromised beyond the tenant.
Sample event
A Microsoft Entra ID Protection risk detections record in the vendor’s format, with made-up values.
{
"TimeGenerated": "2026-11-18T09:52:07.000Z",
"Id": "7c3a9e1f0b2d4c6e8a1b3c5d7e9f0a2b4c6d8e0f1a3b5c7d9e1f3a5b7c9d1e3f",
"RiskEventType": "leakedCredentials",
"ActivityDateTime": "2026-11-18T09:31:44.000Z",
"DetectedDateTime": "2026-11-18T09:38:12.000Z",
"LastUpdatedDateTime": "2026-11-18T09:38:12.000Z",
"UserId": "00000000-0000-0000-0000-00000000a11c",
"UserPrincipalName": "j.doe@corp.example.com",
"UserDisplayName": "Jane Doe",
"IpAddress": null,
"Location": null,
"RiskState": "atRisk",
"CorrelationId": null,
"RequestId": null,
"Activity": "user",
"DetectionTimingType": "offline",
"RiskLevel": "high",
"RiskDetail": "none"
}Attacks this event reveals
Detection rules that read this event:
References
- What are risk detections, Leaked credentials (Microsoft)
- Investigate risk, leaked credentials detections (Microsoft)
- riskDetection resource type, Microsoft Graph (Microsoft)
- Frequently asked questions around Microsoft Entra ID Protection, leaked credentials (Microsoft)
- What is Microsoft Entra ID Protection, license requirements (Microsoft)
- riskDetection resource type, Microsoft Graph beta (Microsoft)
- List riskDetections, Microsoft Graph (Microsoft)
- riskDetail enum type, Microsoft Graph (Microsoft)