Dictionary Attacks - Guessing Passwords with Words
About 2 min read
A dictionary attack is a method of guessing passwords using a list of words found in a dictionary or commonly used passwords. Whereas a brute-force attack tries every possible combination, a dictionary attack narrows its scope to the passwords people tend to choose, making its attempts more efficient. Common passwords such as "password", "123456", and "qwerty" can be cracked in a short time. According to NordPass's 2024 survey, "123456" was the most commonly used password.
Diagnostic Use in Penetration Testing
Dictionary attacks are not a tool for attackers alone: in penetration tests and password audits, they are also used by defenders to verify the password strength of their own organization. Running a dictionary attack against an organization's passwords surfaces those containing easily guessed patterns, such as dictionary words, the company or department name, and birthdays. Because passwords that people come up with themselves tend to concentrate on such patterns, some of them may be cracked in a short time. These diagnostic results provide concrete grounds for alerting users, revising password policies, and moving toward randomly generated passwords.
Dictionary Attack Techniques and Their Evolution
A basic dictionary attack tries word lists as-is, but advanced techniques apply transformation rules such as appending numbers to the end of a word, changing letter case, or substituting characters with symbols (e.g., a → @, e → 3). Lists of passwords leaked in past data breaches are also used as dictionaries.
The Difference from Brute-Force Attacks
A brute-force attack exhaustively tries every combination, from "aaaa" to "zzzz", so in theory it can crack any password, but long passwords take an enormous amount of time. A dictionary attack is fast because it limits its scope to the patterns people are likely to choose, yet it is powerless against random passwords. In an actual attack, one approach is to first attempt a dictionary attack and switch to brute force only if it fails. In addition, a password spray attack is a variant that tries a small number of passwords against many accounts, evading account lockout.
Defenses Against Dictionary Attacks
Randomly generated passwords do not rely on words or patterns found in a dictionary, so they are hard to guess with a dictionary attack. Passwords thought up by humans tend to unconsciously include dictionary words and patterns, whereas randomly generated passwords have no such bias. On the service provider side, defensive measures include limiting the number of login attempts, introducing CAPTCHA, and checking against lists of leaked passwords.
Was this article helpful?
Related Terms
- Password Spraying - Low-and-Slow Account AttacksPassword spraying tests a few common passwords across many accounts to evade lockouts. Learn detection methods and why unique passwords are your defense.
- Encryption in Transit - Protecting Data on the WireEncryption in transit secures data moving across networks using TLS, VPNs, or SSH. Learn why unencrypted traffic is an easy target for eavesdropping.
- Principle of Least Privilege - Minimize PermissionsLeast privilege grants users only the minimum access they need. Learn how it limits blast radius, prevents insider threats, and supports zero trust.
- Passphrases - Memorable Yet Strong PasswordsA passphrase combines multiple words into a long password that is easier to remember than random characters yet delivers high entropy, making it ideal for master passwords and encryption keys.