Password Spraying

Password spraying is a brute-force attack that tries a few common passwords against many usernames, rather than many passwords against one.

A traditional brute-force attack hammers a single account until the account gets locked. A password sprayer turns the attack on its side. They collect a long list of usernames (often from a company directory, or by guessing the email format), then try one popular password, such as Summer2026!, against each of them. Then they wait, and try the next password. Each account sees only an occasional failed login, which is too few to trigger a lockout. In a large organization, somebody has almost certainly chosen the password being tried.

In January 2024, Microsoft disclosed that the Russian state-sponsored group Midnight Blizzard had used password spraying to break into a legacy test account that did not have multi-factor authentication. From there, the attackers reached the email accounts of some of Microsoft's senior leadership.

To defend against password spraying:

  • Require multi-factor authentication, so a guessed password is not enough on its own.
  • Reject passwords that appear on common password lists when users choose them.
  • Watch for failed logins spread across many accounts from the same source, as well as repeated failures on one account.

Further Reading

Learn it hands-on

Safe treatment of passwords is essential to a secure authentication system - yet many websites get this wrong.