T1003.003

NTDS

Sub-technique of T1003 OS Credential Dumping ↗

Copying the Active Directory database (ntds.dit) to extract every hash in the domain.

How it shows up on Hack The Box

On a DC with SeBackupPrivilege, diskshadow creates a shadow copy and robocopy /b copies ntds.dit; with the SYSTEM hive, secretsdump opens it offline.

Techniques in our catalog that match this one (the number is their machines):

Machines to practice it

Sorted from easiest to hardest. The ▶ link takes you to the minute of the IppSec video where it is used.

Guides

Commands

Taken from our cheatsheets and tool pages. Type your details and they are filled into every command.

Impacket › More examples

Domain hashes from a copy of ntds.dit
impacket-secretsdump -ntds ntds.dit -system SYSTEM LOCAL

Tools