Short Answer Password spraying is a cyber attack where someone tries one or two very common passwords, such as “Welcome@123”, on many user accounts at once. The attacker goes slowly, so no single account locks. The name comes from “spraying” a few guesses across many accounts, like paint over a wall. A second sign-in check, called multi-factor authentication (MFA), can stop the attacker even after a correct guess.
What is Password Spraying?
In cyber security, password spraying is a way of guessing passwords. However, it turns the usual idea upside down. Instead of guessing many passwords for one person, the attacker guesses one password for many people.
Here is why that works. Most companies lock an account after a few wrong passwords. So an attacker who keeps guessing on one account gets blocked fast. But if the attacker tries “Welcome@123” once on each of 500 accounts, every account sees only one failed login. No account locks, yet the attacker has made 500 guesses. If even one person uses that password, the attacker gets in.
Microsoft describes a password spray attack in the same way: many accounts attacked with common passwords. Security teams call it an identity attack, because it goes after people’s work logins, not the computers themselves.
Key Words to Know
- User account: the login a person uses for work tools, such as email, usually a work email address and a password.
- Failed login: a sign-in try with the wrong password.
- Account lockout: a rule that blocks an account for a while after too many failed logins.
- Sign-in log: a record of every login try, with the time, the account and the address it came from.
- MFA (multi-factor authentication): a second check after the password, such as an app prompt or a one-time code. Each kind of check is one of the authentication factors.
How a Password Spraying Attack Works
A password spraying attack follows a simple pattern. We describe it here so defenders can spot it, not so anyone can run it.
- Collect user names: the attacker builds a list of staff email addresses. Many companies use one pattern, such as firstname.lastname, so a few names from the website are enough to guess the rest.
- Pick a few passwords: next, the attacker chooses common or seasonal passwords, for example the company name plus the year, or “Summer@2026”.
- Try one password on every account: the attacker tries the first password once on each account.
- Wait, then repeat: then the attacker pauses for hours, so each account’s count of wrong tries goes back to zero, and tries the next password.
- Use any account that opens: finally, the attacker signs in, reads mail, looks for more passwords and uses that access to reach other accounts and systems.
That last step turns a guessed password into an account takeover, where a stranger controls a real person’s account.

An Example From a Coimbatore Textile Exporter
For example, a textile exporter in Coimbatore uses Microsoft 365 for email. One morning, the IT head checks the sign-in log. At 2 a.m., each of 300 accounts had exactly one failed login. All of them came from the same few addresses abroad.
One account did not fail. A merchandiser had set the password “Kovai@2026”, the local name for Coimbatore plus the year. The attacker guessed it on the first round. Still, the merchandiser had MFA turned on, so the attacker hit the second check and could not get in. The IT head reset the password the same morning and banned the city name and the company name in passwords.
Why Do These Attacks Succeed?
Password spraying works because people and systems are predictable. In fact, an attacker only needs one weak password among hundreds of accounts.
- Easy patterns: people pick passwords they can remember, such as the company name, the city or the season plus the year.
- Shared starting passwords: new joiners often get the same first password, and some never change it.
- Old systems without MFA: some older email apps and sign-in methods accept only a password, so a correct guess is enough.
- Lockout rules count per account: most lockout rules count wrong passwords on one account. They do not notice one wrong password across many accounts.
As a result, one weak password or one unused account can let an attacker in, even when everyone else follows the rules.
Password Spraying vs Credential Stuffing and Brute Force Attack
People often mix up these attacks, because all of them target passwords. The difference lies in what the attacker already knows. Credential stuffing uses real username and password pairs leaked from another website. A brute force attack tries many passwords on one account until one works. In contrast, password spraying tries a few common passwords on many accounts.
A dictionary attack is a close cousin: it tries a list of common words, usually on one account.
| Question | Password Spraying | Credential Stuffing | Brute Force |
|---|---|---|---|
| Passwords tried | A few very common ones | Real leaked pairs | Many, often every mix |
| Accounts targeted | Many at once | Many at once | Usually one |
| Tries per account | One or two | Often one | Hundreds or more |
| Best defense | Block weak passwords, MFA | Unique passwords, MFA | Lockout, MFA |
Signs and Detection of Password Spraying
Spraying is quiet on each account, but it leaves a clear pattern in the sign-in logs. So detection means looking across all accounts together, not one at a time. Watch for these signs:
- Many accounts with one failed login each, from the same address or a small group of addresses.
- Failed logins at odd hours, such as 2 a.m., when staff are asleep.
- Login tries from countries where the company has no staff.
- A successful login right after a long run of failures from the same address.
- Failed logins through old email apps or settings that your staff no longer use.
Spotting these patterns by hand is slow. That is why many companies use identity threat detection and response, which watches logins and raises alerts on suspicious identity activity.
Alerts in Microsoft Entra ID Protection
Microsoft Entra ID Protection has a “Password spray” risk detection. Microsoft watches spray patterns across all Microsoft Entra customers. The alert fires only when an attacker guesses a user’s password correctly. In other words, it tells you the password is known, even if the attacker did not get past MFA. Treat it as a reason to reset that password at once. Full details of this alert need a Microsoft Entra ID P2 license. Other plans see a general “Additional risk detected” alert instead.
Ways to Prevent Password Spraying
No single step stops every attack. Instead, a few layers work together, so a guessed password alone is far less likely to open an account.
Steps for Every Account
- Turn on MFA for everyone: multi-factor authentication is the strongest single step. Even a correct guess then meets a second check the attacker cannot pass.
- Block common and company-name passwords: stop staff from choosing the company name, the city, the season or “Password” with a number.
- Turn off old sign-in methods: older email apps that skip MFA give attackers a back door, so block them.
- Use one sign-in for all apps: single sign-on puts every app behind one login with one strong policy, instead of many separate passwords.
- Give each new joiner a unique first password: and make them change it on first login.
These steps fit inside wider identity and access management, the rules and tools that decide who can sign in and what they can reach.

