Security operations

What Is a Dictionary Attack? How It Works and How to Stop It

A dictionary attack does not try every possible password — it tries the likely ones first: common words, names, keyboard patterns and passwords leaked in earlier breaches.

Cysoro Security TeamPublished · 9 min read
password1234 ✗qwerty ✗Summer2026! ✗letmein ✗ MATCHrandom 20-char passwordnot in any dictionary ✓ SECURITY OPERATIONS Dictionaryattack They try the likely passwords first.
Quick answer

A dictionary attack is a type of brute-force attack in which an attacker systematically tries likely passwords first — common words, names, keyboard patterns and real passwords leaked in earlier breaches — instead of trying every possible character combination. It works because most people choose memorable, predictable passwords, and it is stopped by long, unique passwords, breach screening, login throttling and multi-factor authentication.

Key takeaways

  • A dictionary attack tries likely passwords first, so a common word with a predictable twist is guessed quickly.
  • The attacker's dictionary includes real passwords from earlier breaches, not just words from a language dictionary.
  • Long, unique passwords plus multi-factor authentication and login throttling are the defenses that actually stop it.

Most passwords are not cracked by trying every possible combination. They are cracked by trying the likely ones first — and people are far more predictable than they think. A dictionary attack works through a list of common words, names, keyboard patterns and real passwords leaked in earlier breaches, and it succeeds whenever your password, or something close to it, is on that list.

What is a dictionary attack?

A dictionary attack is a type of brute-force attack in which an attacker systematically tries likely passwords first — common words, names, keyboard patterns and real passwords leaked in earlier breaches — instead of trying every possible character combination. MITRE ATT&CK groups it under T1110: Brute Force, which covers guessing passwords online and cracking stolen password hashes offline.

The name is misleading in one way: the attacker's "dictionary" is not a language dictionary. It includes common passwords such as "password1234", "qwerty" and "letmein", inventive spellings and letter substitutions, and millions of passwords discovered from previous breaches. An attacker who holds a stolen database of password hashes will try those leaked passwords first, because so many people reuse them.

Dictionary attacks are fast against human-chosen passwords and slow against random ones. That gap is the whole story of this attack: it exploits how people actually choose passwords, not a weakness in the login system itself.

How does a dictionary attack work?

A dictionary attack works in four steps: build or obtain a wordlist, apply mutation rules to each entry, try each candidate against the target, and stop when one succeeds. The trying can happen online, against a live login page, or offline, against stolen password hashes.

How a dictionary attack works 1Build a wordlistcommon words, names,leaked passwords,keyboard patterns 2Apply rulescapitalize, add digits,swap letters forsymbols 3Try candidatesonline against a login,or offline againststolen hashes 4Log inone match is enough:the attacker is in,with your password Online attacks are throttled by the login page; offline attacks against stolen hashes are limited only by hardware.
The four steps of a dictionary attack. Illustration by Cysoro.

Online, the attacker sends guesses to the real service, such as a website's login page. That is slow, because the service can throttle or lock the account, and because each guess needs a network round trip. Offline, the attacker works on a stolen database of password hashes on hardware they control, trying millions of candidates per second with no throttling at all.

That difference matters for defense. Throttling and lockouts help online, but they do nothing offline — which is why how a service stores passwords matters as much as how strong your password is.

Dictionary attack vs brute force: what is the difference?

A brute force attack tries every possible combination of characters until one works: a, b, c, then aa, ab, and so on. It is guaranteed to succeed eventually, but the number of combinations grows exponentially with length, so each extra character multiplies the work. A dictionary attack tries likely candidates first, and only falls back to brute force if the dictionary fails.

Dictionary attackBrute force attackPassword sprayingCredential stuffing
TriesLikely passwords firstEvery combination in orderOne weak password, many accountsLeaked username and password pairs
TargetOne account, many guessesOne account, all guessesMany accounts, few guesses eachMany accounts, known pairs
Speed vs human passwordsFastSlow for long passwordsFast, and evades lockoutsFast when passwords are reused
Best defenseLong, unique, unlisted passwordLengthMFA and breach screeningUnique passwords per site
MITRE T1110 sub-techniquePassword guessing / crackingPassword guessing / crackingT1110.003T1110.004

MITRE ATT&CK lists four sub-techniques under T1110: password guessing (T1110.001), password cracking (T1110.002), password spraying (T1110.003) and credential stuffing (T1110.004). A dictionary attack is not a separate MITRE technique — it is the method used inside password guessing and password cracking.

Password spraying deserves special attention because it defeats a common defense. By trying only one or two passwords per account across many accounts, it stays under most lockout thresholds. MITRE's detection guidance flags multiple authentication failures for valid or invalid users followed by success from the same IP or user as a key signal.

What is in an attacker's dictionary?

