Password spraying: detect password guesses spread across accounts
Learn how attackers try a few common passwords across many accounts, what cross-account signals to correlate, and how users and organizations can respond.
Password spraying: detect password guesses spread across accounts
Password spraying tries a small set of common passwords against many accounts, often keeping attempts per account low to avoid lockout thresholds. Unlike single-account brute force, it spreads guesses across users. Credential stuffing instead reuses username/password pairs leaked from another service. Review patterns across accounts, time, IP ranges, user agents and clients—not only each account’s failure count.
| Attack | Targets | Typical pattern |
|---|---|---|
| Brute force | One account | Many password guesses against one user |
| Password spraying | Many accounts | A few likely passwords tried across users |
| Credential stuffing | Many accounts | Reuse of leaked username/password pairs |
An illustrative example is trying one common password against many accounts. It is not a real incident or a recommended password. A single account may show only one or two failures, while the organization’s logs reveal the same time window, IP/network, client traits or account sequence across users.
Detection signals
A short period with similar authentication failures across many users.
Shared IP ranges, user agents, apps, timing or account order; attackers may rotate infrastructure or go slowly.
Successful sign-ins in the same window, followed by failed MFA, or use of a new device, location or app.
Consistent timestamps and correlated records from identity providers, on-premises systems and proxies.
Microsoft’s investigation guidance also recommends checking risky IPs, successful sign-ins, MFA failures, new devices/locations and activity after a successful sign-in. Low-and-slow attempts may stay below per-account lockout thresholds, so per-user counts alone can miss them.
Defenses and response
Apply rate limits to online failures per account and across the service. Consider denial-of-service risk if relying on user lockouts alone. NIST SP 800-63B-4 requires effective rate limiting against online guessing.
Block common, compromised and context-specific passwords (such as organization or product names) when users set passwords. Encourage unique, long passwords from a password manager.
Use MFA with risk signals. Investigate failed MFA, unusual device/location and patterns across accounts; MFA lowers the chance that guessed passwords lead to takeover but does not replace log analysis.
For suspected successful compromise, investigate sign-in and follow-on activity, then secure credentials, sessions and authenticators for accounts in the confirmed or suspected scope. Avoid forcing every user to change passwords without evidence of exposure.
Review legacy protocols and external authentication routes that may bypass current MFA or conditional policies; assess impact before disabling them.
If you receive an unexpected sign-in or MFA prompt, do not approve it. Report it through the organization’s official security channel and open known official sites directly rather than using alert links. If exposure is confirmed or a password was reused, change the affected password and each reused instance to unique values and review sessions.
Sources
[Microsoft Learn: Password spray investigation](https://learn.microsoft.com/en-us/security/zero-trust/security-operations-playbook-password-spray)
[Microsoft Learn: Alert classification for password spray attacks](https://learn.microsoft.com/en-us/defender-xdr/alert-classification-password-spray-attack)
[NIST SP 800-63B-4: Strength of Passwords](https://pages.nist.gov/800-63-4/sp800-63b/passwords/)
[NIST SP 800-63B-4: Authenticators](https://pages.nist.gov/800-63-4/sp800-63b/authenticators/)