The forms the attack takes.
| Type | What the attacker does | What stops it |
|---|---|---|
| Classic brute force | Tries every combination on one account | Lockout after failed attempts, long password |
| Dictionary attack | Tries the most common passwords and their variants | Passwords that are not on known lists |
| Password spraying | Tries a few common passwords on hundreds of accounts, slowly, to avoid lockouts | Two-factor authentication, login monitoring |
| Credential stuffing | Reuses credentials stolen from other sites | A unique password for each service, two-factor authentication |
| Offline cracking | Tries billions of combinations on a stolen password database | Storage with slow hashing, long passwords |
Spraying stays below lockout thresholds: a few attempts per account, spread out over time, trigger nothing. In early 2024, Microsoft said a group linked to Russian intelligence had got into an old test account without two-factor authentication this way, before reaching its senior leadership’s mailboxes.
Where attackers try.
- Online email: Microsoft 365, Google Workspace, and access via legacy protocols that ask only for a password.
- Remote desktop exposed to the internet, tried constantly by automated tools.
- The VPN and remote access portals.
- Websites: the WordPress login page, an online shop’s back office.
- SSH on exposed servers.
A server put online receives its first login attempts very quickly, then continuously. The question is not whether it will be tried, but whether the attempt can succeed.
The countermeasures.
- Two-factor authentication on everything reachable from the internet: email, VPN, admin accounts. A discovered password is no longer enough.
- Long, unique passwords, kept in a password manager. The CNIL sets out benchmarks in its 2022 recommendation: at least 12 characters mixing upper case, lower case, numbers and special characters, or a passphrase of at least 7 words, when the password is the only means of authentication.
- A temporary lockout after several failed attempts, and rejection of passwords found in known leak lists.
- Close what doesn’t need to be open: no exposed remote desktop, key-only SSH, admin pages restricted to specific addresses.
- Disable legacy login protocols that bypass two-factor authentication.
Spotting an attack in progress.
Sign-in logs tell the story of the attack: a series of failures on one account, scattered failures across many accounts from the same addresses, then, on the day it succeeds, a sign-in from an unusual country or device. These are the signals that a SIEM correlates and a SOC monitors.
If an attacker has got into an account, change its password, end its active sessions, check its mailbox forwarding rules and follow the hacked email account page.
On the website side.
Website login pages are tried constantly. Limit attempts with a plugin or at server level, never use admin as a username, turn on two-factor authentication for administrator accounts and keep the site up to date. A site with a brute-forced account is then used to spread spam or malware: the hacked website page tells you what to do.
If your site manages customer accounts, store their passwords with slow hashing: a stolen database then holds out much longer. The difference between hashing and encryption is explained on the encryption page.
Bonbay. Updated 15 November 2026.