Explore our new Cybersecurity Terms Glossary, explained by our experts.

View the Glossary View the Glossary
PRIVIA

Cybersecurity Terms Glossary

What Is Password Spraying?

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.

Illustration for the cybersecurity term Password Spraying
Home / Blog / Cybersecurity Terms / What Is Password Spraying?
17 November 2026

What Is Password Spraying?

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.

How a Spraying Campaign Works

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.

Real-World Examples

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.

Detecting Password Spraying

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.

Preventing It

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.

Responding to a Successful Spray

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.

FAQ – Frequently Asked Questions

What Is the Difference Between Password Spraying and Brute Force?

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.

Does Account Lockout Stop Password Spraying?

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.

Can Password Spraying Bypass MFA?

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.

Related Terms

You May Be Interested In These

What Is a Cold Boot Attack?

Cybersecurity Terms

17 November 2026

What Is a Cold Boot Attack?

Read More
What Is ffuf?

Cybersecurity Terms

17 November 2026

What Is ffuf?

Read More
What Are Sigma Rules?

Cybersecurity Terms

17 November 2026

What Are Sigma Rules?

Read More