Skip to content
WETNav

Credential access · Windows

ntdsutil.exe

NTDS utility

Maintains the Active Directory database. Its IFM create full option exports NTDS.dit and the SYSTEM hive, which together allow offline extraction of all domain credentials. High-signal on a DC.

Legitimate use

AD admins use it for database maintenance, snapshots and media creation for new DCs.

Worst caseCritical

Subcommands

ifm

Install From Media. create full exports the AD database and SYSTEM hive to a folder.

High
snapshot

Takes and mounts snapshots of the AD database.

Medium
ntds

Selects the NTDS (Active Directory) instance to work on.

Low

Command lines to worry about

  • Critical

    AD database exported with IFM

    ntdsutil IFM create full writes NTDS.dit and the SYSTEM hive to a folder, which yields every domain credential offline. Treat as domain-wide credential theft.

    Detection regexntdsutil(\.exe)?\s+.*ifm\b

    T1003.003

  • Critical

    Full AD snapshot or media created

    create full produces a complete copy of the AD database. Outside planned DC promotion or maintenance, this is credential theft.

    Detection regexntdsutil(\.exe)?\s+.*create\s+full\b

    T1003.003

Where it is recorded

  • Security4688Process creation with the full command line, when command-line auditing is enabled.
  • Sysmon1Process creation with command line, hashes and parent process.
  • Sysmon11Files created when NTDS.dit and the SYSTEM hive are written to the export folder.

Community detections

4 SigmaHQ rules for ntdsutil.exe. The explainer checks every pasted command line against all of them.

  • High
    Suspicious Process By Web Server Process

    Detects potentially suspicious processes being spawned by a web server process which could be the result of a successfully placed web shell or exploitation

    T1505.003T1190by Thomas Patzke, Florian Roth (Nextron Systems), Zach Stanford @svch0st, Tim Shelton, Nasreddine Bencherchali (Nextron Systems)

  • High
    Webshell Hacking Activity Patterns

    Detects certain parent child patterns found in cases in which a web shell is used to perform certain credential dumping or exfiltration activities on a compromised system

    T1505.003T1018T1033T1087by Florian Roth (Nextron Systems)

  • Medium
    Invocation of Active Directory Diagnostic Tool (ntdsutil.exe)

    Detects execution of ntdsutil.exe, which can be used for various attacks against the NTDS database (NTDS.DIT)

    T1003.003by Thomas Patzke

  • Medium
    Suspicious Usage Of Active Directory Diagnostic Tool (ntdsutil.exe)

    Detects execution of ntdsutil.exe to perform different actions such as restoring snapshots...etc.

    T1003.003by Nasreddine Bencherchali (Nextron Systems)

Rules from SigmaHQ (rules/windows/process_creation), Detection Rule License (DRL) 1.1. Each rule links to its source and credits its authors.