Brute Force Attacks Explained: How Passwords Get Cracked
A brute force attack guesses passwords until one works. Learn how these attacks run, the four main types, and the simple defenses that stop them.
By Galactic News Editorial · Published 2026-11-25T10:57:17+00:00 · Updated 2026-11-25T10:57:17+00:00
A brute force attack is an automated attempt to guess a password by trying many possible values until one works. It needs no trick or software flaw. It needs only time, computing power, and a weak password.
The method is simple. An attacker runs software that submits guess after guess against a login page, a stolen password file, or an encrypted document. Each wrong guess costs little. A short or common password falls fast. A long, random, unique password can resist guessing for years.
This guide explains how brute force attacks work, the four main types, and what actually stops them.
Brute Force Attacks Explained: The Basic Idea
Every password has a search space. That is the total number of possible combinations. A four-digit PIN has 10,000 combinations. A short password made of common words has far fewer combinations than it looks like. A long random password has an enormous number.
An attacker wins when the search space is small enough to cover. The defense is to make the search space huge and to slow down guessing. Both ideas matter. Length grows the search space. Rate limits slow the guessing.
There are two settings for these attacks. Online attacks guess against a live login form. Each guess needs a network request, so the target can slow or block the attacker. Offline attacks work on a stolen password file. The attacker runs guesses on their own hardware at full speed, with no lockout to stop them.
The Four Types of Brute Force Attack
MITRE ATT&CK, a widely used catalog of attacker techniques, lists brute force as technique T1110. It splits the technique into four sub-techniques. Each one works differently and dodges a different defense.
| Type | How it works | Main defense |
|---|---|---|
| Password guessing | Many passwords tried against one account | Attempt limits and lockouts |
| Password cracking | Stolen password hashes cracked offline | Slow hashing and long passwords |
| Password spraying | One common password tried against many accounts | Breached-password checks |
| Credential stuffing | Leaked username-password pairs reused elsewhere | Unique passwords per account |
Password guessing
This is the classic form. The attacker picks one account and tries password after password. The guesses often come from a dictionary of common passwords and wordlists. Services defend with limits on failed attempts, delays between tries, and bot-detection checks.
Password cracking
Here the attacker already has a stolen password database. The passwords are stored as hashes, which are one-way scrambles of the original text. The attacker hashes guesses and compares them to the stolen hashes. This runs offline, so no login page can slow it down. The defense sits with the service: store passwords with a slow hashing scheme and a salt of at least 32 bits, as NIST guidance requires.
Password spraying
Spraying flips the approach. Instead of many passwords against one account, the attacker tries one or two common passwords against many accounts. This avoids the lockout that hammering a single account would trigger. It works because many people still use passwords like seasonal words and simple patterns.
Credential stuffing
Stuffing uses real username-password pairs leaked from another breach. The attacker replays them against many sites, betting that people reuse passwords. It is not guessing at all. It is reuse. A unique password per account defeats it completely.
How Long Does a Brute Force Attack Take?
The time depends on two things: the size of the search space and the speed of guessing. Online guessing is slow because each attempt needs a network round trip and the service can add delays. Offline cracking is fast because the attacker controls the hardware.
Each extra character multiplies the search space. With 95 printable characters, each additional random character makes an exhaustive search about 95 times longer. That is why length beats complexity. Adding a symbol to a short password helps far less than adding several characters.
NIST SP 800-63B-4, published in July 2025, reflects this. It asks for passwords of at least 15 characters when a password is the only factor. It asks for at least 8 characters when the password is part of multi-factor authentication. It also asks services to accept passwords of at least 64 characters. It drops forced complexity rules and forced periodic password changes. A change is required only when there is evidence of compromise.
How to Protect Your Accounts
The defenses are simple and well tested. Use them together.
- Use long, random, unique passwords. A password manager can create and store one for every account. Uniqueness matters as much as length, because it blocks credential stuffing.
- Turn on multi-factor authentication. A second factor stops a guessed password from being enough. It is the strongest single defense against password attacks.
- Check for breached passwords. NIST guidance asks services to compare new passwords against blocklists of breached and commonly used passwords. Do the same for your own accounts with a reputable breach-checking tool.
- Prefer passkeys where offered. Passkeys replace the password entirely. There is nothing to guess.
- Watch for lockout warnings. If a service tells you about failed sign-in attempts, take it seriously. Change the password and check the account for unfamiliar activity.
What Services Should Do on Their Side
Users can only do so much. Services carry most of the responsibility. Under NIST SP 800-63B-4, a service must limit consecutive failed attempts on one authenticator to no more than 100 before disabling it. Many services set far lower limits. They also add growing delays after failures, bot-detection challenges, and risk checks based on IP address and location.
Services must also store passwords in a form that resists offline attacks. That means a salt of at least 32 bits and a suitable slow hashing scheme. They must check new passwords against a blocklist of breached, dictionary, and context-specific words. These rules turn a fast offline attack into a slow one.
The Bottom Line
Brute force attacks succeed against short, common, and reused passwords. They fail against long, random, unique passwords protected by a second factor. Length matters more than clever symbols. A password manager plus multi-factor authentication defeats practical brute force against your accounts. The rest is up to the services you use.