liveBook · Manning

Dictionary attack

As explained in Fundamentals of Cybersecurity

A dictionary attack tests passwords and predictable variations drawn from a precompiled list of common choices.

A dictionary attack guesses passwords from a prepared list of common choices and predictable variations. Instead of trying every possible character combination, an attacker starts with passwords people are likely to use. The guesses can be tested at a login screen or against stolen password hashes. section 12.3.3

Guessing an account password

To target an account named John, an attacker might try password, qwerty123, john123, and welcome. Details about a person or organization can make the list more targeted. A unique password is harder to guess this way; multifactor authentication (MFA) adds another defense if a password is guessed. section 12.3.3

Related attacks differ in what they try:

  • Brute force systematically tries possible combinations; a dictionary attack concentrates on likely passwords. section 12.3.3
  • Password spraying tries a small set of common passwords across many accounts to avoid account lockouts. section 12.3.3
Attack
Definition
Defense
Hash
Login
Brute Force
Systematically tries all possible password combinations until the correct one is found.
Strong passwords, lockouts, MFA
Yes
Yes
Password Spraying
Attempts a small number of common passwords across many accounts to avoid account lockouts.
Lockouts, user training, MFA
No
Yes
Dictionary
Tests a predefined list of common passwords, words, and predictable variations to guess credentials.
Unique, passwords, MFA
Yes
Yes
Rainbow Table
Uses precomputed hash lookup tables to identify passwords from unsalted password hashes.
Salting, complex passwords
Yes
No

Compare which password attacks target logins or hashes and which defenses the table associates with each. section 12.3.3

How Fundamentals of Cybersecurity covers it

How deep it goes
Defines the technique, gives targeted guesses, and contrasts related attacks without providing an implementation procedure.
Examples
Uses an account named John, guesses including qwerty123 and john123, and a table comparing password attacks.
What it assumes
Starts with familiar passwords and login accounts, defining the attack before comparing it with other password attacks.
What you can do after
Evaluate/understand it as a password threat and identify unique passwords and multifactor authentication as defenses.
How it connects
Connects dictionary attacks to brute force, password spraying, password hashes, unique passwords, and multifactor authentication.

Also explained in

Compare how 3 books explain dictionary attack →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Fundamentals of Cybersecurity. The section links point to the parts of the book it draws on.