What is a dictionary attack? How password attacks work and how to prevent them

In the movies, password hacks are mostly a race against time, with someone frantically typing while a progress bar slowly moves toward 100%. Real password attacks aren't as exciting, and most of the time, nobody’s guessing anything clever. They’re running a script that tries the same handful of passwords millions of people already use, and it works more often than it should.
The Cybernews research team ran a study analyzing more than 19 billion passwords collected from data leaks and breaches. Only 6% were unique, and that’s why attackers thrive. A dictionary attack is one of the most common ways to breach passwords. It’s also simpler than many other attack styles, cheaper to run, and more effective because it exploits how predictable we humans can be.
In this article, I explore how dictionary attacks work, how to protect yourself, and what you need to stay safe in 2026.
What is a dictionary attack?
A dictionary attack is a password-cracking method in which an attacker systematically tries passwords from a predefined list, often called a dictionary or wordlist. So the dictionary here isn’t a book of word definitions, but a list of common passwords like “password” and “123456,” plus names, dates, sports teams, and, most importantly, passwords leaked from previous breaches.
But passwords have grown stronger over time, and many people no longer use the basic ones from a decade or two ago. That is why modern dictionary attacks go beyond raw word lists and use cracking tools that automatically generate variations. So instead of searching for just “password,” they swap a for @ or o for 0 and can even add 123 or a birth year.
If an attacker finds a matching password, they gain access unless another protection, such as multi-factor authentication, blocks the login. Then they can steal sensitive information or money in minutes.
How does a dictionary attack actually work?
While attackers don’t follow a general guidebook every time they start an attack, dictionary attacks always go through certain stages.
- Attacker picks a vulnerable system or account. It could be an email account, a social media profile, a banking app, a cloud service, or even a VPN. They may already know the victim’s username or email, or they may collect it through data breaches or public sources.
- Attacker employs a wordlist or password dictionary. Some contain a few thousand common passwords, and others hundreds of millions of entries pulled from years of breached data. Some are even customized with details about the specific target audience. For example, an attacker targeting a company might include its name, address, acronym, and product names to make more targeted guesses.
- Attacker deploys password-cracking software. It’s built to submit login attempts through web login pages, APIs, remote access systems, and any other method they can find. For online attacks, tests can reach up to 36,000 per hour, or about 10 passwords per second, but the speed depends on the service’s rate limits and other defenses. Offline attacks are even faster, with automation systems able to try millions of passwords per minute, testing guesses against stolen password hashes rather than a live login page. Here, speed depends on the hashing algorithm and hardware.
- Attacker uses the cracked passwords to attack other accounts. Attackers test breached passwords against other accounts and services with similar login details. GoDaddy’s survey found that 61% of US respondents reused passwords across multiple accounts, so one correct guess can become a much larger problem.
- Attacker uses account access for next steps. Attackers can steal data, read emails, commit financial fraud, spread malware, or use the access to gain further entry into the network.
How dictionary attacks are different from other password attacks
There are numerous ways to attack passwords, and the differences between dictionary attacks and other methods usually come down to what malicious actors try and how many accounts they hit.
An exhaustive brute-force attack is the closest in style to dictionary attacks. Here, a system tries every possible character combination until something works. Dictionary attackers use a curated list of likely passwords, but exhaustive brute force tries everything, making it more thorough but much slower.
Credential stuffing looks similar to dictionary attacks on the surface, but it works slightly differently. Attackers take username-password pairs stolen from one breach and try them against other services, banking on the chance that the password is being reused. There’s no dictionary here, just a compilation of credentials that already worked somewhere.
Password spraying is another attack style in which attackers try one or two common passwords against many accounts. Some attackers do this to stay under lockout thresholds because dictionary attacks can trigger anti-bot or rate-limiting tripwires that stop attempts. With spraying, attackers spread attempts across multiple accounts to avoid detection.
Warning signs of a dictionary attack
Dictionary attacks usually leave traces, but the signals aren’t always obvious, especially when attackers spread their attempts to stay below detection thresholds.
So instead of blasting a login page with 10,000 requests in one minute and triggering alerts, some attackers make one login attempt every few minutes or hours per account. To monitoring systems, this looks like a normal user who forgot their password.
Some attackers also use botnets or cheap proxy networks to rotate through thousands of IP addresses so they don’t get blocked. That is why you need to know the warning signs of a potential attack, so you can spot them and be prepared.
For individual users, some of the signs include:
- Unexpected login alerts – notifications about login attempts from unfamiliar locations or devices you don’t recognize
- Account lockouts – getting locked out of your account after multiple failed login attempts you didn't make
- Password reset emails – if you never clicked the “Forgot password” button and keep getting emails with a reset link, there’s a strong chance someone is trying to gain access to your account
- Unexpected MFA prompts – if your phone buzzes with an approval request you never triggered, deny it instantly
- Strange activity in your Sent or Recent history – sometimes an automated attack succeeds, gains access to your account, performs a quick action, and logs out without changing your password, so check your Sent folder for emails you didn’t write or even items in your online shopping cart you didn’t add
For organizations, signs to watch out for include:
- Multiple login attempts across different user accounts from the same IP indicate broad guessing, not a targeted single-account attack
- Abnormal traffic volumes to authentication endpoints, like a spike in requests hitting login pages, APIs, or VPN portals
- Large numbers of password-reset or legacy-authentication requests signal that attackers may target POP, IMAP, SMTP, or other legacy protocols to bypass modern protections
How to prevent dictionary attacks
Although dictionary attacks are common, several proven defenses can greatly reduce the risk. I recommend combining strong password practices with modern technical controls that make automated guessing difficult.
1. Use strong and unique passwords
You are the first line of defense. Start by creating passwords that are hard to guess. Swapping the letter A in your name for @ or the letter S for $ doesn’t cut it anymore, because attackers have programs that can guess it.
The legacy rules, like forcing numbers, uppercase letters, and symbols, aren’t as effective as they used to be. But you can still create strong passwords – they must be long, unique, random, and unrelated to personal information.
If you’re pairing the password with MFA, it should have at least 8 characters. For passwords used as a single authentication factor, use at least 15 characters.
2. Use passphrases
Passphrases are great because they're harder to crack and easier to remember. A combo like GreenHouseCoffeeMountain!31 could mean something to you but increase the number of guesses attackers may need.
The key is to build the password from three or more random words, then add a randomly chosen number. Remember that these words must be random, not something like your pet’s name or workplace. Do the same with the numbers. Don’t use your birth date, but something unique that only you know.
3. Enable multi-factor authentication
Whenever you sign up for a new platform and see the multi-factor authentication (MFA) option, always take the time to set it up. I know you just want to get in and be done, but that minute or two you spend setting up the authenticator app, biometric verification, or even a one-time code sent via a text message when signing up can genuinely save you in the long run.
If, for any reason, an attacker guesses your password, they still need a second authentication factor, which they rarely get. The stats back it up: a Microsoft study found that implementing MFA reduces the risk of compromise by 99.22%.
4. Use a password manager
With top-rated password managers, you don’t have to remember dozens of complex passwords. They also recommend passwords when you create a new account, store them, and alert you if any of your stored passwords appear in a new data breach.
Choose a password manager that works across all your devices. The passwords they make are impossible to remember, and that's the point. When you create an account on your phone and later try to log in from your computer, you want your password manager to pop up and handle it instantly.
Bitdefender SecurePass, for example, generates and stores strong passwords and supports autofill. Its security report identifies weak, reused, and breached passwords, helping you find credentials that need changing.
SecurePass is also included with Bitdefender Total Security, Bitdefender Premium Security, and Bitdefender Ultimate Security, and its password leak alert lets you check the state of your passwords at any time, individually or all at once.
5. Enable account lockouts and rate limiting
For organizations, establishing controls that limit excessive login attempts should be non-negotiable. That should include temporary lockouts, rate limiting, progressive delays between attempts, and CAPTCHA enforcement.
Security teams should also continuously monitor login activity for suspicious patterns, such as spikes in failed logins, geographic anomalies, repeated attempts, and multiple accounts targeted from a single IP address. If you detect a dictionary attack early, you have a very high chance of stopping it.
Conclusion
Dictionary attacks remain one of the most effective ways to break into accounts, and sadly, they work because our password habits are too predictable. Our study of over 19 billion leaked passwords found that around 94% were repeated entries rather than unique password strings.
A reliable password manager such as Bitdefender SecurePass, which also comes with Bitdefender's all-in-one plans, can help you generate and store long, unique passwords, but you should also enable MFA wherever it’s available and follow other password management best practices.
FAQ
Can a dictionary attack be prevented?
Yes, use a unique passphrase or a strong password generated by a trusted password manager, like Bitdefender SecurePass. Its Password Generator creates a unique password for every new account, and its security report flags duplicate, weak, or leaked passwords. Multi-factor authentication can also stop an attacker even if they guess the password. For organizations, recommended prevention techniques include rate limiting, account lockouts, and storing passwords with slow hashing algorithms.
Is a dictionary attack different from a brute-force attack?
Yes, but not entirely. Dictionary attacks are a form of brute force that tests likely passwords, while exhaustive brute force tries every possible character combination. Dictionary attacks are generally faster because they focus only on probable passwords. Exhaustive searches also cover passwords absent from wordlists.
Are dictionary attacks still effective today?
Yes, dictionary attacks remain highly effective because many people continue using weak, predictable, or reused passwords. Combinations like Password123 and 123456 are still pretty common. However, you can reduce the risk of a successful attack by adding MFA to your account and using a trusted password manager that could help create and store strong combinations.