Protection in Microsoft Entra ID
Microsoft Entra ID, the sign-in service behind Microsoft 365, offers built-in protections against password spraying:
- Microsoft Entra Password Protection: it blocks known weak passwords and their variants when someone changes or resets a password. Passwords already in use stay as they are until the next change, so also ask staff with weak passwords to change them. Admins can add their own banned words, such as the company name or city. Microsoft says it helps defend against password spray attacks.
- Smart lockout: it locks out sign-ins that look like an attacker, while real users can often keep working. It is always on for Microsoft Entra customers. It still counts wrong tries on each account, so one try per account may not trip it. For that reason, Microsoft Entra ID also blocks sign-ins from addresses that behave like attackers, even when the password is right.
- Blocking legacy authentication: legacy means old sign-in methods that do not support MFA. A Conditional Access policy, which is a sign-in rule, can block them. Companies without Conditional Access can turn on security defaults, which also block them. Microsoft says most password spray attacks use these old methods.
On AWS, staff often sign in through IAM Identity Center. It turns on MFA by default for users created in it, so a guessed password alone does not open their AWS access.
What to Do After a Password Spraying Attack
If the logs show a password spraying attack, act calmly and in order. First, find every account that had a successful login from the attacker’s addresses. Then work through these steps:
- Reset affected passwords: change the password on every account that opened, and sign the user out on every device.
- Check sign-in logs: look at what the attacker did after signing in, and from where.
- Check mailbox rules: attackers often add hidden rules that forward mail outside. Remove any you did not set.
- Force MFA sign-up: make every user without MFA register before their next login.
- Tell the IT or security team: so they can block the attacker’s addresses and watch for a second round.
Afterward, many companies move toward zero trust, where the company checks every login every time, wherever it comes from.
Reporting to CERT-In in India
In India, CERT-In (the Indian Computer Emergency Response Team) is the national agency for cyber incidents. Its directions of 28 April 2022 make it mandatory for service providers, intermediaries, data centers, companies and government bodies to report certain incidents within 6 hours of noticing them or being brought to notice about them. The list includes unauthorized access of IT systems or data, and targeted scanning or probing of critical networks or systems. So if an attacker signed in to a real account, check with your security lead whether you must report it, by email to incident@cert-in.org.in.
Frequently Asked Questions About Password Spraying
What does password spraying mean?
What is a password spraying attack in cyber security?
What is brute force password spraying?
What is a password spray attempt?
What is a password spraying notification?
How is password spraying different from a dictionary attack?
Does password spraying activity mean my account was hacked?
References
- Blocking weak passwords against password spray: Microsoft Learn, Password protection in Microsoft Entra ID
- Password spray alerts: Microsoft Learn, What are risk detections? (Microsoft Entra ID Protection)
- CERT-In 6-hour reporting rule: CERT-In, Directions under section 70B(6) of the IT Act, 2000 (28 April 2022)
Get the Latest Terms & Insights.
New encyclopedia terms, threat intelligence, and architecture decisions, by email.
