What is a brute-force attack?
A brute-force attack tries many passwords, codes or keys, often with automated tools, until one works, to get into an account or system.
Also called: brute forcing, password guessing, password spraying
How it works
In its simplest form, a tool tries every possible value. More often, attackers use lists of common passwords. In password spraying, they try a few common passwords on many accounts, to avoid lockouts on any one account.
Attacks can also target short numeric codes, such as one-time codes, PINs or gift card numbers. It is related to credential stuffing, which uses real username and password pairs from earlier breaches instead of guesses.
Warning signs
- Many failed logins on one account, or a few failed logins on many accounts.
- Failed attempts from many IP addresses with the same device or browser traits.
- Repeated wrong one-time codes or PINs in a short time.
- A successful login right after a long run of failures.
Why it matters for fraud and trust
A successful guess gives the attacker a real account, which leads to account takeover. Even failed attacks cost money, slow down systems and lock real users out.
Attacks on short codes are a special risk. A gift card number or a short PIN has few possible values, so a bot can try them all if nothing stops it, and steal balances without any account at all.
How teams defend against it
Rate limiting and temporary lockouts slow attacks down. Long codes and strong password rules make guessing harder. Multi-factor authentication and passkeys mean a guessed password is not enough.
Bot detection helps when attackers spread attempts over many addresses. Teams should also watch failures across all accounts, not only per account, to catch spraying.
Related terms
- Credential stuffingCredential stuffing is an automated attack that tries large lists of stolen usernames and passwords on a login page, betting that people reuse the same password across sites.
- Rate limitingRate limiting caps how many requests a user, device, IP address or account can make in a set time, to slow down automated attacks and abuse.
- Account takeover (ATO)Account takeover is when someone other than the owner gains control of a real user's account, usually with stolen credentials, and uses it to steal money, data or rewards.
- Multi-factor authentication (MFA)Multi-factor authentication (MFA) requires two or more different kinds of proof to log in or approve an action, such as something you know, something you have, and something you are.
- Bot detectionBot detection is the set of methods used to tell whether a website or app visitor is a person or an automated program, and often which kind of program it is.