AD Concepts Primer
| Term | Description |
|---|---|
| DC | Domain Controller: runs AD DS, authenticates users, stores NTDS.dit |
| NTLM Hash | MD4(UTF-16LE(password)): used for authentication and offline cracking |
| TGT | Ticket Granting Ticket: encrypted with krbtgt hash, proves identity to the KDC |
| TGS | Ticket Granting Service: service ticket encrypted with the service account’s hash |
| SPN | Service Principal Name: attribute linking an account to a Kerberos service |
| NTDS.dit | AD database on every DC: contains hashes for all domain accounts |
| SAM | Security Account Manager: local account database, only contains local users |
| LSASS | Local Security Authority Subsystem Service: holds plaintext creds and hashes in memory |
| AS-REP | Authentication Service Response: returned by KDC in step 1 of Kerberos auth |
| DCC2 | Domain Cached Credentials v2 (MS-CACHE2): stored locally when DC is unreachable |
SAM Database
The SAM database stores local account hashes. Requires SYSTEM context: save both SAM and SYSTEM hives since the SYSTEM hive contains the boot key needed to decrypt SAM.LSASS Dump
LSASS caches credentials for active sessions: NTLM hashes, Kerberos tickets, and sometimes plaintext passwords (Wdigest). Requires SYSTEM or SeDebugPrivilege.NTDS.dit
The domain database containing hashes for every domain account. Only on DCs: requires DC admin rights or DS-Replication privileges.Credential Hunting in Files
Credentials left in config files, scripts, and the registry are common on real engagements: worth sweeping before reaching for heavier tooling.Hashcat Quick Reference
| Hash Type | Hashcat Mode |
|---|---|
| NTLM | 1000 |
| DCC2 / MS-CACHE2 | 2100 |
| NetNTLMv1 | 5500 |
| NetNTLMv2 | 5600 |
| Kerberoast RC4 (etype 23) | 13100 |
| Kerberoast AES256 (etype 18) | 19700 |
| AS-REP Roast | 18200 |
| JWT | 16500 |