Understanding Password Hashes

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/104

flashcard set

Earn XP

Description and Tags

Understanding Password Hashes

105 Terms

1
New cards
Why do operating systems store password hashes instead of plaintext passwords?

To verify login passwords without storing the plaintext password.

2
New cards
What happens when a user first sets a password?

The system computes and stores a hash of the password.

3
New cards
How does a system verify a submitted password?

Hash the supplied password and compare it with the stored hash.

4
New cards
What does a matching login hash indicate?

The password is accepted and the user is authenticated.

5
New cards
What does hash prime (hash′) mean in the password verification diagram?

The hash calculated from the password entered at login.

6
New cards
Which two Windows password hash types does the course cover?

LANMAN and NT.

7
New cards
Which Linux/UNIX password hashing options does the course list?

DES, MD5, SHA-256, SHA-512, and Yescrypt.

8
New cards
What is LANMAN (LM) hashing?

A weak legacy Windows password hashing mechanism.

9
New cards
Why can LANMAN appear on modern Windows networks?

Legacy compatibility retained during repeated upgrades.

10
New cards
What happens to letter case before LANMAN hashing?

All password letters are converted to uppercase.

11
New cards
To what total length does LANMAN pad a password?

14 bytes, using NULL bytes when needed.

12
New cards
How does LANMAN divide the padded password?

Into two separate 7-byte chunks.

13
New cards
Which encryption algorithm does LANMAN use for each chunk?

DES.

14
New cards
What fixed string do LANMAN DES operations encrypt?

KGS!@#$%

15
New cards
How is the final LANMAN hash formed?

Concatenate the two DES-encrypted 8-byte results.

16
New cards
Why is LANMAN easy to brute-force?

Uppercase conversion and independent 7-byte chunks reduce the search space.

17
New cards
Is LANMAN an acceptable modern password hashing algorithm?

No. The course considers it obsolete and insecure.

18
New cards
What is the modern Windows password hash type discussed in the course?

The NT hash.

19
New cards
Does NT hashing preserve uppercase and lowercase differences?

Yes. NT hashes are case-sensitive.

20
New cards
What preprocessing does NT hashing apply to a password?

Convert the password to Unicode if necessary.

21
New cards
Which hash function generates the NT hash?

MD4.

22
New cards
How long is an NT hash?

16 bytes (128 bits).

23
New cards
Where does Windows store local password hashes?

In the Security Accounts Manager (SAM).

24
New cards
What happens to LANMAN storage for passwords of 15 or more characters?

No LANMAN hash is stored; only the NT hash.

25
New cards
Do NT hashes use salts?

No.

26
New cards
How do NT hashes compare with LANMAN hashes?

Stronger than LANMAN, but still weak by modern standards.

27
New cards
Is NTLMv1 or NTLMv2 a password hashing algorithm?

No. NTLM is an authentication protocol; NT is the hash type.

28
New cards
Why might some tools call NT hashes NTLM hashes?

NT and NTLM are often used interchangeably in tool terminology.

29
New cards
What can identical unsalted password hashes reveal?

Two users chose the same password.

30
New cards
Why are unsalted hashes vulnerable to precomputed hash dictionaries?

The same password always produces the same stored hash.

31
New cards
What is a password salt?

A randomly chosen value combined with a password before hashing.

32
New cards
Is a password salt secret?

No. It is stored alongside the hash.

33
New cards
Does the user need to remember the salt?

No. The operating system handles it automatically.

34
New cards
Why do unique salts help protect users who share the same password?

Their identical passwords produce different hashes.

35
New cards
Why must a system store the salt?

To recompute the correct hash when verifying a login.

36
New cards
What security property does a randomly generated salt add?

Entropy, or randomness, to the hash input.

37
New cards
Which Active Directory database file contains domain credential data?

NTDS.dit.

38
New cards
Which registry hive is needed with NTDS.dit to extract hashes?

SYSTEM.

39
New cards
Why can an attacker not simply copy a live NTDS.dit with COPY?

It is in use exclusively by the OS and its contents are encrypted.

40
New cards
Which built-in Windows tool can back up Active Directory credential data?

ntdsutil.exe.

41
New cards
What ntdsutil command activates the AD DS database instance?

activate instance ntds

42
New cards
Which ntdsutil subcommand enters install-from-media mode?

ifm

43
New cards
Which ntdsutil command creates a full backup at C:\ntds?

create full c:\ntds (inside ifm mode).

44
New cards
What MITRE ATT&CK technique covers OS credential dumping?

T1003, OS Credential Dumping.

45
New cards
Which Impacket utility extracts hashes from an offline NTDS.dit backup?

secretsdump.py.

46
New cards
What does secretsdump.py -system specify?

The saved SYSTEM registry hive path.

47
New cards
What does secretsdump.py -ntds specify?

The saved NTDS.dit database file path.

48
New cards
What does LOCAL indicate at the end of the offline secretsdump command?

Use local saved database and hive files.

49
New cards
What is the offline Impacket command shown to extract domain hashes?

secretsdump.py -system registry/SYSTEM -ntds Active\Directory/ntds.dit LOCAL

