Security operations

Brute Force Attack: What It Is, How It Works and How to Stop It

A brute force attack guesses passwords, PINs or keys over and over until one works. Long unique passwords, lockouts and MFA are what stop it.

Cysoro Security TeamPublished · 8 min read
password123 ✗ Summer2026 ✗ qwerty99 ✗ k7!xQ9… ✓ locked LOCKED after 5 tries SECURITY OPERATIONS Brute forceattack Guessing, automated — and stoppable.
Quick answer

A brute force attack is an automated attempt to guess a password, PIN or encryption key by trying many possible values until one works. Attackers guess against a live login page or crack stolen password hashes offline. Long, unique passwords plus multi-factor authentication, rate limiting and account lockouts are the defenses that make guessing impractical.

Key takeaways

  • Brute force is guessing at scale: many passwords against one account, or many accounts against a few common passwords.
  • Online attacks are limited by rate limits and lockouts; offline attacks against stolen hashes run at the attacker's hardware speed.
  • MFA, long unique passwords and a limit on failed attempts together defeat almost every practical brute force attack.

A brute force attack needs no clever exploit and no inside knowledge. It just guesses — over and over, automatically, until something works. That simplicity is why it is still one of the most common ways accounts get taken over, and why the defenses against it are well understood.

What is a brute force attack?

A brute force attack is an automated attempt to discover a password, PIN or encryption key by systematically trying possible values until one is accepted, as MITRE ATT&CK describes in technique T1110: Brute Force.

The target is usually a login: a web application, email account, VPN gateway, SSH server or remote desktop service. The attacker does not need to know anything about you to start. They need a system that keeps accepting guesses, software that generates them fast, and a way to avoid being shut down mid-attack.

Brute forcing is a credential-access technique, not a software vulnerability. It succeeds when passwords are short, predictable or reused, and when the service does not limit guesses or require a second factor. That is why the same attack that fails against a well-protected account can take over a weak one in minutes.

It is also worth knowing what brute force is not. It is not phishing, which tricks you into handing over a password, and it is not malware. It is pure guessing, and its power comes entirely from automation and computing speed.

What are the four types of brute force attack?

MITRE ATT&CK splits brute force into four sub-techniques: password guessing, password cracking, password spraying and credential stuffing, and each one dodges a different defense.

TypeHow it worksMain defense
Password guessing (T1110.001)Many passwords tried against one accountAccount lockouts and rate limits
Password cracking (T1110.002)Stolen hashes cracked offline at full hardware speedLong passwords, slow hashing such as bcrypt or Argon2
Password spraying (T1110.003)A few common passwords tried against many accountsMFA, blocking common passwords, anomaly detection
Credential stuffing (T1110.004)Stolen pairs from one breach replayed elsewhereUnique passwords per site, MFA, breached-password checks

Password guessing

This is the classic form: try password123, Summer2026, the company name, the user’s birthday, and thousands more against a single account. It works best against short or predictable passwords, and it is stopped cold by a lockout after a handful of failures.

Password cracking

After a breach, the attacker holds a copy of the stored password hashes and cracks them on their own hardware, with no rate limit and no lockout. A short password can fall in seconds; a long random one can take centuries. This is why how a site stores passwords matters as much as how strong yours is.

Password spraying

Spraying flips the approach: take one common password, such as Winter2026!, and try it against hundreds of accounts, then move to the next password. Each account sees only a few failures, so per-account lockouts never trigger. It works because in any large group of users, somebody is using that password.

Credential stuffing

Stuffing reuses real credentials stolen in an earlier breach. If you used the same email and password on a shopping site and your email account, the attacker does not need to guess at all — they just log in. Unique passwords per site are the only defense that stops this one at the password layer.

How does a brute force attack work?

A brute force attack follows four steps: pick a target that accepts repeated logins, generate guesses from wordlists and breached data, submit them automatically, and keep going while dodging lockouts and detection.

