Operator On The Wire
Join
← Back to Knowledge Base
BLUE TEAM / THREAT HUNT / ACTIVE DIRECTORY / CREDENTIAL ACCESS / SECRETS

NTDS

This note documents detection patterns related to NTDS Dumping within Active Directory environments.


Direct Indicators

LogEvent IDMeaningForensic ValueNotes
Security4688Process creationCriticalLook for execution of tools capable of dumping NTDS such as ntdsutil.exe, secretsdump.py, mimikatz, or vssadmin. Review CommandLine and ParentProcessName.
Security4673Sensitive privilege usedHighPrivilege usage such as SeBackupPrivilege often required for NTDS extraction.
Security4656Handle requested to objectHighAccess to NTDS.dit file or volume shadow copy devices.
Security4663Object accessHighFile access events involving NTDS.dit or shadow copy volumes.
Sysmon1Process creationCriticalExecution of NTDS dumping utilities or commands interacting with volume shadow copies.
Sysmon11File creationHighCreation of NTDS.dit copies or related dump files.
Sysmon3Network connectionMediumRemote execution tools communicating with domain controllers.

Indirect Indicators

IndicatorWhat To Look ForForensic ValueNotes
Volume shadow copy creationUse of vssadmin or wmic shadowcopy commandsCriticalCommon method to bypass NTDS file locks.
ntdsutil executionRunning ntdsutil to extract database snapshotsHighOften indicates credential dumping attempt.
Temporary NTDS copiesFiles named ntds.dit appearing outside standard AD database directoryHighAttackers often copy database for offline extraction.
Suspicious admin activity on DCCommands executed from compromised administrative accountsHighDomain controller compromise scenario.
Post-dump credential usageAuthentication using domain admin accounts shortly after NTDS extractionCriticalIndicates attacker cracked or reused domain hashes.

Common Tools

ToolUsage
ntdsutilCreates snapshots and extracts NTDS.dit database.
Impacket secretsdump.pyRemotely extracts NTDS credentials from domain controllers.
MimikatzCan extract credentials from NTDS database.
vssadminCreates volume shadow copies allowing access to locked files.
wmic shadowcopyAlternative method for creating shadow copies.
Cobalt StrikeOften used to run credential dumping modules.

Relevant Artifacts

  • Windows Security logs (4688, 4673, 4656, 4663)
  • Sysmon logs (1, 3, 11)
  • NTDS.dit database copies
  • Volume Shadow Copy artifacts
  • Prefetch entries for dumping utilities
  • MFT artifacts showing database copies
  • PowerShell logs if dumping executed via scripts
  • Endpoint telemetry identifying suspicious activity on domain controllers

MITRE ATT&CK References

  • T1003 OS Credential Dumping
  • T1003.003 NTDS
  • T1078 Valid Accounts
  • T1552 Unsecured Credentials

Decision Tree

  1. Is the suspicious event present?
    • Look for commands involving ntdsutil, vssadmin, or shadowcopy creation.
  2. What host generated the event?
    • Determine if activity occurred on a domain controller or remotely.
  3. Is the account expected to perform this action?
    • Only domain administrators performing backups normally access NTDS database.
  4. Pivot:
    • Source host → review executed commands and scripts.
    • Account → verify privileges and group membership.
    • Network → check for lateral movement following credential extraction.
  5. Confirm exploitation
    • Investigate whether extracted domain hashes were used for authentication attempts.

Example Detection Templates

KQL

SecurityEvent
| where EventID == 4688
| where CommandLine contains "ntdsutil" or CommandLine contains "vssadmin"
| project TimeGenerated, Computer, NewProcessName, CommandLine, ParentProcessName
Sysmon
| where EventID == 11
| where TargetFilename contains "ntds.dit"
| project TimeGenerated, Computer, TargetFilename, Image

EQL

process where process.command_line like "*ntdsutil*" or process.command_line like "*vssadmin*"

Sigma

title: NTDS Database Dump Attempt
id: ntds-dump-detection
status: experimental
description: Detects potential NTDS database dumping via ntdsutil or shadow copy utilities
logsource:
  product: windows
  category: process_creation
detection:
  selection:
    CommandLine|contains:
      - "ntdsutil"
      - "vssadmin"
      - "shadowcopy"
  condition: selection
fields:
  - CommandLine
  - ParentProcessName
falsepositives:
  - Legitimate domain controller backup operations
level: critical
tags:
  - attack.credential_access
  - attack.t1003.003

Mitigation & Hardening

Control AreaMitigationEffectivenessNotes
Privilege restrictionLimit domain admin privilegesHighReduces ability to access NTDS database.
MonitoringAlert on shadow copy creation on domain controllersHighHelps detect NTDS dumping preparation.
Endpoint protectionDeploy EDR on domain controllersHighDetects suspicious credential extraction activity.
Backup controlsRestrict backup operators and monitor backup operationsMediumPrevents abuse of backup privileges.
LoggingEnable auditing of object access and process creationHighImproves detection capability.