Term · Attack technique

What is a brute force attack?

In short

In a brute force attack an attacker automatically tries thousands of passwords or codes until one works. It mostly succeeds against short or reused passwords and against login pages without a limit on attempts.

How does a brute force attack work?

The attacker runs a script that fires combinations at a login page, VPN, mailbox or encrypted file. The shorter and more predictable the password, the faster it works. In practice you see four variants:

Classic brute force

Every combination in turn, works on short codes

Dictionary attack

Lists of common passwords such as Summer2026!

Password spraying

One weak password across hundreds of accounts to avoid lockouts

Credential stuffing

Reusing leaked logins from another service

How our ethical hackers test this

What we check in a pentest

  • In a pentest we check whether your login pages lock after failed attempts, also through the API and the mobile app, whether error messages reveal that a username exists, and whether MFA is really enabled everywhere.
  • Within the agreed scope we also try to crack password hashes we find.

How do you prevent a brute force attack?

  1. 1MFA on every external login. A guessed password alone is then not enough to get in.
  2. 2Limit login attempts. Lock temporarily after several failed attempts and slow down repeated tries.
  3. 3Long, unique passwords. Use a password manager and block passwords that already appeared in a data breach.

Frequently asked questions about brute force

Is a brute force attack illegal?

Yes, accessing a system without permission is a crime. In a pentest it happens with written authorisation from the owner.

Does MFA fully protect against brute force?

MFA makes a guessed password worth much less on its own. Systems without MFA, such as legacy protocols or service accounts, remain vulnerable.

Written by the Sectricity pentest team · Last reviewed: 5 December 2026