How a brute force attack runs 1Pick a targetlogin, VPN, SSH,RDP, email 2Generate guesseswordlists, breacheddata, patterns 3Submit automaticallythousands perminute, or more 4Dodge defensesrotate IPs, slowdown, spray One success is enough — the attacker then has a valid login.
The four steps of a brute force attack, online or offline. Illustration by Cysoro.

Guess generation is smarter than trying every combination from aaaa upward. Attackers start with wordlists of common passwords, names, dates and keyboard patterns, then apply rules — capitalizing the first letter, adding a year, swapping letters for numbers. Breached password lists make the guesses far more accurate, because people’s choices are predictable.

To dodge defenses, attackers spread attempts across many IP addresses and proxy services, slow down when they sense a rate limit, and switch from guessing many passwords on one account to spraying one password across many accounts. The goal is always the same: stay under the threshold that triggers a lockout or an alert.

Online and offline attacks differ in speed. Against a live login, every guess is a network request the service can see, slow down or block. Against a stolen hash file, the attacker’s hardware is the only limit, and modern graphics cards can test billions of guesses per second against fast hash functions. That is why slow, salted hashing matters so much on the server side.

Online vs offline brute force: what is the difference?

An online attack guesses against a live login page and is limited by the network and by the service’s defenses, while an offline attack cracks stolen password hashes on the attacker’s own hardware with no such limits.

Online brute forceOffline brute force
TargetLive login form, API, SSH or VPNStolen hash database
Speed limitNetwork round trips and rate limitsAttacker hardware only
Can the defender see it?Yes — in authentication logsNo — it happens on the attacker’s machines
Stopped byLockouts, CAPTCHAs, MFALong passwords and slow hashing
Typical speedThousands of guesses per minuteBillions of guesses per second

For you as a user, the practical difference is this: online attacks are your service provider’s problem to block, and offline attacks are your password’s problem to survive. A long, unique password protects you in both cases, but it is your only protection in the offline one.

How do you know if you are being brute forced?

You know you are being brute forced when you see a burst of failed logins, lockout notices, password-reset emails you did not request, or successful logins from places and devices you do not recognize.

  • Repeated failed logins in your account’s sign-in history, especially many in a few minutes.
  • Account lockouts you did not cause, or a message that too many attempts were made.
  • Password-reset emails arriving out of nowhere — the attacker may be testing whether the account exists.
  • Logins from unfamiliar locations or devices, or at hours you were asleep.
  • New forwarding rules, devices or recovery options on an email account after a successful guess.

If you run a server, the signs are in the logs: a single IP making hundreds of failed SSH or RDP attempts, or many IPs each making a few attempts against many accounts — the signature of spraying. Alert on failed-login spikes per account and per source.

If you suspect a password was guessed, check whether it appears in known breaches with our free pwned password checker. OWASP’s Authentication Cheat Sheet sets out the same lockout and rate-limiting advice for developers.

How do you prevent a brute force attack?

Prevent brute force with three layers together: a long unique password, multi-factor authentication, and a service that limits failed attempts — no single layer is enough on its own.

Three layers that stop brute force 1Long, unique password15+ characters, generated by a password manager, never reused 2Multi-factor authenticationPasskeys or an authenticator app — a guessed password alone is not enough 3Limit failed attemptsLockouts, delays and CAPTCHAs after a few failures, per account and per IP
Each layer covers the gaps the others leave. Illustration by Cysoro.

For individuals

  • Use a password manager and let it generate a long random password for every account. A 15-character random password is the minimum NIST now expects for a password used on its own, and your manager should support at least 64 characters.
  • Turn on MFA everywhere it is offered, and prefer passkeys or an authenticator app over SMS codes. OWASP puts it bluntly: MFA is by far the best defense against the majority of password-related attacks.
  • Never reuse a password. Reuse is what turns one breach into many takeovers through credential stuffing.
  • Check password strength before you settle on one — our password strength checker shows how long a password would take to guess.
  • Generate a fresh password with the password generator if yours is weak or reused.

