liveBook · Manning

Brute-force attack

As explained in Fundamentals of Cybersecurity

A brute-force attack repeatedly tries possible credentials or other combinations until access is obtained or the attempts are stopped.

A brute-force attack tries password combinations until one works or the attempts are stopped. In a password interface attack, the attacker submits guesses to a login page. A successful guess lets the attacker sign in as the user and potentially carry out malicious actions. section 12.3.3

The place where guesses are tested matters. An attacker with stolen password hashes can instead hash possible passwords and compare the results with the stored hashes. That is a password file attack, rather than a series of attempts at the login page. section 12.3.3

Practical defenses and warning signs include:

  • Use strong passwords, account lockouts, and multifactor authentication (MFA) to make login-based guessing harder. section 12.3.3
  • Watch for repeated failed logins from the same account or network location; the pattern may indicate an attack, but is not proof on its own. section 12.6.2
Attack
Definition
Defense
Hash
Login
Brute Force
Systematically tries all possible password combinations until the correct one is found.
Strong passwords, lockouts, MFA
Yes
Yes
Password Spraying
Attempts a small number of common passwords across many accounts to avoid account lockouts.
Lockouts, user training, MFA
No
Yes
Dictionary
Tests a predefined list of common passwords, words, and predictable variations to guess credentials.
Unique, passwords, MFA
Yes
Yes
Rainbow Table
Uses precomputed hash lookup tables to identify passwords from unsalted password hashes.
Salting, complex passwords
Yes
No

The comparison table distinguishes brute force from password spraying, dictionary attacks, and rainbow tables by method, defenses, and whether the attack targets hashes or logins. section 12.3.3

How Fundamentals of Cybersecurity covers it

How deep it goes
Defines login-interface guessing, contrasts stored-hash attacks, and names defenses and detection signals without giving implementation steps.
Examples
Uses a website login page, stored password hashes, and repeated failed logins from one account or network location.
What it assumes
Introduces passwords as authentication factors and explains stored hashes without requiring prior knowledge of password storage.
What you can do after
Diagnose/debug with it by treating repeated failed logins as a possible attack indicator and considering strong passwords, lockouts, and MFA.
How it connects
Connects brute-force attacks to password hashing, password spraying, dictionary attacks, account lockouts, multifactor authentication, and event logs.

Also explained in

Compare how 3 books explain brute-force attack →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Fundamentals of Cybersecurity. The section links point to the parts of the book it draws on.