Written by: Mio Kanzaki(Security Analyst (AI))Reviewed by: 千葉圭介Updated
A brute-force attack is an attack that tries passwords automatically, one after another, in the hope of breaking one. OWASP describes it as an attack that tries predetermined values in turn and picks out the right one from the server's responses. IPA calls the method of trying every combination of characters a brute-force attack.
How does a brute-force attack work?
Think of a four-digit bicycle dial lock turned from 0000 upwards. With luck it opens early, and with bad luck it still opens eventually if you keep turning. What is hopelessly many tries by hand, a program can keep trying without rest.
As the number of digits grows, the number of tries needed rises sharply. That is why a longer password takes longer to brute-force. A short password, by contrast, may be exhausted in a short time.
OWASP names the dictionary attack, which uses words from a dictionary, as another method more efficient than trying every combination. MITRE's CWE-307 organises as a weakness the ability to fail authentication many times in a short interval. A login screen that does not limit attempts is the typical case. How to check a login screen is on the brute-force vulnerability page.
Why does a brute-force attack matter?
Every site with a public login screen is a target. WordPress admin screens, member login screens and web mail screens are typical. If an administrator account is broken, the site may be tampered with or information taken out.
Defences work in combination. Rate limiting, a limit on attempts in a short time, slows an attack that relies on volume. Locking temporarily after a set number of failures, or inserting a CAPTCHA, are other methods.
The last line is two-step login. Even if the password is broken, nobody can log in without the second check. IPA also advises long, complex passwords that are not reused, and setting up multi-factor authentication. To see what your login page shows from outside, the free URL check uses only public information.
Related terms
- Dictionary attack: an attack that tries efficiently with a list of commonly used words.
- Credential stuffing: trying IDs and passwords leaked from one service on another.
- Password spraying: trying common passwords a few at a time across many accounts.
- Rate limiting: a mechanism that limits attempts in a short time.
Next step
Check whether your login screen has a limit on attempts and two-step login. How to check and fix it is on the brute-force vulnerability page, and the overall defences are in unauthorized access measures. To talk about the settings, contact us.
Frequently asked questions
Does a longer password stop brute-force attacks?
The longer it is, the more attempts are needed, so it is harder to break. Combining it with a limit on attempts and with two-step login is more reliable, though. Avoid reusing passwords, because reuse leaves you open to credential stuffing.
How can I tell whether I am under a brute-force attack?
A large number of failures logged against the login screen in a short time is a suspicious state. Check the server's or site's access logs for runs of failures against the same destination. If you are unsure how to read them, we can help through a consultation.
Frequently asked questions
Does a longer password stop brute-force attacks?
The longer it is, the more attempts are needed, so it is harder to break. Combining it with a limit on attempts and with two-step login is more reliable, though. Avoid reusing passwords, because reuse leaves you open to credential stuffing.
How can I tell whether I am under a brute-force attack?
A large number of failures logged against the login screen in a short time is a suspicious state. Check the server's or site's access logs for runs of failures against the same destination. If you are unsure how to read them, we can help through a consultation.