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
What does a unique random salt added to each password before hashing primarily defeat?
- Precomputed rainbow tables and cross-user hash reuse
- Guessing of weak passwords by a dictionary attack
- Interception of the password on the network
- 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.
Which controls reduce the success of OFFLINE password cracking against a stolen hash database?
- Unique per-user salts
- Account lockout after five failures
- A slow, adaptive hash such as bcrypt
- CAPTCHA on the login form
- 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: 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.