For websites and administrators

  • Limit failed attempts. NIST SP 800-63-4 requires no more than 100 consecutive failures on one authenticator before it is disabled; in practice, add progressive delays and a CAPTCHA after a few failures, and rate-limit by IP as well as by account.
  • Block breached passwords. Check new passwords against a list of known-breached values and reject matches, as NIST requires.
  • Hash passwords slowly. Use bcrypt, scrypt or Argon2 with a unique salt per password, so offline cracking is expensive even after a breach.
  • Give generic error messages. Reply "Invalid username or password" whether the username or the password was wrong, so attackers cannot enumerate valid accounts.
  • Do not expose login services unnecessarily. SSH and RDP should not be open to the internet with password login at all — use keys, a VPN or your provider’s session manager. See our guide on securing your Wi-Fi for the same least-exposure thinking at home.

What should you do if your account was brute forced?

Act fast: change the password from a trusted device, turn on MFA, sign out of all sessions, and check for changes the attacker may have made to your account.

  1. Change the password immediately to a long, unique one generated by your password manager.
  2. Turn on MFA if it was off, and review registered devices and recovery options.
  3. Sign out everywhere and check for new mail-forwarding rules, connected apps and changed contact details.
  4. Change the same password anywhere else you reused it — assume the attacker will try it on your email, bank and cloud accounts next.
  5. Report it to the service provider, and if money was lost, to the FBI’s Internet Crime Complaint Center at ic3.gov. For the wider checklist, see our small business cybersecurity checklist.
Do not just change the password and move onCheck what the attacker did while they were in. A guessed password is often followed by a forwarding rule, a new recovery email or a changed phone number that lets them get back in later.

The bottom line

Brute force attacks work because guessing is cheap and weak passwords are common. They fail when guessing is expensive, slow and pointless — which is exactly what long unique passwords, failed-attempt limits and MFA achieve together.

Start with your most important accounts: email, banking and cloud admin. Give each one a generated password and a second factor, and you have removed the easiest path an attacker has into your life. Test your current passwords with the free password strength checker today.

Frequently asked questions

What is a brute force attack in simple terms?

It is trying passwords one after another until one works. A computer does the guessing automatically, so it can try thousands of passwords in minutes, or billions against a stolen password file.

What is the difference between brute force and password spraying?

Brute force tries many passwords against one account. Password spraying tries a few common passwords against many accounts, which avoids tripping per-account lockouts.

What is credential stuffing?

Credential stuffing replays username and password pairs stolen from one breach against other websites, betting that people reuse passwords. It is one of the four brute force sub-techniques in MITRE ATT&CK T1110.

Can a brute force attack crack a strong password?

Not in practice. Each extra random character multiplies the work enormously, and a long random password from a password manager is far beyond what guessing can reach in a human lifetime.

Does multi-factor authentication stop brute force attacks?

Yes, in almost all cases. Even if the attacker guesses the password, they still need the second factor, such as a passkey or authenticator app code, which guessing cannot produce.

How many failed logins should trigger a lockout?

NIST SP 800-63-4 requires services to limit consecutive failed attempts on one authenticator to no more than 100 before disabling it, and many services set the limit far lower, with delays or CAPTCHAs after a few failures.

How do I know if someone is brute forcing my account?

Look for many failed login attempts in a short time, logins from unfamiliar places or devices, password-reset emails you did not request, and alerts from your provider about unusual sign-in activity.

Is brute forcing illegal?

Yes. Trying to guess your way into someone else's account without permission is unauthorized access, and it is illegal in the US and most other countries even if no password is ever guessed correctly.

Sources

  1. MITRE ATT&CK — Technique T1110: Brute Force
  2. NIST — SP 800-63-4, Digital Identity Guidelines
  3. OWASP — Authentication Cheat Sheet
  4. CISA — Multi-Factor Authentication guidance
  5. Microsoft Learn — Password spray attacks
Written & fact-checked byCysoro Security Team

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.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against MITRE ATT&CK T1110, NIST SP 800-63-4 and the OWASP Authentication Cheat Sheet.

How we write and fact-check →

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free