windows enabled community critical v1.0.0

dsdbutil

Dsdbutil is a command-line tool that is built into Windows Server. It is available if you have the AD LDS server role installed. Can be used as a command line utility to export Active Directory. Located at: C:\Windows\System32\dsdbutil.exe; C:\Windows\SysWOW64\dsdbutil.exe.

📋 Live Preview
dsdbutil
dsdbutil

Sandbox: execFile · Timeout: 30s

Capabilities

credential.dump

Contract

Outputs

process.output

Command execution output

Side effects: process_spawn

Workflow Edges

Produces

process.output

Resource Profile

ResourceValue
CPUlow
Memory16 MB
Networklow
Disk I/Olow

Examples

dsdbutil supports VSS snapshot creation (Snapshoting of Active Directory NTDS.dit database)

dsdbutil.exe "activate instance ntds" "snapshot" "create" "quit" "quit"

Mounting the snapshot with its GUID (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"

Deletes the mount of the snapshot (Deletes the snapshot)

dsdbutil.exe "activate instance ntds" "snapshot" "delete {GUID}" "quit" "quit"

Mounting with snapshot identifier (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"

Deletes the mount of the snapshot (deletes the snapshot)

dsdbutil.exe "activate instance ntds" "snapshot" "list all" "delete 1" "quit" "quit"

Detection

TypeRule / Indicator
ioc Event ID 4688
ioc dsdbutil.exe process creation
ioc Event ID 4663
ioc Regular and Volume Shadow Copy attempts to read or modify ntds.dit
ioc Event ID 4656
ioc Regular and Volume Shadow Copy attempts to read or modify ntds.dit

Documentation

dsdbutil

dsdbutil is a Windows LOLBin. Dsdbutil is a command-line tool that is built into Windows Server. It is available if you have the AD LDS server role installed. Can be used as a command line utility to export Active Directory. Located at: C:\Windows\System32\dsdbutil.exe; C:\Windows\SysWOW64\dsdbutil.exe.

Related Tools

dsDbUtil

References