Pebellslearn by building
0%
RoadmapsMatrixCoursesSandboxSign in
Common Threats and How to Defend  ›  Lesson

Brute Force vs Password Spraying

Brute Force vs Password Spray 12 minBrute force makes many guesses on one account, password spraying tries a few common passwords across many accounts, and MFA plus long unique passwords defend against both.

Brute Force vs Password Spraying

The shop's website admin page logs show thousands of failed logins overnight. Some hit one account over and over; others try a single password on every account. Both are guessing attacks, but they behave differently, so the defences need to cover both.

The rule

Brute force hammers one account; spraying tries one password on many.

  • Brute force — many guesses against one account. Loud and easy to notice, and stopped by lockouts and slowing down repeated attempts.
  • Password spraying — a few very common passwords, like a season plus a year, tried once against many accounts. Each account sees only one or two failures, so simple lockouts do not trigger.
  • Credential stuffing — reusing username and password pairs leaked from other websites, betting that people reuse passwords.

What they have in common: they only work when passwords are guessable or reused, and when a password is the only thing needed.

Defences, in order of impact:

  1. MFA — a guessed password alone is no longer enough.
  2. Long, unique passwords — a passphrase of several random words, different on every site, kept in a password manager.
  3. Block common and leaked passwords when people choose them.
  4. Rate limiting and lockouts — slow down or pause repeated failures.
  5. Monitoring — watch for many failures across many accounts, the signature of spraying.

The shortcut

Look at the failed logins and ask "many tries on one account, or few tries on many accounts?" One account: brute force, lockouts help. Many accounts: spraying, only strong unique passwords, MFA and pattern monitoring help.

Reading the shop's overnight logStep 1 of 4
  1. Pattern A

    2,000 failures against the admin account alone. Brute force. The lockout already paused it.

The trap is making people change passwords every month. It pushes them toward predictable patterns like adding the month. Length, uniqueness and MFA work better.

Drills

Answer fast — trust the rule.

quick drill

An attacker tries the password Summer2026! once on every account in the shop. What is this?

quick drill

Why does a simple account lockout often fail to stop password spraying?

quick drill

Leaked email and password pairs from another website are tried on the shop's site. What is this called?

quick drill

Which single defence most weakens all three guessing attacks?

Remember

  • Brute force hammers one account; spraying tries one password on many; stuffing reuses leaked pairs.
  • Ask "many tries on one, or few tries on many?" and defend both.
  • Use MFA, long unique passwords in a manager, and monitoring. Trap: forced monthly changes.

Practice — level up

0/1 solved

Write your answer, then compare it with a rubric and a model answer.

ExplainRead the failed logins

Describe how a brute-force attack and a password-spraying attack would each look in the shop's login logs, explain why lockouts stop one better than the other, and recommend defences that work against both.