---
title: "What is a brute-force attack? Trying passwords until one works."
url: https://www.bonbay.fr/en/cyber/cybersecurite/glossaire-cyber/attaque-par-force-brute/
site: "Bonbay Cyber"
description: "A brute-force attack tries passwords until it finds the right one. Definition, credential stuffing, password spraying and the settings that stop it."
updated: 2026-11-13
---

# What is a brute-force attack? Trying passwords until one works.

> A brute-force attack involves automatically trying a large number of passwords until the right one is found. Its variants test common passwords across many accounts, or reuse credentials stolen from other sites. Two-factor authentication, long and unique passwords, and lockout after several failed attempts stop it.

A brute-force attack does not look for a vulnerability: it tries combinations, common passwords or credentials stolen elsewhere, until one of them opens the door.

## Questions fréquentes

### How long does it take to guess a password?

It depends on its length, its make-up and how it is stored. Against a login page that limits attempts, a password that is not on common lists holds out for a long time. Against a stolen, poorly protected password database, the attacker tries billions of combinations per second offline using graphics cards: a short password falls quickly, even one packed with symbols.

### What is credential stuffing?

It is the automated reuse of username and password pairs stolen from one site to try to log in to other services. It works because many people use the same password everywhere. A different password for each service, held in a password manager, makes it useless.

### Should an account be locked after several failed attempts?

Yes, in moderation. A temporary lockout after a few failed attempts slows the attacker down without inconveniencing for long a user who made a mistake, whereas a permanent lockout would let anyone lock your accounts at will. Microsoft Entra ID already applies smart lockout, which distinguishes attempts from unfamiliar locations.

### How do you know if your accounts are being targeted?

The sign-in logs show it: a series of failures on one account, or a single failure on dozens of accounts from the same address. You can read them in Entra ID for Microsoft 365, and in the admin console for Google Workspace. The Have I Been Pwned website also tells you whether an email address appears in a known breach.

### Is a complex password enough?

Length matters more than special characters: a passphrase of several words holds up better than a short word stuffed with symbols. Yet even a good password can be stolen through phishing or spyware. That is why two-factor authentication remains the most important safeguard for accounts accessible from the internet.
