1. Resources
  2. Detection sources
  3. passwordSpray

passwordSpray: Microsoft saw a password spray guess a user's password correctly

A sign-in risk detection that Microsoft raises only when a password spray it observed across tenants validated a correct password for this user. It means the password is known, not that resources were reached.

Log source
Microsoft Entra ID Protection risk detections
Detection value
Supporting
Volume
Low (estimate)
Last updated
Log
Microsoft Entra ID Protection risk detections (Microsoft Entra ID Protection risk detections, on by default)
Service
Microsoft Entra ID Protection risk detections
Operation
passwordSpray
Detects
1 attack (1 rule)
MITRE ATT&CK
1 technique in 1 tactic
Threat groups
12 groups that MITRE ATT&CK records using these techniques
Fields the rules read
RiskEventType

When it is written

Microsoft watches password spray patterns (many accounts tried with common passwords) across IP addresses and other identifiers in all Microsoft Entra tenants. The detection fires in a tenant only when the spray succeeded in validating a user's password there; failed attempts against your users do not produce it. It is a sign-in risk detection, calculated in real time or offline, and needs Microsoft Entra ID P2. Microsoft lists it as a premium detection: a tenant without Microsoft Entra ID P2 receives it as generic (Additional risk detected) with no details, so records of this type appear only in tenants that have P2.

As a sign-in detection, expect the record to name the user, the sign-in it is tied to (CorrelationId, RequestId) and the address; Microsoft publishes no record of this detection, so check them on a record of your own. Microsoft is explicit that the detection says the password was correctly identified, not that the attacker reached any resource: look up the sign-in to see whether MFA or Conditional Access stopped it.

How to turn it on

Microsoft Entra ID Protection risk detections records passwordSpray 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 read hidden. 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.
List the Microsoft Entra diagnostic settings and the categories they export (read only, Az PowerShell)
(Invoke-AzRestMethod -Method GET -Path "/providers/microsoft.aadiam/diagnosticSettings?api-version=2017-04-01").Content
Based on vendor documentation.
Show the most recent risk detections (read only, Microsoft Graph PowerShell, IdentityRiskEvent.Read.All)
Get-MgRiskDetection -Top 5 | Format-Table RiskEventType, RiskLevel, DetectionTimingType, UserPrincipalName, DetectedDateTime
Based on vendor documentation.
Find recent passwordSpray records (read only)
Get-MgRiskDetection -Filter "riskEventType eq 'passwordSpray'" -Top 5 | Format-List
Based on vendor documentation.

Fields

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.

FieldWhat it holds
ActivityThe activity the risk is linked to; signin for this detection.
DetectionTimingTypeWhen the detection was computed, realtime or offline; this detection can be either.
RiskLevelLevel of the risk (low, medium, high). Microsoft does not state a fixed level for this detection.
RiskDetailHow the risk was resolved, if it was (userPerformedSecuredPasswordReset, adminConfirmedSigninCompromised, adminDismissedAllRiskForUser...). Microsoft defines none as no details being available for the risk state, so read RiskState to see whether the risk is open.
AdditionalInfoExtra details as a list of key and value pairs. Microsoft documents the possible keys but not which ones each detection type carries; the sample's userAgent is the key of Microsoft's general example, not shown for this detection.
Fields every Microsoft Entra ID Protection risk detections record has (14)
FieldWhat it holds
TimeGeneratedWhen the record was written to the workspace, in UTC.
IdUnique ID of the risk detection, the same as in the ID Protection report and Microsoft Graph.
RiskEventTypeRead by 1 ruleThe type of risk detected (for example passwordSpray). The operation this page is about.
ActivityDateTimeWhen the risky activity happened, in UTC.
DetectedDateTimeWhen ID Protection detected the risk, in UTC. For offline detections it can be hours after the activity.
LastUpdatedDateTimeWhen the detection was last updated (new information, a level change, an administrator's action), in UTC.
UserIdObject ID of the user the detection is about.
UserPrincipalNameUser principal name of the user.
UserDisplayNameThe user's name (Microsoft's table reference describes it as the user principal name).
IpAddressThe client address the risky activity came from, when the detection has one.
LocationWhere the address is, from an IP address lookup (city, state, country or region, coordinates).
RiskStateState of the risk: atRisk, confirmedCompromised, confirmedSafe, remediated, dismissed or none.
CorrelationIdCorrelation 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.
RequestIdRequest 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

ValueMeaningSignal
atRiskThe detection is openThe case the detection rule reports. Microsoft's guidance is to reset the password and revoke tokens if the sign-in was not the user's.Attack signal
remediatedThe risk was remediated, for example by a secure password reset through a risk-based policyWorth knowing
confirmedSafeAn administrator confirmed the sign-in as safeMicrosoft's guidance when the user does use the address in the scope of their duties.Noise

Volume and noise

Low. Microsoft describes it as a confirmed credential validation, so most records deserve action. The documented benign case is an address the user legitimately uses; Microsoft's guidance then is to confirm the sign-in as safe.

Keeping it manageable

  • Look up the sign-in by CorrelationId and check whether it completed, and with which authentication methods; a correct password stopped by MFA still needs a password reset.
  • Check whether other users show sign-ins with the same unusual user agent, application, protocol, address range or timing in the same period (Microsoft gives these steps for a threat intelligence detection whose reason is a password spray).
  • Reset the password and revoke sessions when the activity was not the user's; confirm smart lockout is configured so that sprays do not lock out legitimate users.

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": "passwordSpray",
  "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": "203.0.113.77",
  "Location": {
    "city": "Rotterdam",
    "state": "Zuid-Holland",
    "countryOrRegion": "NL"
  },
  "RiskState": "atRisk",
  "CorrelationId": "00000000-1111-2222-3333-444444444444",
  "RequestId": "00000000-5555-6666-7777-888888888888",
  "Activity": "signin",
  "DetectionTimingType": "realtime",
  "RiskLevel": "high",
  "RiskDetail": "none",
  "AdditionalInfo": [
    {
      "Key": "userAgent",
      "Value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64)"
    }
  ]
}

Attacks this event reveals

Detection rules that read this event:

Frequently asked questions

Does this detection mean the attacker got in?

No. Microsoft states that it means the password was correctly identified, not that any resource was accessed. The sign-in tied to it (`CorrelationId`) shows whether MFA or Conditional Access stopped the attempt.

References