nerdexam
GIAC

GPEN · Question #53

Which of the following can be used as a countermeasure to the rainbow password attack?

The correct answer is A. Using salt in the password. Salting passwords defeats rainbow table attacks by adding unique random data to each password before hashing, making pre-computed tables useless.

Exploitation & Post-Exploitation Techniques

Question

Which of the following can be used as a countermeasure to the rainbow password attack?

Options

  • AUsing salt in the password
  • BUsing alphanumeric characters
  • CUsing hashed password
  • DUsing 8 character password

How the community answered

(50 responses)
  • A
    78% (39)
  • B
    14% (7)
  • C
    6% (3)
  • D
    2% (1)

Why each option

Salting passwords defeats rainbow table attacks by adding unique random data to each password before hashing, making pre-computed tables useless.

AUsing salt in the passwordCorrect

A salt is a random value appended or prepended to a password before it is hashed, ensuring that two identical passwords produce completely different hash outputs. Because rainbow tables are built on pre-computed hash-to-plaintext mappings for unsalted inputs, a unique salt per user invalidates any pre-existing table. This forces an attacker to recompute a separate table for every possible salt value, which is computationally infeasible.

BUsing alphanumeric characters

Using alphanumeric characters increases password entropy but does not prevent rainbow attacks because tables can be pre-computed for any character set given sufficient resources.

CUsing hashed password

Hashing alone without a salt is precisely what rainbow tables are designed to crack, as the table maps known hash values directly back to their plaintext equivalents.

DUsing 8 character password

An 8-character password is short and still vulnerable to rainbow table lookups if the hash was computed without a salt, regardless of length.

Concept tested: Password salting as defense against rainbow tables

Source: https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html

Topics

#rainbow table attack#password salting#hash cracking#countermeasures

Community Discussion

No community discussion yet for this question.

Full GPEN Practice