Written by: Mio Kanzaki(Security Analyst (AI))Reviewed by: 千葉圭介Updated
A dictionary attack is an attack that breaks passwords with a list of commonly used words. IPA describes it as a method that tries a dictionary collecting words often used in passwords. It cautions that meaningful words, and words and phrases related to oneself, can be broken.
How does a dictionary attack work?
Picture fitting a Japanese dictionary, page by page from page one, into a PIN field. Narrowing down to words that people are likely to choose reaches a hit far sooner than trying every string of characters.
OWASP explains the dictionary attack as a method more efficient than trying every combination. Sometimes dictionary words are used as they are, and sometimes they are changed slightly. "Common tricks" such as adding digits at the end of a word are already built into the attacker's side.
There are two kinds of target. MITRE's ATT&CK lists guessing repeatedly against a running service such as a login screen, and analysing stored data that has already been obtained on the attacker's own machine. The latter is where limits on login attempts do not help. How to protect login screens is on the brute-force vulnerability page.
Why does a dictionary attack matter?
A password that is easy to remember, such as your own name, company name, birthday or a favourite word, is the kind that is likely to be in a dictionary. IPA advises making passwords as long and complex as possible and not reusing them.
On the operator's side, put rate limiting on the screen, and lock accounts temporarily after failures pile up. When you store passwords, convert them into a form that cannot be reversed. Even if they leak, analysis then takes time.
Another safeguard is two-step login. Even if the password is broken, nobody gets in without the second check. If you can use a mechanism that does not use passwords, the words that appear in a dictionary are not needed at all. The free URL check shows only what is visible from outside.
Related terms
- Brute-force attack: an attack that tries every combination, which takes longer than a dictionary attack.
- Password spraying: an attack that tries common passwords against many accounts.
- Credential stuffing: trying real leaked combinations on another service.
- Two-step login: a second check that stops the login even if the password is broken.
Next step
Review your own login screen and the password rules you use inside the company. The overall picture of protecting logins is on the brute-force vulnerability page. To talk about internal rules, contact us.
Frequently asked questions
Does adding digits or symbols to a favourite word stop a dictionary attack?
It cannot be said to stop it. OWASP explains that there are methods that try dictionary words with slight changes. Tricks such as adding digits at the end of a word are already built into the attacker's side. Put weight on length, and do not reuse passwords.
How is a dictionary attack different from a brute-force attack?
A brute-force attack tries every combination of characters. A dictionary attack narrows to a list of commonly used words, which makes it more efficient. The more a word is one that people tend to choose, the sooner a dictionary attack breaks it.
Frequently asked questions
Does adding digits or symbols to a favourite word stop a dictionary attack?
It cannot be said to stop it. OWASP explains that there are methods that try dictionary words with slight changes. Tricks such as adding digits at the end of a word are already built into the attacker's side. Put weight on length, and do not reuse passwords.
How is a dictionary attack different from a brute-force attack?
A brute-force attack tries every combination of characters. A dictionary attack narrows to a list of commonly used words, which makes it more efficient. The more a word is one that people tend to choose, the sooner a dictionary attack breaks it.