NTDS.DIT Creation By Uncommon Parent Process

 Original Source: [Sigma source]
Title: NTDS.DIT Creation By Uncommon Parent Process
Status: test
Description:Detects creation of a file named "ntds.dit" (Active Directory Database) by an uncommon parent process or directory
References:
  -https://www.ired.team/offensive-security/credential-access-and-credential-dumping/ntds.dit-enumeration
  -https://www.n00py.io/2022/03/manipulating-user-passwords-without-mimikatz/
  -https://pentestlab.blog/tag/ntds-dit/
  -https://github.com/samratashok/nishang/blob/414ee1104526d7057f9adaeee196d91ae447283e/Gather/Copy-VSS.ps1
Author: Florian Roth (Nextron Systems)
Date: 2022-03-11
modified:2023-01-05
Tags:
  • -'attack.credential-access'
  • -'attack.t1003.003'
Logsource:
  • product: windows
  • category: file_event
  • definition: Requirements: The "ParentImage" field is not available by default on EID 11 of Sysmon logs. To be able to use this rule to the full extent you need to enrich the log with additional ParentImage data
Detection:
  selection_file:
    TargetFilename|endswith: '\ntds.dit'
  selection_process_parent:
    ParentImage|endswith:
      -'\cscript.exe'
      -'\httpd.exe'
      -'\nginx.exe'
      -'\php-cgi.exe'
      -'\powershell.exe'
      -'\pwsh.exe'
      -'\w3wp.exe'
      -'\wscript.exe'

  selection_process_parent_path:
    ParentImage|contains:
      -'\apache'
      -'\tomcat'
      -'\AppData\'
      -'\Temp\'
      -'\Public\'
      -'\PerfLogs\'

  condition:selection_file and 1 of selection_process_*
Falsepositives:
  -Unknown
Level: high