50
New cards
Which Meterpreter command dumps local Windows password hashes?

hashdump

51
New cards
Can secretsdump.py extract local SAM hashes over SMB using admin credentials?

Yes, using Windows RPC services over SMB.

52
New cards
What remote secretsdump target format is shown in the course?

username:password@IP-address

53
New cards
Which Windows tool can extract hashes from logon process memory?

Mimikatz.

54
New cards
Which Mimikatz command requests debug privilege?

privilege::debug

55
New cards
Which Mimikatz command examines logon secrets and hashes?

sekurlsa::logonpasswords

56
New cards
Which PowerShell cmdlet filters Mimikatz output for Username or NTLM?

Select-String -Pattern 'Username|NTLM'

57
New cards
What command saves the Windows SAM hive to sam.hiv?

reg save hklm\sam sam.hiv

58
New cards
What command saves the Windows SYSTEM hive to system.hiv?

reg save hklm\system system.hiv

59
New cards
Which Mimikatz command parses offline SAM and SYSTEM hive files?

lsadump::sam /sam:sam.hiv /system:system.hiv

60
New cards
Why might an attacker analyze registry hives on a different Windows system?

To avoid running Mimikatz on the compromised endpoint.

61
New cards
What privilege is required for Windows hash-dumping techniques in this section?

Administrator access.

62
New cards
What security technology often detects or blocks hash-dumping tools?

Endpoint Detection and Response (EDR).

63
New cards
What is the order of fields in common Windows hashdump output?

username:userid:LANMAN:NTHASH

64
New cards
What hex string identifies an empty LANMAN hash?

aad3b435b51404eeaad3b435b51404ee

65
New cards
What hex string identifies an empty NT hash?

31d6cfe0d16ae931b73c59d7e0c089c0

66
New cards
What does a valid LM hash and a valid NT hash suggest?

A legacy LANMAN hash remains for the account.

67
New cards
What does an empty LM hash with a valid NT hash suggest?

LANMAN storage is disabled; the account still has an NT hash.

68
New cards
What can empty LM and empty NT hash fields indicate in the course example?

An inactive/disabled account or a failed hash extraction.

69
New cards
What mnemonic helps identify empty Windows password hashes?

Am All Day Baffled By Difficult Choices For Encrypted Data.

70
New cards
Where did early UNIX systems store password hashes?

/etc/passwd

71
New cards
Where do modern Linux systems store password hashes?

/etc/shadow

72
New cards
Which Linux account file remains world-readable?

/etc/passwd

73
New cards
Which user normally has permission to read /etc/shadow?

root

74
New cards
What hashing progression does the course describe for UNIX/Linux?

DES, MD5, SHA-256, SHA-512, then Yescrypt.

75
New cards
Which colon-separated field stores the hash in /etc/shadow?

The second field.

76
New cards
What character separates the hash type, salt, and hash in Linux crypt format?

The dollar sign ($).

77
New cards
Which Linux crypt prefix indicates MD5?

11

78
New cards
Which Linux crypt prefix indicates SHA-256?

55

79
New cards
Which Linux crypt prefix indicates SHA-512?

66

80
New cards
Which Linux crypt prefix indicates Yescrypt?

yy

81
New cards
What prefix indicates legacy DES crypt in the course table?

No dollar-sign hash-type prefix.

82
New cards
What is the basic sequence of Linux crypt hash subfields?

Hash type, salt, then crypt-encoded password hash.

83
New cards
Is the character encoding of Linux crypt hashes exactly standard Base64?

No. It uses a modified Base64-like character set.

84
New cards
What are password hashing rounds?

Repeatedly applying the hash computation to increase work per guess.

85
New cards
How do multiple hash rounds affect legitimate logins?

They add a comparatively small delay.

86
New cards
How do multiple hash rounds affect offline password cracking?

They slow every password guess.

87
New cards
How many default rounds does Linux MD5 crypt use?

1,000.

88
New cards
How many default rounds does Linux SHA-256 crypt use?

5,000.

89
New cards
How many default rounds does Linux SHA-512 crypt use?

5,000.

90
New cards
How many MD4 rounds are used for the Windows NT hash?

One.

91
New cards
Why is NT hash cracking especially fast?

Single-round MD4 without a salt.

92
New cards
What hardware do attackers use to accelerate offline hash cracking?

Graphics Processing Units (GPUs).

93
New cards
Which tool does the course mention for GPU-based password cracking?

Hashcat.

94
New cards
Which password hashing algorithm is characterized as CPU-hard?

PBKDF2.

95
New cards
What does PBKDF2 stand for?

Password-Based Key Derivation Function 2.

96
New cards
What makes PBKDF2 computationally costly?

Configurable repeated HMAC calculations.

97
New cards
Which Wi-Fi security protocols use PBKDF2 for pre-shared key authentication?

WPA and WPA2.

98
New cards
How many SHA-1 rounds does the course specify for WPA/WPA2 PBKDF2?

4,096.

99
New cards
Which algorithms are both CPU-hard and memory-hard?

scrypt and Argon2.

100
New cards
Which algorithm won the 2015 Password Hashing Competition?

Argon2.