How it works
Offline password cracking is what happens after credential material has left the domain. The attacker holds something that was derived from a password, and tests guesses against it on their own hardware until one produces the same value. Nothing is sent to a domain controller, so account lockout, smart lockout and sign-in logs play no part. It is the second half of most credential theft in Active Directory.
Active Directory doesn't store one password per account. It stores and derives several kinds of material, and each kind has a different guessing cost and a different direct use.
| Material | Where it comes from | Salt and iteration | Guessing cost |
|---|---|---|---|
| NT hash | DCSync, ntds.dit, LSASS memory, the SAM | None | Very low |
| LM hash (legacy) | Old stores and historical copies | None | Very low |
| NetNTLMv1 response | A captured NTLM exchange | Server challenge only | Low. With a fixed challenge and no extended session security, the DES-based response gives up the NT hash itself |
| NetNTLMv2 response | A captured NTLM exchange | Server and client challenge, no iteration | Low, and specific to the capture |
| Kerberos RC4 ticket (etype 23) | Kerberoasting, AS-REP roasting | None: the key is the NT hash | Low |
| Kerberos AES ticket (etype 17, 18) | The same requests, AES accounts | Salt of realm and principal name, PBKDF2-HMAC-SHA1, 4,096 iterations by default | Much higher |
| Cached domain logon (DCC2, MSCacheV2) | The registry of a workstation or server | Salt of the lowercased user name, PBKDF2-HMAC-SHA1, 10,240 iterations | High |
| Cleartext or reversibly encrypted password | Group Policy Preferences, scripts, memory | Not applicable | None: no guessing is needed |
Three properties decide the economics.
Salt. A salt is a per-account value mixed into the derivation, so that two accounts with the same password store different values. The NT hash has none. Two accounts with the same password have the same NT hash, one cracked hash reveals every account that shares it, and a table computed once (a rainbow table) can be reused against every domain in the world. Kerberos AES keys and DCC2 entries are salted with the account name, so each account is a separate job.
Iteration. An NT hash is a single fast hash of the password. AES string-to-key and DCC2 run thousands of rounds of PBKDF2, which divides the attacker's guess rate by roughly that factor. This is why an RC4 service ticket is the preferred target and why the RC4 downgrade matters.
Candidate space. Every extra character multiplies the number of possible passwords; a character-class rule adds far less. People choose predictable passwords even when they are long, so attackers start with wordlists of breached passwords and mangling rules, and only then fall back to exhaustive search.
Cracking is often unnecessary. An NT hash works as it is for pass-the-hash, and because it is also the account's RC4 Kerberos key it can request tickets. A krbtgt key forges tickets and is never a guessing target. The attacker cracks when the cleartext is worth more than the hash: it works on VPN portals, cloud sign-in and every other system where the person reused it, and it survives where NTLM is blocked.
Prerequisites
- Credential material from the domain. Each source has its own page and its own requirements: replication rights for DCSync, a domain controller's disk for ntds.dit, any domain account for Kerberoasting, a network position for NetNTLM capture, local administrator for LSASS and for cached logons.
- A password within reach of the guessing run. A human-chosen password under about 12 characters stored as an NT hash or protecting an RC4 ticket is the usual case. A 240-byte gMSA password or a 30-character random secret is not reachable at any cost.
- Hardware. Guess rates scale with the number of GPUs, and the attacker can rent them. Nothing in the target environment limits this.
Attack steps
For authorized security testing and lab use only. Run these steps against systems you own or have written permission to assess.
The steps below are for an authorized assessment or a lab.
1. Identify the material
Hashcat selects the algorithm with a hash mode (-m). The mode follows from the material:
| Material | Format | Hashcat mode |
|---|---|---|
| NT hash | 32 hex characters | 1000 |
| LM hash | 16 hex characters per half | 3000 |
| NetNTLMv1 | user::domain:lm-response:nt-response:challenge |
5500 |
| NetNTLMv2 | user::domain:challenge:hmac:blob |
5600 |
| Kerberos AS-REP, etype 23 | $krb5asrep$23$ |
18200 |
| Kerberos TGS-REP, etype 23 | $krb5tgs$23$ |
13100 |
| Kerberos TGS-REP, etype 17 | $krb5tgs$17$ |
19600 |
| Kerberos TGS-REP, etype 18 | $krb5tgs$18$ |
19700 |
| Cached domain logon (DCC2) | $DCC2$10240#user#hash |
2100 |
2. Run a wordlist with rules
Straight mode (-a 0) reads candidates from a wordlist; a rule file mangles each word (capital letters, digits and years appended, character substitutions). This finds most human-chosen passwords.
# NT hashes from a directory dump, one hash per line
hashcat -a 0 -m 1000 nt-hashes.txt wordlist.txt -r rules/best66.rule
# Hash file in user:hash form: tell hashcat to skip the user name column
hashcat -a 0 -m 1000 --username dump.txt wordlist.txt -r rules/best66.rule
# RC4 service tickets from Kerberoasting
hashcat -a 0 -m 13100 tgs-hashes.txt wordlist.txt -r rules/best66.rule
# NetNTLMv2 responses from a poisoning or relay capture
hashcat -a 0 -m 5600 netntlmv2.txt wordlist.txt
# Cached domain logons: salted and iterated, so expect a far lower rate
hashcat -a 0 -m 2100 dcc2.txt wordlist.txt
3. Fall back to a mask
Brute-force mode (-a 3) tries every combination that fits a mask. The built-in character sets are ?l lower case, ?u upper case, ?d digits, ?s symbols and ?a all of them. Masks follow the patterns people use, such as one capital, lower case letters and two digits:
# Capital, six lower case letters, two digits (for example Welcome24)
hashcat -a 3 -m 1000 nt-hashes.txt ?u?l?l?l?l?l?l?d?d
# Every eight-character password, any character class
hashcat -a 3 -m 1000 nt-hashes.txt ?a?a?a?a?a?a?a?a
The second command is practical against NT hashes and RC4 tickets and impractical against DCC2 or AES tickets, which is the whole effect of salt and iteration.
4. Read the results
Recovered passwords are written to hashcat's potfile. --show prints them for a hash list without running anything:
hashcat -m 1000 --username dump.txt --show
Because NT hashes are unsalted, every account with the same hash is solved by one recovery. Sort the output by password to find reuse: a shared local administrator password, a help desk default, a service account that has the same password as its owner.
5. Use the password
Sign in as the account where a hash alone would not work: web portals, VPN, mail, and the cloud identity if the password is synchronized. For a service account, the password also derives the keys needed to forge service tickets for its SPNs.
Impact
A recovered password is stronger than the hash it came from. It is accepted by every protocol and every system that trusts the account, including systems outside Active Directory, and it stays valid until someone changes it. For a service account that is often years.
A cracked directory dump also exposes the organization's password habits: the seasonal patterns, the default set by the help desk, the accounts that share a password. That makes later password spraying far more effective, even after a full reset.
What a recovered password does not prove, in an investigation: a later logon by the account is equally consistent with pass-the-hash, a forged ticket, a replayed session or the real user. Treat "material was exposed" and "the password was recovered" as separate findings.
OPSEC and artifacts
The cracking stage has no footprint in the target environment, so operators concentrate on the two ends of it.
- Cracking happens off the network. No event, no lockout counter and no network traffic exist for a guess. Hash rate, wordlists and success are facts only the attacker has.
- The collection is what gets logged. Operators prefer the quietest source they can reach: a handful of service tickets instead of a full replication. Each source still leaves its own trace: event 4662 with replication rights for DCSync, event 4688 for
ntdsutil,vssadminoresentutlon a domain controller, event 4769 for service ticket requests. - Asking for AES instead of RC4 avoids the downgrade anomaly, and costs the attacker most of their guess rate.
- The first use of the cleartext is a normal logon: event 4624 with a logon type and authentication package that match the protocol used. Operators sign in from a host and at a time that fit the account. The trace that remains is a source address or device the account never used before.
- Nothing distinguishes a cracked password from a stolen hash in one logon event. The authentication package helps: Kerberos with AES or an interactive logon suggests the password is known, while NTLM network logons are consistent with either.
Detection
Detect the extraction and the first use, because the middle is invisible.
- Replication by a non-domain-controller: the DCSync rules on event 4662.
- Directory database copies: the ntds.dit extraction rules on process creation.
- Ticket harvesting: the Kerberoasting and AS-REP roasting rules on events 4769 and 4768.
- Hash use afterwards: the pass-the-hash rules.
A process creation query for the tools that copy the directory database (command-line auditing must be on):
SecurityEvent
| where EventID == 4688
| where NewProcessName endswith @"\ntdsutil.exe"
or NewProcessName endswith @"\vssadmin.exe"
or NewProcessName endswith @"\diskshadow.exe"
or NewProcessName endswith @"\esentutl.exe"
or CommandLine contains "ntds.dit"
or CommandLine has_any ("ifm", "HarddiskVolumeShadowCopy")
| project TimeGenerated, Computer, Account, NewProcessName, CommandLine, ParentProcessName
| order by TimeGenerated desc
One requester asking for many RC4 service tickets in an hour:
SecurityEvent
| where EventID == 4769 and Status == "0x0"
| where TicketEncryptionType == "0x17"
| where ServiceName !endswith "$" and ServiceName != "krbtgt"
| summarize Tickets = count(), Services = dcount(ServiceName)
by TargetUserName, IpAddress, bin(TimeGenerated, 1h)
| where Services >= 5
| order by Tickets desc
The threshold is a starting value. After a confirmed extraction, assume every password that an offline run can reach has been recovered, and watch the affected accounts for sign-ins from new addresses on every system that shares the password, not only in the domain.
Mitigation
- Take the password out of human hands for services. A group managed service account has a long random password that the domain rotates. See the gMSA guide.
- Require length and screen against a blocklist. NIST SP 800-63B-4 sets 15 characters as the minimum for a password that is the only factor, and requires comparing new passwords with a list of common and compromised values. Don't force periodic rotation without evidence of compromise: it produces predictable increments.
- Make each local administrator password unique with Windows LAPS, so one recovered password doesn't open every host.
- Retire RC4, LM and NTLMv1. The RC4 to AES guide removes the cheap Kerberos target. Disable LM hash storage and reversible encryption, which turns any hash exposure into a cleartext exposure.
- Limit what a hash can do. Members of Protected Users can't authenticate with NTLM or use RC4 in Kerberos pre-authentication, and their logons aren't cached. Credential Guard and LSA protection raise the cost of reading hashes from memory.
- Reduce cached logons on servers and privileged workstations, where a DCC2 entry for an administrator is a standing target.
- Plan the reset before you need it. After a directory compromise: reset the krbtgt password twice with the krbtgt reset guide, reset privileged and service account passwords, rotate DSRM passwords and trust keys, and confirm the changes reached every domain controller.
- Audit the extraction paths: directory service access, process creation with command lines, and Kerberos service ticket operations, forwarded to a store the compromised host can't modify.
Detection rules for this attack
Log events to collect
FAQ
Can offline password cracking be detected?
Not the cracking itself. It runs on hardware the attacker controls and sends nothing to the domain, so there is no failed logon and no lockout. What can be detected is the step before it (directory replication, a copy of ntds.dit, a burst of service ticket requests) and the first logon that uses the recovered password.
Does a rainbow table work against Active Directory hashes?
Against NT and LM hashes, yes: they have no per-user salt, so one precomputed table serves every account and every domain. It doesn't work against Kerberos AES keys or cached domain credentials (DCC2), which are salted with the user or principal name and iterated, so the work has to be repeated for each account.
If an attacker has the NT hash, do they still need to crack it?
Often not. The NT hash is accepted directly by NTLM (pass-the-hash) and is also the account's Kerberos RC4 key, so it can be used to request tickets. Cracking is still worth the attacker's time because the cleartext password works where the hash doesn't: VPN portals, cloud sign-in, other systems where the user reused it.
How long should a password be to resist offline cracking?
NIST SP 800-63B-4 sets a 15-character minimum for a password used as the only factor. Length matters more than character classes, and a blocklist of common and breached passwords removes the candidates an attacker tries first. For service accounts, use a group managed service account so that no person chooses the secret at all.
References
- Brute Force: Password Cracking, T1110.002 (MITRE ATT&CK)
- NIST SP 800-63B-4: Digital Identity Guidelines, Authentication and Authenticator Management
- RFC 3962: Advanced Encryption Standard (AES) Encryption for Kerberos 5
- hashcat wiki: example hashes and hash modes
- hashcat wiki: options and attack modes
- Protected Users security group (Microsoft Learn)
- Group Managed Service Accounts overview (Microsoft Learn)
Techniques, tactics and threat groups: MITRE ATT&CK® Enterprise v20.1. © The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation. Last updated 2026-11-29.