Glossary
Brute-force attack
Definition
Brute-force attack: An attack that tries possible passwords, PINs or keys one after another until one works. Online attacks guess against a live service, which can limit attempts; offline attacks guess against stolen data, where only slow hashing and long secrets help.
Also known asbrute force password attackpassword guessing attackonline guessing attackexhaustive key search
In short
A brute-force attack tries possible passwords, PINs or keys one after another until one works. Online, the attacker guesses against a live sign-in page, so the service can count failures and slow them down. Offline, the attacker guesses against a stolen database or file on their own hardware, where only slow hashing and long passwords help. Two-step verification means a guessed password alone isn't enough.
Key takeaways
- A brute-force attack works through possible values until one matches. No stolen data is needed.
- Online guessing goes through the service, which can count and slow every failed attempt.
- Offline guessing runs on the attacker's hardware, so only slow hashing and long passwords help.
- NIST caps consecutive failures at 100 and suggests ways to stop attackers locking real users out.
- Two-step verification turns a correctly guessed password into a dead end.
Last reviewed 30 November 2026
A brute-force attack tries possible passwords, PINs or keys one after another until one works. It needs no stolen data and no trickery, only time and computing power. NIST's glossary describes it as "a method of accessing an obstructed device by attempting multiple combinations of numeric/alphanumeric passwords," and in cryptography as "an attack that involves trying all possible combinations to find a match."
Online and offline guessing#
The same idea plays out in two very different places:
- Online: the attacker sends guesses to a live sign-in page. Every attempt passes through the service, so the service can count failures and slow them down.
- Offline: the attacker has stolen a password database or an encrypted file and guesses on their own hardware. Nothing limits the pace except how slow the hashing or key derivation is.
Few attackers try every combination. OWASP notes they often run "a dictionary attack (with or without mutations)": common words and leaked passwords with small changes, which finds weak passwords far sooner.
A worked example#
A six-digit sign-in code has one million possible values. NIST's SP 800-63B-4 lets a service allow at most 100 consecutive failures, a number chosen to balance "the likelihood of a correct guess (e.g., 100 attempts against a six-digit decimal OTP authenticator output)" against the cost of account recovery. That's a one-in-10,000 chance for the attacker before the door shuts. Without a cap, nothing stops a script from trying every value.
What short definitions miss#
A lockout can become the attack. If five wrong passwords freeze an account, anyone who knows your address can lock you out on purpose. NIST suggests a bot challenge, a wait that grows after each failure, and risk signals so attackers can't shut out the real user.
Its cousins look different in your logs. Brute force hammers one account. Password spraying tries one common password across many accounts, and credential stuffing replays real leaked pairs.
In Foxcolab#
Foxcolab's sign-in counts wrong passwords and pushes back without locking you out. A network address that keeps failing on your account is refused for a while, an address failing across many accounts is refused too, and after repeated failures your account takes only one attempt every few seconds. Your correct password still gets through. Turn on 2-Step Verification under Security & Sign-in → Authenticator App, where code guesses are limited as well, and a guessed password stops being enough. Password-protected Foxcolab Drive links pause for a few minutes after too many wrong passwords.
Securing a team? Read organization account security, or create a free account.
Keep exploring
Related terms
- Password sprayingPassword spraying tries one common password against many accounts, then moves to the next. Each account sees only one failure, so lockouts rarely notice.
- Credential stuffingCredential stuffing replays usernames and passwords leaked from one site against many others. It works because people reuse passwords, and rate limits rarely stop it.
- Account takeover (ATO)Account takeover is when someone else gains control of your account and uses it as you. The routes in are reused passwords, phishing, stolen sessions and recovery.
- HashingHashing turns any data into a short, fixed-length fingerprint that can't be turned back. It's how services check passwords without storing them and how you confirm a file arrived intact.
- Key derivation functionA key derivation function turns a password or other secret into an encryption key. Password-based ones are deliberately slow, so every guess costs an attacker time and hardware.
- Two-factor authentication (2FA)Two-factor authentication asks for a second kind of proof after your password, so a stolen password alone can't get someone into your account.
- Password managerA password manager creates, stores and fills a unique password for every account, so you only have to remember the one that unlocks it.
Where Foxcolab uses it
Foxcolab
Private work tools, without the ads.
Mail, files, documents, spreadsheets and meetings in one account. Files, documents and spreadsheets are end-to-end encrypted.