A brute force attack is a systematic attempt to guess a password by trying many candidates until one works. The four forms are password guessing against one account, offline cracking of stolen hashes, password spraying of one common password across many accounts, and credential stuffing with passwords stolen in earlier breaches. The defense is the same core set everywhere: long unique passwords, phishing-resistant MFA, account lockout or throttling, and monitoring for failed-login patterns.
Key takeaways
- Brute force has four forms — guessing, cracking, spraying and stuffing — and each one defeats a different control, so you need layered defenses.
- Password spraying is the quietest form: one common password tried against many accounts stays below every lockout threshold.
- MFA is the control that matters most: in the Midnight Blizzard case, the compromised test account had no MFA, and that was the whole attack.
Picture a thief trying keys on your front door — not one key, but a bag of thousands, tried one after another until one turns. That is a brute force attack. It is the oldest trick in hacking, and it still works, because people still choose guessable passwords and leave accounts unprotected.
What is a brute force attack?
A brute force attack is a systematic attempt to guess a password by trying many candidates until one works. The attacker needs no clever exploit — just a list of passwords and a login page that keeps answering.
MITRE ATT&CK, the framework security teams use to classify attacker behavior, documents brute force as technique T1110: adversaries may systematically guess a password using a repetitive or iterative mechanism, either against a live service or offline against stolen password hashes.
The key idea is scale. A person guessing passwords is slow; a script is not. Automated tools can try thousands of passwords a minute against a web login, and millions a second against a stolen hash file running on a graphics card. The defense is not to make guessing impossible — it is to make it slow, noisy and useless.
Brute force is also the entry point for bigger attacks. Once an attacker has one valid account, they can read email, reset other passwords, and move deeper into the network. The FBI's 2025 IC3 report counted 191,561 phishing and spoofing complaints, and stolen credentials sit behind a large share of those cases.
How does a brute force attack work?
Almost every brute force attack follows the same four steps: pick a target, get a password list, try the candidates, and use the win. The details change with the type, but the shape is constant.
Here is what that looks like against a real SSH server. The log below is a realistic example using documentation addresses, showing the pattern an administrator would actually see:
- 03:14:02 — failed password for root from 203.0.113.45, tried "password"
- 03:14:05 — failed password for root from 203.0.113.45, tried "123456"
- 03:14:09 — failed password for admin from 203.0.113.45, tried "admin123"
- 03:14:12 — failed password for root from 203.0.113.45, tried "letmein"
- 03:15:40 — accepted password for root from 203.0.113.45, tried "Summer2024!"
The last line is the whole attack. Four failures and one success, in under two minutes, from a single address — and the successful password was a seasonal word with a year and an exclamation mark, exactly the kind of password people think is strong. If that server had no MFA and no lockout, the attacker was in.
That example is online guessing, the slowest form. Offline cracking is far faster: once an attacker steals a password database, they can test billions of guesses per second on a graphics card, with no lockout and no logs to trip. That is why a breach of hashed passwords is still serious, and why your password must survive offline cracking, not just the login page.
What are the four types of brute force attacks?
MITRE ATT&CK splits brute force into four sub-techniques. They look similar from the outside, but each one defeats a different control — which is why the defenses differ.
| Type | What the attacker tries | What it defeats | Best defense |
|---|---|---|---|
| Password guessing (T1110.001) | Many passwords against one account | Weak passwords | Lockout, throttling, MFA |
| Password cracking (T1110.002) | Offline guesses against stolen hashes | Weak hashing, short passwords | Long random passwords, strong hashing |
| Password spraying (T1110.003) | One common password against many accounts | Per-account lockout | MFA, anomaly detection on login volume |
| Credential stuffing (T1110.004) | Breached username-password pairs | Password reuse | Unique passwords, breach monitoring |
Password guessing
This is the classic form: many passwords against one account. It is loud — dozens of failures against the same user in minutes — so a lockout policy or rate limit usually stops it. Attackers use it against accounts with no lockout, such as legacy systems, or they slow down to stay under the threshold.
Password cracking
Cracking happens offline. The attacker steals a file of password hashes — scrambled versions of passwords — and guesses against them at full speed. A short password falls in seconds; a long random one can take centuries. This is why password managers matter: a unique 20-character random password is effectively uncrackable, even offline.
Password spraying
Spraying swaps the axes: one password, or a short list, against many accounts. Because no single account fails many times, lockouts never trigger. A large organization with 10,000 users only needs 1% of them to share a common password like "Summer2026!" for the attacker to walk away with 100 accounts.
Credential stuffing
Stuffing replays real username-password pairs from an earlier breach. It works because people reuse passwords: a pair stolen from a shopping site may also open the victim's email. You can check whether your own passwords appear in known breaches with our pwned password checker.
What does a brute force attack look like in real life?
The clearest recent example is the Midnight Blizzard attack on Microsoft, disclosed in January 2024. It shows how a simple technique, aimed at the right forgotten account, can compromise one of the best-defended companies in the world.
Beginning in late November 2023, the Russian state-sponsored group Midnight Blizzard — also known as Nobelium — used a password spray attack to compromise a legacy, non-production test tenant account at Microsoft. The account had no multifactor authentication. From that foothold, the attackers used the account's permissions to access a small percentage of Microsoft corporate email accounts, including members of senior leadership and employees in cybersecurity and legal functions, and stole emails and attached documents.
Three details matter for defenders. First, the attackers used a low number of attempts, deliberately, to evade detection and avoid account blocks. Second, they routed traffic through residential proxy networks, so the login attempts came from IP addresses that looked like ordinary home users.
Third, Microsoft detected the attack on January 12, 2024 — about six weeks after it began. The entry point was not a zero-day vulnerability. It was a forgotten test account with a guessable password and no MFA, as Microsoft described in its disclosure.
The lesson is not that Microsoft was careless. It is that every organization has forgotten accounts — test tenants, old service accounts, ex-employee logins — and attackers look for exactly those. The fix is an inventory: every account, including test and service accounts, must have an owner, MFA, and a reason to exist.
A second documented pattern comes from MITRE's procedure examples: the Sandworm group used a script to attempt authentication against many hosts during the 2016 Ukraine power attack, and the Chaos malware brute forces SSH services to gain initial access. Brute force is rarely the whole attack. It is the door — the ransomware, espionage or sabotage comes after.
How do you detect a brute force attack?
Detection depends on the type, because each type leaves a different footprint. A rule that catches classic guessing will miss spraying entirely.
- Classic guessing: many failed logins for one account from one source in a short window. Alert on failure counts per account and per source IP.
- Password spraying: many accounts failing once or twice from one source, or one source logging in successfully to several accounts it never used before. Count failures across the user pool, not per account.
- Credential stuffing: a burst of logins using usernames from breach data, often from rotating proxy IPs, with a higher-than-normal success rate followed by rapid password changes or forwarding rules.
- Offline cracking: you cannot see the cracking itself, but you can see its preparation — theft of a password database, unusual access to a domain controller, or large Kerberos ticket requests.
The strongest single signal is a success after failures: an account that failed several times and then logged in from a new place is worth investigating immediately. MITRE's detection guidance for T1110 lists exactly this pattern — a high volume of failed logon attempts followed by a successful one from a suspicious user, host or timeframe.
Feed these detections into your SOC workflow. Our guide to security operations center best practices explains how triage and response should handle them.
How do you stop brute force attacks?
No single control stops all four types. The defense is a stack, and each layer covers a type the others miss.
- Turn on MFA everywhere — including test accounts. Phishing-resistant MFA such as passkeys or security keys is best, because a guessed password plus a phished one-time code still gets in. This is the one control that would have stopped the Midnight Blizzard entry outright.
- Use long, unique passwords. A password manager generating 20-character random passwords defeats both online guessing and offline cracking. Check your password's strength with the password strength checker.
- Throttle and lock out sensibly. Limit login attempts per account and per IP, add delays after failures, and use CAPTCHA on web logins. Keep lockout thresholds moderate — too strict, and an attacker can lock out all your users.
- Block risky logins. Use conditional access to block logins from anonymizing proxies, impossible travel, or non-compliant devices, as MITRE's mitigations for T1110 recommend.
- Watch for spraying, not just guessing. Alert on login volume across many accounts from one source, and on first-time logins from new locations.
- Reset breached credentials fast. When a breach exposes your users' passwords, force resets immediately — MITRE lists this as a core mitigation.
- Disable password authentication where you can. SSH key authentication instead of passwords, and passkeys instead of passwords on the web, remove the target entirely.
What should you do after a brute force attack succeeds?
Act fast and assume the attacker did more than log in. A compromised account is a starting point, not the end of the incident.
- Contain first: disable the account or force a password reset, revoke its sessions, and remove any mail-forwarding rules or new MFA devices the attacker added.
- Check what the account touched: review sent mail, file access, password resets and any new accounts or applications created while the attacker was in.
- Look for persistence: attackers who get in through a guessed password often create a second way back in — a new admin account, an OAuth app, or a forwarding rule.
- Reset anything shared: if the password was reused elsewhere, change it everywhere. Our guide to checking a hacked phone covers the same check-and-clean pattern for personal devices.
- Fix the root cause: add MFA, remove the forgotten account, and write the detection that would have caught it next time.
The bottom line
Brute force works because guessing is cheap and passwords are often weak, reused, or left unprotected by MFA. The four forms — guessing, cracking, spraying and stuffing — each need a different defense, but the core stack is the same: long unique passwords, MFA everywhere including test accounts, throttling, and detection that watches for patterns across accounts.
Start with the highest-value step: enable MFA on every account, then check your own passwords against known breaches with the free pwned password checker. If a password you use has already leaked, change it now — before someone else tries it.
Frequently asked questions
What is a brute force attack in simple terms?
A brute force attack is guessing a password by trying candidate after candidate until one works. An attacker may try thousands of common passwords against one account, one common password against thousands of accounts, or crack stolen password hashes offline.
What is the difference between brute force and password spraying?
Brute force usually means many passwords against one account. Password spraying inverts it: one password, or a short list, against many accounts. Spraying avoids the account lockouts that stop classic brute force, because no single account fails enough times to lock.
What is credential stuffing?
Credential stuffing replays username and password pairs stolen in an earlier breach against other sites, betting that people reuse passwords. It is a type of brute force under MITRE ATT&CK T1110.004, and it is why a breach of one site can compromise your accounts elsewhere.
How long does a brute force attack take?
It depends on the password and the target. A short, common password can fall in seconds. A long random password can take centuries to guess online, where each attempt is slowed by the login system. Offline hash cracking is faster, which is why stolen password databases are so dangerous.
Can MFA stop a brute force attack?
Yes, in most cases. Even if the attacker guesses the password, they still need the second factor. Phishing-resistant MFA such as passkeys or security keys is strongest, because it cannot be phished or relayed the way a one-time code can.
How do I know if someone is brute forcing my account?
Look for repeated failed logins, logins from unfamiliar places, password reset emails you did not request, and lockout notifications. On a server, check the authentication logs for many failures from one IP address in a short time.
Does account lockout stop brute force attacks?
It stops classic brute force against one account, but it does not stop password spraying, which spreads attempts across many accounts. Lockout also needs care: too strict a policy lets an attacker lock out all your users, which is a denial of service.
Sources
The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.
Checked against MITRE ATT&CK T1110 and Microsoft's disclosure of the Midnight Blizzard attack.
How we write and fact-check →