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.

Lesson 9 of 29 · 10 min read · practice only with authorization

Diagram

Spraying in identity logs

Follow the path. One example at a time.

Step 1 of 4

Pattern

One password, hundreds of accounts, slow pace.

Illustration: Pattern
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.

  1. 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.
  2. 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.
  3. 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.

1 / 3

How does spraying avoid account lockout?

Sibling techniques

Pages at the same depth, plus a lab and a glossary card for this one.

  1. MapBroken authentication and login bypass: the flaws that let someone sign in as someone elseThe authentication failures behind most account takeovers — logic flaws in login and reset flows, missing rate limits, weak MFA enrollment, verbose errors, and default credentials — and a checklist to review a login flow end to end.
  1. 01Login CSRFA login is a state change.
  2. 02Breached passwords and credential stuffingA password reused from another site will be tried on yours.
  3. 03Password reset tokensA reset token is a password that expires.
  4. 04Credential stuffing: spotting reused passwords tried at scaleCredential stuffing replays username and password pairs leaked from other sites.

Practice

  1. LabTerminal mission: One password, eleven accountsRead Kerberos pre-authentication failures (4771) on a domain controller, recognise a password spray by its shape, and find which sprayed accounts then received a TGT.

Glossary

  1. CardPassword sprayingA few common passwords are tried across many accounts, often staying under per-account lockout thresholds.