An attacker's dictionary is a wordlist built from everything people actually use as passwords. The largest ingredient is real passwords from earlier breaches: when a database of credentials is stolen, those passwords become the next attacker's starting list, because reuse is so common.

  • Common passwords: "password", "123456", "qwerty", "letmein" and their numbered variants.
  • Words and names: dictionary words, first names, pet names, sports teams, cities and company names.
  • Keyboard patterns: "qwerty", "1qaz2wsx", "asdfgh" and other patterns typed by position, not meaning.
  • Target-specific words: words from the victim's website, job ads, social media and public documents.
  • Leaked passwords: millions of real passwords from previous breaches, which is the most effective ingredient.
  • Mutations: every word with rules applied — capitalizing the first letter, swapping "a" for "@" or "o" for "0", adding a year or an exclamation mark.

Hybrid attacks are the reason a "clever" password is often not clever at all.

A password such as "Summer2026!" follows a pattern — a season, a year, a symbol — that mutation rules generate in seconds. The OWASP Password Storage Cheat Sheet notes that attackers repeat the process with large lists of candidate passwords, including lists from other compromised sites, dictionaries and brute force, and that with fast hardware the cost of cracking is relatively small when best practices for hashing are not followed.

Online vs offline dictionary attacks

Online and offline dictionary attacks look the same from the attacker's side — try candidates until one matches — but they have very different limits, and therefore different defenses.

An online attack sends guesses to the live service. The service can slow it down with login throttling, exponential back-off, account lockouts and CAPTCHAs, and it can detect the pattern in its logs. The attacker can evade some of this by spreading guesses across many IP addresses or by switching to password spraying, but the service still controls the pace.

An offline attack happens after a database of stored passwords has been stolen. The attacker hashes each candidate and compares it with the stolen hashes, on their own hardware, with no throttling and no lockout.

The only thing slowing them down is the hashing algorithm the service chose. That is why OWASP recommends Argon2id, with a minimum of 19 MiB of memory, 2 iterations and 1 degree of parallelism. Fast general-purpose hashes such as MD5 and SHA-256 are dangerous for password storage, because they let attackers perform large numbers of guesses quickly.

Salting matters here too. A salt is a unique random value added to each password before hashing, and it blocks precomputed tables, including rainbow tables, and means identical passwords produce different hashes, so each one must be cracked separately.

What does a dictionary attack look like in practice?

Imagine an attacker has a list of employee email addresses from a company's website. They try the most common passwords against one account, then the next, then the next — or they try many passwords against a single high-value account, such as an administrator or a finance user.

A realistic example, using fictional names, shows the pattern. The attacker tries "Welcome2026", "Company123!", "Summer2026!" and the employee's pet name plus a birth year — all generated by mutation rules from a short wordlist. None of these is a random password, and all of them are plausible choices a real person would make. If the account has no multi-factor authentication and no throttling, one of them may work within minutes.

That is also why a data breach is so dangerous even if you were not the target. Our article on what a data breach is explains how stolen credentials from one breach become the dictionary for the next attack — and why the 23andMe breach, which used credential stuffing with reused passwords, affected 6.9 million users.

How do you know if you are being dictionary-attacked?

For an individual, the sign is usually a login alert or a locked account you did not cause. For a service, the signs are in the authentication logs, and MITRE's detection guidance for T1110 describes them precisely.

  • High volume of failed logons followed by a success from a suspicious user, host or timeframe.
  • Multiple authentication failures for valid or invalid users followed by success from the same IP or user.
  • Password spraying patterns: brute-force attempts across a user pool within short time intervals.
  • Logins from unusual locations or infrastructure, especially after a failed-guess burst.
  • Multiple failed authentications in unified logs, such as loginwindow, sshd or SaaS audit logs.

If you see a burst of failed logins on one account, treat it as an attack in progress: check whether the account has multi-factor authentication, whether the password is unique, and whether any session was created. If you run a service, correlate failed logins across platforms rather than looking at one log in isolation.

How do you stop a dictionary attack as a user?

As a user, the defenses are simple, and they work. The goal is to make your password unguessable by a dictionary and useless on its own if it is guessed.

Five defenses that stop dictionary attacks 1Long password15 characters ormore, random or apassphrase 2Uniquenever reuse apassword acrosssites 3Managera password managermakes uniquenesspractical 4MFAa second factor meansa guessed passwordis not enough 5Check leaksif a password hasleaked, change iteverywhere NIST SP 800-63B Rev. 4 requires 15 characters for a single-factor password and allows at least 64.
Five user defenses against dictionary attacks. Illustration by Cysoro.
  1. Use a long password. NIST SP 800-63B Rev. 4 requires a minimum of 15 characters for passwords used as a single authentication factor, and verifiers must allow at least 64 characters. Length, not complexity, is what matters.
  2. Make it unique. Never reuse a password across sites, or one breach hands the attacker the key to every other account.
  3. Use a password manager. NIST requires verifiers to allow password managers and autofill, because random, unique passwords are only practical with one.
  4. Turn on multi-factor authentication. MITRE lists MFA as a mitigation for brute force, and it means a guessed password alone is not enough to log in.
  5. Check whether your password has leaked. Use our free pwned password checker — if it appears in a known breach, change it everywhere you used it.

