Suspicious Process Patterns NTDS.DIT Exfil
A Sigma rule for process creation on Windows, by Florian Roth (Nextron Systems).
high 1 ATT&CK technique
What it looks for
detection:
selection_oneliner_1:
CommandLine|contains|all:
- 'ac i ntds'
- 'create full'
selection_onliner_2:
CommandLine|contains|all:
- '/c copy '
- '\windows\ntds\ntds.dit'
selection_onliner_3:
CommandLine|contains|all:
- 'activate instance ntds'
- 'create full'
selection_powershell:
CommandLine|contains|all:
- 'powershell'
- 'ntds.dit'
selection_tool:
- Image|endswith:
- '\NTDSDump.exe'
- '\NTDSDumpEx.exe'
- CommandLine|contains|all:
- 'ntds.dit'
- 'system.hiv'
- CommandLine|contains: 'NTDSgrab.ps1'
set1_selection_image_folder:
- ParentImage|contains:
- '\apache'
- '\tomcat'
- '\AppData\'
- '\Temp\'
- '\Public\'
- '\PerfLogs\'
- Image|contains:
- '\apache'
- '\tomcat'
- '\AppData\'
- '\Temp\'
- '\Public\'
- '\PerfLogs\'
set1_selection_ntds_dit:
CommandLine|contains: 'ntds.dit'
condition: 1 of selection* or all of set1*
The rule’s detection, its selections and fields in order of name. The whole rule, with its references and false positives, is on SigmaHQ, by Florian Roth (Nextron Systems), under the Detection Rule License 1.1. CmdID evaluates it on a command line alone: a test on what a command line cannot show, such as the parent process or the user, is not met.
Command lines that trip it
The commands LOLBAS or GTFOBins documents for ntdsutil.exe trip it: each is on its program’s page, read by CmdID.
ATT&CK
T1003.003OS Credential Dumping: NTDS