During the 2024 Snowflake credential-stuffing wave, investigators traced thousands of compromised accounts back to cracked NTLM hashes stolen from infostealer logs. The hashes weren’t complex — they fell in under four hours on a single RTX 4090. If you’re not testing your own password policies with the same hardware your adversaries are using, you’re flying blind.
Installing and Benchmarking Hashcat
Hashcat is an open-source password recovery tool that uses your GPU to test billions of hash candidates per second. Before you crack anything, verify your hardware is working correctly.
Install on Ubuntu 24.04 with CUDA support:
sudo apt update && sudo apt install hashcat
hashcat -b -m 1000
The -b flag runs a benchmark. -m 1000 targets NTLM — the hash type you’ll encounter most on Windows environments. Here’s what output looks like on an RTX 4080:
* Device #1: NVIDIA GeForce RTX 4080, 15616/16375 MB, 76MCU
Benchmark relevant options:
==========================
* Optimized kernel usage = Enabled
Hashmode: 1000 - NTLM
Speed.#1.........: 87432.4 MH/s (51.44ms) @ Accel:256 Loops:1024 Thr:1024 Vec:8
87 billion hashes per second against NTLM. That means an 8-character password using uppercase, lowercase, and digits falls in roughly 22 minutes. This is why minimum 12-character policies exist. If your benchmark shows dramatically lower speeds, check that your CUDA drivers match your GPU generation — mismatched drivers silently kill throughput.
Wordlist Attack Against Real NTLM Hashes
Scenario: you’ve completed an authorized pentest on corp-dc01.example.internal (192.0.2.10) and extracted the NTLM hash for user jharris from a secretsdump output. The hash is e19ccf75ee54e06b06a5907af13cef42. Time to validate password strength.
Save the hash to a file and run a dictionary attack using rockyou.txt:
echo 'e19ccf75ee54e06b06a5907af13cef42' > hashes.txt
hashcat -m 1000 -a 0 hashes.txt /usr/share/wordlists/rockyou.txt --potfile-path ./results.pot
The -a 0 flag specifies a straight wordlist attack. Within seconds:
e19ccf75ee54e06b06a5907af13cef42:Password1
Session..........: hashcat
Status...........: Cracked
Hash.Mode........: 1000 (NTLM)
Hash.Target.......: e19ccf75ee54e06b06a5907af13cef42
Time.Started.....: Mon Nov 24 09:12:04 2026
Time.Estimated...: Mon Nov 24 09:12:06 2026
Guesses.Mask.....: 0.00% (2/14344384)
Speed.#1.........: 73291.6 MH/s
Recovered........: 1/1 (100.00%) Digests
jharris was using Password1 — cracked in two seconds flat. In a real engagement, you’d take this credential and immediately test it for lateral movement using CrackMapExec against the subnet. For defenders, this result goes directly into your pentest report as a critical finding, with a mandate to enforce complexity policies and audit AD accounts against HaveIBeenPwned’s NTLM hash list.
Rule-Based Attacks: Beyond the Wordlist
Most users don’t use dictionary words verbatim. They append numbers, capitalize the first letter, substitute letters with symbols. Rule-based attacks automate these transformations and dramatically increase coverage without a brute-force approach.
Hashcat ships with the best64.rule ruleset — 64 transformations covering the most common human password mutations. Here’s the same attack with rules applied:
hashcat -m 1000 -a 0 hashes.txt /usr/share/wordlists/rockyou.txt \
-r /usr/share/hashcat/rules/best64.rule \
--potfile-path ./results.pot -O
The -O flag enables optimized kernels — it limits max password length to 32 characters in exchange for a 20-30% speed boost, which is a worthwhile trade for most corporate password audits.
Now suppose mlopez at 192.0.2.15 had the hash 7ce21f17c0aee7fb9ceba532d0546ad6. With best64 rules applied to rockyou.txt:
7ce21f17c0aee7fb9ceba532d0546ad6:Summer2026!
Status...........: Cracked
Time.Started.....: Mon Nov 24 09:14:33 2026
Time.Estimated...: Mon Nov 24 09:14:41 2026
Recovered........: 1/1 (100.00%) Digests
Summer2026! — a base word from no wordlist, but trivially generated by appending a year and special character to a season. The rule $2$0$2$6$! handled the transformation automatically. This is exactly how credential spray campaigns build their attempt lists. Once cracked, an attacker pivots to email, VPN, and cloud consoles using the same password pattern across the organization.
When rules fail, escalate to hybrid attacks (-a 6) combining wordlists with mask patterns, or pure brute-force with masks (-a 3) for short unknown passwords. Hashcat’s --show flag after a session lets you review everything cracked against the potfile without re-running.
What To Do Now
Pull your Active Directory NTLM hashes using an authorized secretsdump run against your own domain controller, then run them through Hashcat with rockyou.txt plus best64.rule. Any hash that cracks in under 60 minutes represents an account that needs an immediate password reset and a conversation with its owner. Set a calendar reminder — run this quarterly, before your adversaries do.
