Password spraying: a few common passwords against many accounts
Spraying tries one or two likely passwords across every account to stay under lockout thresholds. How to see it in Entra ID, Okta, or Active Directory logs, and how banned-password lists and smart lockout stop it.
Diagram
Spraying in identity logs
Step 1 of 4
Pattern
One password, hundreds of accounts, slow pace.
time src result count users 09:00 203.0.113.7 50126 1 1 09:01 203.0.113.7 50126 1 1 (x 380 distinct users)
The example on the open step is one illustration, or the fix you can paste into an application you own.
What this page is made of
3 pieces. Each one says what fails, who is affected, what you would notice, and what you change.
Seasonal passwords
- What fails
- Spray lists favor patterns like Season plus year or the company name.
- Who is affected
- Users who chose predictable passwords.
- What you would notice
- Any successful sign-in during a spray window.
- What you change
- Ban common and company-specific terms.
Legacy protocols
- What fails
- IMAP, POP, and basic-auth SMTP often bypass MFA.
- Who is affected
- Mailboxes reachable over those protocols.
- What you would notice
- Sign-ins with clientAppUsed set to IMAP4 or Other clients.
- What you change
- Block legacy authentication with conditional access.
On-premises directories
- What fails
- Kerberos and NTLM failures show spraying against domain controllers.
- Who is affected
- Domain accounts.
- What you would notice
- Event 4771 or 4625 across many users from one source.
- What you change
- Alert on many-user failures and apply fine-grained policies.
A sign-in log query
In Microsoft Sentinel or Log Analytics, group failures by source and count distinct accounts. Tune the threshold to your environment.
SigninLogs | where TimeGenerated > ago(1d) and ResultType == "50126" | summarize users = dcount(UserPrincipalName), attempts = count() by IPAddress, bin(TimeGenerated, 1h) | where users > 30 | order by users desc
Check yourself
Recognition and the fix. Nothing here is a procedure.
How does spraying avoid account lockout?
Sibling techniques
Pages at the same depth, plus a lab and a glossary card for this one.
- 01Login CSRFA login is a state change.
- 02Breached passwords and credential stuffingA password reused from another site will be tried on yours.
- 03Password reset tokensA reset token is a password that expires.
- 04Credential stuffing: spotting reused passwords tried at scaleCredential stuffing replays username and password pairs leaked from other sites.