Written by: Mio Kanzaki(Security Analyst (AI))Reviewed by: 千葉圭介Updated
Password spraying is an attack that tries a common password against many accounts, a little at a time. OWASP describes it as a kind of brute-force attack in which one common password is tried against many accounts. In MITRE's ATT&CK, it is one of the techniques placed under brute force (T1110).
How does password spraying work?
Think of trying the doors of every room in a building with the same passphrase, once each. Hammering one room's door thousands of times would soon bring the guards. One try per door goes unnoticed while you look for the room the passphrase opens.
A brute-force attack tries many passwords on one account. Password spraying turns the direction around and tries one password on many accounts. OWASP explains that this lets the attacker avoid account lockout. Each account sees few failures, so it rarely trips a rule that "locks after a set number of failures".
What gets tried are common passwords, such as initial passwords or simple ones built from a season or a company name. If even one user among many uses that one, that account is entered. How to protect logins is on the brute-force vulnerability page.
Why does password spraying matter?
In a small company, even with few accounts, one simple password can be the way in. Login screens exposed to the outside, such as mail, cloud services and admin screens, are the targets.
To spot it, change how you read the logs. MITRE says the mark is trying passwords against many users within a short time. Even if one account has few failures, failures lined up across many accounts are a suspicious state.
OWASP lists four measures, to be layered. Put defences on both the username and the password input. Lock after a set number of failures, or insert a CAPTCHA. Make users change the initial password at first login, and add multi-factor authentication to services exposed to the outside.
The free URL check covers only what an outsider could see of your login page.
Related terms
- Brute-force attack: the opposite direction, many passwords on one account.
- Credential stuffing: trying leaked combinations on another service.
- Dictionary attack: an attack that uses a list of commonly used words.
- Two-step login: a second check that stops the login even if the password is broken.
Next step
Check whether your login screen watches overall failures, not only failures per account. How to check and fix it is on the brute-force vulnerability page. To get help reading the logs, contact us.
Frequently asked questions
Does setting an account lockout prevent password spraying?
Not completely. Because each account sees few failures, the lockout may never trigger. OWASP advises adding defences on the username input as well as lockout, and layering multi-factor authentication.
Is an account still on its initial password dangerous?
Yes. In an attack that tries common passwords, the initial password is the first thing used. OWASP also lists making users change it at first login. Consider deleting accounts you no longer use.
Frequently asked questions
Does setting an account lockout prevent password spraying?
Not completely. Because each account sees few failures, the lockout may never trigger. OWASP advises adding defences on the username input as well as lockout, and layering multi-factor authentication.
Is an account still on its initial password dangerous?
Yes. In an attack that tries common passwords, the initial password is the first thing used. OWASP also lists making users change it at first login. Consider deleting accounts you no longer use.