Bitzu

312-50 ยท System hacking

Password attack types and defenses

Dictionary, brute force, hybrid, rainbow table and password spraying attacks, online vs offline, credential stuffing, hash types (NTLM, LM, bcrypt), salting.

Key points

  • Dictionary: wordlist. Brute force: all combinations.
  • Hybrid: word plus mutations (Summer2024!).
  • Rainbow table: precomputed hashes; salting defeats it.
  • Password spraying: one or few common passwords, many accounts, avoids lockout.
  • Credential stuffing: leaked username/password pairs reused.
  • Online: live service, lockouts. Offline: stolen hashes, hardware speed.
  • LM, NTLM: unsalted, fast, crack quickly. bcrypt: salted, slow.

Source: https://hashcat.net/wiki/doku.php?id=example_hashes

Practice questions

Single choice

What does a unique random salt added to each password before hashing primarily defeat?

  1. Precomputed rainbow tables and cross-user hash reuse
  2. Guessing of weak passwords by a dictionary attack
  3. Interception of the password on the network
  4. Lockout bypass during online guessing
Show answer

Answer: A. Precomputed rainbow tables and cross-user hash reuse

A per-password salt makes precomputed rainbow tables useless and forces separate cracking per hash. It does not make weak passwords strong, and it is not encryption.

Select all that apply

Which controls reduce the success of OFFLINE password cracking against a stolen hash database?

  1. Unique per-user salts
  2. Account lockout after five failures
  3. A slow, adaptive hash such as bcrypt
  4. CAPTCHA on the login form
  5. Rate limiting on the login API
Show answer

Answer: A. Unique per-user salts, C. A slow, adaptive hash such as bcrypt

Slow salted hashing and long passphrases raise the cost per guess. Account lockout and CAPTCHA only affect online guessing, since the attacker never touches the login service.

True or false

True or false: Account lockout policies stop an attacker who has stolen an NTLM hash file from cracking it on their own GPU.

Show answer

Answer: False

False. Lockout only protects the live authentication service. Offline cracking never submits guesses to it.

Practice 8 questions on this topic in Bitzu

Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

Download on the App StoreGet it on Google Play

More 312-50 topics in this module