Generate a new password with our free password generator.

Or make a passphrase with the passphrase generator.

Test its strength with the password strength checker. Do not impose complexity rules on yourself that push you toward predictable mutations: NIST SP 800-63B Rev. 4 does not require composition rules, because they drive people toward the patterns attackers already have in their dictionaries.

Avoid predictable twistsAdding "!" or "2026" to a common word does not make it strong — mutation rules generate those variants first. Randomness and length are what count.

How do developers stop dictionary attacks?

Developers stop dictionary attacks by making each guess expensive, limiting how many guesses an attacker can make, and screening passwords against the same lists attackers use.

  • Screen passwords against a breach corpus. Block common and previously breached passwords at registration and password change — the same dictionaries attackers use are freely available for defenders.
  • Require length, not composition. Per NIST SP 800-63B Rev. 4, require a minimum of 15 characters when a password is the only authenticator, accept up to at least 64 characters, and do not impose character-composition rules.
  • Hash with a slow, memory-hard algorithm. OWASP recommends Argon2id with a minimum of 19 MiB of memory, 2 iterations and 1 degree of parallelism; scrypt or bcrypt with a work factor of 10 or more are acceptable fallbacks.
  • Throttle failed attempts. Use login throttling with exponential back-off or an account-lockout threshold, and consider conditional access to block logins from non-compliant devices or outside defined IP ranges, as MITRE recommends.
  • Require multi-factor authentication, especially on externally facing services.
  • Reset accounts known to be part of breached credentials, either immediately or after detecting brute-force attempts, as MITRE recommends.

For a wider starting point, our small business cybersecurity checklist covers passwords, MFA and patching alongside backups and device security.

The bottom line

A dictionary attack succeeds because people choose passwords the way people always have: a familiar word, a name, a year, a symbol. The attacker does not need to be clever — they only need a good wordlist, and earlier breaches have already written it for them.

The fix is equally simple: a long, random, unique password for every account, a password manager to make that practical, and multi-factor authentication so a guessed password is not enough. Check your current passwords with the free pwned password checker, and replace any that appear in a known breach today.

Frequently asked questions

What is a dictionary attack in simple terms?

A dictionary attack is when an attacker tries to guess your password by working through a list of likely passwords — common words, names, keyboard patterns and passwords stolen in earlier breaches — instead of trying every random combination. If your password is on that list, or close to it, it is guessed quickly.

What is the difference between a dictionary attack and a brute force attack?

A brute force attack tries every possible combination of characters until one works. A dictionary attack is a smarter kind of brute force: it tries likely candidates first. Dictionary attacks are faster against human-chosen passwords, while pure brute force is the fallback for passwords that are not in any list.

What is in an attacker's dictionary?

Far more than words from a language dictionary. It includes common passwords, names, sports teams, keyboard patterns, words from a target's website, and above all real passwords leaked in earlier breaches, plus predictable variations such as adding numbers or swapping letters for symbols.

Can a dictionary attack crack a strong password?

Not if the password is long, random and not in any leaked list. A random 20-character password or a passphrase of several uncommon words is not in a dictionary, and trying every combination would take far too long. Length and randomness are what make a password resistant.

What is a hybrid dictionary attack?

A hybrid attack starts with a dictionary word and applies rules to it: capitalizing the first letter, swapping a letter for a lookalike symbol, or appending a year or an exclamation mark. That is why a common word with a predictable twist is barely safer than the word on its own.

How do you stop a dictionary attack?

Use a long, unique password for every account, preferably from a password manager, turn on multi-factor authentication, and use services that throttle failed logins and screen new passwords against known breached passwords. For developers, slow memory-hard hashing such as Argon2id makes offline cracking far more expensive.

Is password spraying the same as a dictionary attack?

No, but they are related. Password spraying tries one weak password against many different accounts, while a dictionary attack tries many passwords against one account. Both are sub-techniques of brute force in MITRE ATT&CK T1110, and both are stopped by the same defenses.

Does changing my password often help against dictionary attacks?

Not on its own. NIST SP 800-63B Rev. 4 does not require periodic password rotation; it requires changing a password on evidence of compromise. A long, unique password that has never leaked is far better than a short password changed every month.

Sources

  1. MITRE ATT&CK — Brute Force, Technique T1110
  2. OWASP — Password Storage Cheat Sheet
  3. NIST — Digital Identity Guidelines Implementation Resources, FAQ on SP 800-63B-4
  4. NIST — SP 800-63B Rev. 4, Digital Identity Guidelines: Authentication and Lifecycle Management
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against MITRE ATT&CK T1110, the OWASP Password Storage Cheat Sheet and NIST SP 800-63B Rev. 4.

How we write and fact-check →

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free