Explore our new Cybersecurity Terms Glossary, explained by our experts.
Cybersecurity Terms Glossary
Password spraying is a brute-force technique that tries a small number of common passwords against a large number of accounts, staying below lockout thresholds to avoid detection.

What Is Password Spraying?
Password spraying is a type of brute-force attack in which an attacker tries a few very common passwords against many different user accounts. Traditional brute-force attacks hammer one account with thousands of guesses and quickly trigger a lockout. Spraying turns that around: one or two guesses per account, spread across hundreds or thousands of users, so that no single account ever crosses the lockout threshold.
The attack relies on simple statistics. In any large organisation, someone is likely to be using “Winter2025” or “CompanyName123”. The attacker does not need everyone, just one valid login.
Attackers usually begin by building a list of valid usernames. Email address formats are easy to guess from public sources, and staff names come from LinkedIn, company websites, and data breaches. Some services also reveal whether a username exists through subtle differences in error messages or response times.
They then pick a short list of likely passwords, typically seasonal patterns, the company name with a number, or passwords that appear in breach dumps. Each password is tried against every account, followed by a long pause before the next round. Distributing attempts across many IP addresses, often residential proxies, makes the activity even harder to spot.
Favourite targets are internet-facing login portals: Microsoft 365 and other cloud identity services, VPN gateways, Outlook Web Access, Citrix, and remote desktop services. Legacy authentication protocols such as IMAP and SMTP authentication are especially attractive because they often bypass multi-factor authentication.
Password spraying is a favourite of both criminal and state-sponsored groups. In January 2024, Microsoft disclosed that the Russian group Midnight Blizzard (also known as APT29) had used password spraying to compromise a legacy, non-production test tenant account that lacked MFA, and from there gained access to email accounts of senior Microsoft staff. Iranian groups have run large spraying campaigns against defence, satellite, and pharmaceutical organisations, and the NCSC has warned UK organisations about the technique on several occasions.
Because each account sees only a handful of failures, detection has to look across accounts rather than within them. Useful signals include:
Cloud identity platforms provide sign-in logs and risk detections for these patterns, and a SIEM can correlate them with VPN and on-premises logs.
The most effective defence is MFA on every externally accessible service, combined with blocking legacy authentication that cannot enforce it. Beyond that:
The NCSC’s password guidance supports this approach, encouraging organisations to block common passwords technically rather than imposing complex rules that push people towards predictable patterns.
If monitoring shows that a sprayed password worked, treat it as a live incident. Reset the affected credentials, revoke active sessions and refresh tokens, and review what the account accessed after the successful login, including mailbox rules, newly registered MFA devices, and OAuth app consents. Attackers often register their own MFA method immediately to keep access. Finally, check whether the same password was used on other accounts, because spraying campaigns rarely stop at one victim.
At Privia Security, we simulate password spraying safely as part of our Penetration Test Services, showing you which accounts would fall and which controls would have stopped the attack.
A classic brute-force attack makes many guesses against a single account, which quickly triggers account lockout. Password spraying makes very few guesses per account but targets a large number of accounts, staying under lockout thresholds. Credential stuffing is different again, reusing exact username and password pairs leaked from other breached websites.
Not on its own. Spraying is specifically designed to stay below lockout limits by trying only one or two passwords per account in each round. Lockout is still useful, but it should be combined with multi-factor authentication, banned password lists, smart lockout features, and monitoring that looks for failures across many accounts at once.
Spraying itself only reveals a valid password. If MFA is enforced, the attacker still needs the second factor. The danger lies in gaps: legacy protocols, test accounts, or service accounts without MFA, as the Midnight Blizzard incident showed in 2024. Attackers may also follow a successful spray with MFA fatigue prompts or help desk social engineering.
You May Be Interested In These
We use a few cookies that are needed to make this website work, and they are always on. We would also like to set analytics cookies, to see which pages are useful; functional cookies, so that our live chat works; and advertising cookies, to measure our campaigns. We will not set any of those until you say yes, and you can change your mind at any time from the Cookie Settings link in the footer.
Choose the cookies you are happy for us to use. Strictly necessary cookies are always on; everything else is off until you turn it on.
These cookies keep the website working: they hold your security checks, your form submissions and the choice you make here. The site cannot run without them, so they are always on.
These let our live chat open and remember your conversation, and let the newsletter sign-up work. Switch them off and the chat window will not appear.
These tell us which pages are read and how people find us, so that we can improve the site. The reports are about groups of visitors, never about you personally.
These let us measure our advertising and show you our adverts on other websites, such as LinkedIn, Google and Meta. Switch them off and you will still see adverts, but they will be less relevant.