---
title: "What is a brute-force attack? Definition and examples"
description: "A brute-force attack tries many passwords, codes or keys, often with automated tools, until one works, to get into an account or system."
canonical: "https://finic.ai/glossary/brute-force-attack"
last-updated: "2026-12-03"
---

# 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](https://finic.ai/glossary/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](https://finic.ai/glossary/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](https://finic.ai/glossary/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.

## How Finic helps

Finic Identify tells people from bots on login pages, which helps stop automated guessing before it reaches accounts. [Learn more](https://finic.ai/use-cases/account-takeover)

## Related terms

- [Credential stuffing](https://finic.ai/glossary/credential-stuffing.md): Credential 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 limiting](https://finic.ai/glossary/rate-limiting.md): Rate 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)](https://finic.ai/glossary/account-takeover.md): 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)](https://finic.ai/glossary/multi-factor-authentication.md): 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 detection](https://finic.ai/glossary/bot-detection.md): Bot 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.
