Glossary termAttack technique

Brute-Force Attack

Also known as: Exhaustive key search, Brute forcing

Attack that tries every possible password, key or combination until the correct one is found, relying on computing power rather than cleverness.

A brute-force attack attempts to discover a secret, such as a password, PIN or encryption key, by systematically trying candidates until one works. Its feasibility depends entirely on the size of the space to search and the speed at which guesses can be tested. Online attacks send guesses to a live login service and can be slowed by rate limits, while offline attacks test guesses against a stolen password hash or encrypted file as fast as the attacker's hardware allows. Dictionary attacks narrow the search by trying common passwords and words first.

Advances in hardware steadily change what is practical. In 1998 the Electronic Frontier Foundation built a purpose-made machine that recovered a DES key in a matter of days, demonstrating that the 56-bit standard was too weak. Graphics processors and specialized hardware can test enormous numbers of guesses per second against fast hash functions, which is why short or common passwords fall quickly once a database is breached. By contrast, every additional bit of key length doubles the search space, so a properly generated 128-bit key is far beyond the reach of exhaustive search with conventional computers.

Defenses work on both sides of the equation. Services limit and monitor login attempts, add delays or lockouts and require multi-factor authentication so that a guessed password is not enough. Stored passwords should be protected with slow, salted hash functions designed to make each guess expensive. Users benefit most from long, unique passwords or passphrases, such as those produced by Diceware, kept in a password manager. Because many guessing campaigns reuse leaked credentials, brute force is closely related to credential stuffing.

Key points

  • Brute-force attacks succeed by exhaustive guessing, so their cost grows with the size of the search space.
  • Offline attacks on stolen hashes are far faster than guessing against a live login page.
  • The EFF showed in 1998 that 56-bit DES keys could be found by exhaustive search.
  • Rate limiting, MFA, slow password hashing and long unique passwords are the main defenses.

Related entries

Glossary term

Credential Stuffing

Cybersecurity

Automated attack that tries usernames and passwords leaked from one breached service against many other sites, exploiting password reuse.

Glossary term

Password Manager

OPSECCybersecurity

Software that generates, stores and fills strong, unique passwords and other secrets in an encrypted vault protected by one master credential.

Glossary term

Method for creating strong, memorable passphrases by rolling physical dice to pick random words from a numbered list, ensuring true randomness.

Glossary term

Multi-Factor Authentication

CybersecurityOPSEC

Sign-in method that requires two or more independent kinds of evidence, such as a password plus a phone or security key, before granting access.

Glossary term

Cryptographic Hash Function

CybersecurityBlockchain

Function that maps data of any size to a fixed-length digest in a way that is practically impossible to reverse or to match with different input.

Glossary term

Encryption

CybersecurityOPSECDevOps

The process of transforming readable data into ciphertext so that only parties holding the correct key can recover and understand it.

Glossary term

Authentication

Cybersecurity

The process of verifying that a person, device or system is who or what it claims to be before granting access to resources.

Organization

Electronic Frontier Foundation

Ideas and CultureOPSECCybersecurity

Nonprofit organization founded in 1990 that defends civil liberties online through litigation, policy advocacy, technology projects and public education.

Referenced by

Other entries that discuss or point to Brute-Force Attack.