Potential Credential Access via Windows Utilities

Identifies the execution of known Windows utilities often abused to dump LSASS memory or the Active Directory database (NTDS.dit) in preparation for credential access.

Elastic rule (View on GitHub)

  1[metadata]
  2creation_date = "2020/11/24"
  3integration = ["endpoint", "windows", "m365_defender", "sentinel_one_cloud_funnel", "system"]
  4maturity = "production"
  5updated_date = "2025/03/20"
  6
  7[rule]
  8author = ["Elastic"]
  9description = """
 10Identifies the execution of known Windows utilities often abused to dump LSASS memory or the Active Directory database
 11(NTDS.dit) in preparation for credential access.
 12"""
 13from = "now-9m"
 14index = [
 15    "endgame-*",
 16    "logs-endpoint.events.process-*",
 17    "logs-m365_defender.event-*",
 18    "logs-sentinel_one_cloud_funnel.*",
 19    "logs-system.security*",
 20    "logs-windows.forwarded*",
 21    "logs-windows.sysmon_operational-*",
 22    "winlogbeat-*",
 23]
 24language = "eql"
 25license = "Elastic License v2"
 26name = "Potential Credential Access via Windows Utilities"
 27note = """## Triage and analysis
 28
 29### Investigating Potential Credential Access via Windows Utilities
 30
 31Local Security Authority Server Service (LSASS) is a process in Microsoft Windows operating systems that is responsible for enforcing security policy on the system. It verifies users logging on to a Windows computer or server, handles password changes, and creates access tokens.
 32
 33The `Ntds.dit` file is a database that stores Active Directory data, including information about user objects, groups, and group membership.
 34
 35This rule looks for the execution of utilities that can extract credential data from the LSASS memory and Active Directory `Ntds.dit` file.
 36
 37#### Possible investigation steps
 38
 39- Investigate the process execution chain (parent process tree) for unknown processes. Examine their executable files for prevalence, whether they are located in expected locations, and if they are signed with valid digital signatures.
 40- Investigate abnormal behaviors observed by the subject process, such as network connections, registry or file modifications, and any spawned child processes.
 41- Investigate other alerts associated with the user/host during the past 48 hours.
 42- Examine the command line to identify what information was targeted.
 43- Identify the target computer and its role in the IT environment.
 44
 45### False positive analysis
 46
 47- This activity is unlikely to happen legitimately. Any activity that triggered the alert and is not inherently malicious must be monitored by the security team.
 48
 49### Response and remediation
 50
 51- Initiate the incident response process based on the outcome of the triage.
 52- If the host is a domain controller (DC):
 53  - Activate your incident response plan for total Active Directory compromise.
 54  - Review the privileges assigned to users that can access the DCs, to ensure that the least privilege principle is being followed and to reduce the attack surface.
 55- Isolate the involved hosts to prevent further post-compromise behavior.
 56- Investigate credential exposure on systems compromised or used by the attacker to ensure all compromised accounts are identified. Reset passwords for these accounts and other potentially compromised credentials, such as email, business systems, and web services.
 57- Run a full antimalware scan. This may reveal additional artifacts left in the system, persistence mechanisms, and malware components.
 58- Determine the initial vector abused by the attacker and take action to prevent reinfection through the same vector.
 59- Using the incident response data, update logging and audit policies to improve the mean time to detect (MTTD) and the mean time to respond (MTTR).
 60"""
 61references = [
 62    "https://lolbas-project.github.io/",
 63    "https://www.elastic.co/security-labs/elastic-protects-against-data-wiper-malware-targeting-ukraine-hermeticwiper",
 64]
 65risk_score = 73
 66rule_id = "00140285-b827-4aee-aa09-8113f58a08f3"
 67severity = "high"
 68tags = [
 69    "Domain: Endpoint",
 70    "OS: Windows",
 71    "Use Case: Threat Detection",
 72    "Tactic: Credential Access",
 73    "Tactic: Defense Evasion",
 74    "Resources: Investigation Guide",
 75    "Data Source: Elastic Endgame",
 76    "Data Source: Elastic Defend",
 77    "Data Source: Windows Security Event Logs",
 78    "Data Source: Microsoft Defender for Endpoint",
 79    "Data Source: SentinelOne",
 80    "Data Source: Sysmon",
 81]
 82timestamp_override = "event.ingested"
 83type = "eql"
 84
 85query = '''
 86process where host.os.type == "windows" and event.type == "start" and
 87(
 88  (
 89    (?process.pe.original_file_name : "procdump" or process.name : "procdump.exe") and process.args : "-ma"
 90  ) or
 91  (
 92    process.name : "ProcessDump.exe" and not process.parent.executable regex~ """C:\\Program Files( \(x86\))?\\Cisco Systems\\.*"""
 93  ) or
 94  (
 95    (?process.pe.original_file_name : "WriteMiniDump.exe" or process.name : "WriteMiniDump.exe") and
 96      not process.parent.executable regex~ """C:\\Program Files( \(x86\))?\\Steam\\.*"""
 97  ) or
 98  (
 99    (?process.pe.original_file_name : "RUNDLL32.EXE" or process.name : "RUNDLL32.exe") and
100      (process.args : "MiniDump*" or process.command_line : "*comsvcs.dll*#24*")
101  ) or
102  (
103    (?process.pe.original_file_name : "RdrLeakDiag.exe" or process.name : "RdrLeakDiag.exe") and
104      process.args : "/fullmemdmp"
105  ) or
106  (
107    (?process.pe.original_file_name : "SqlDumper.exe" or process.name : "SqlDumper.exe") and
108      process.args : "0x01100*") or
109  (
110    (?process.pe.original_file_name : "TTTracer.exe" or process.name : "TTTracer.exe") and
111      process.args : "-dumpFull" and process.args : "-attach") or
112  (
113    (?process.pe.original_file_name : "ntdsutil.exe" or process.name : "ntdsutil.exe") and
114      process.args : "create*full*") or
115  (
116    (?process.pe.original_file_name : "diskshadow.exe" or process.name : "diskshadow.exe") and process.args : "/s")
117)
118'''
119
120
121[[rule.threat]]
122framework = "MITRE ATT&CK"
123[[rule.threat.technique]]
124id = "T1003"
125name = "OS Credential Dumping"
126reference = "https://attack.mitre.org/techniques/T1003/"
127[[rule.threat.technique.subtechnique]]
128id = "T1003.001"
129name = "LSASS Memory"
130reference = "https://attack.mitre.org/techniques/T1003/001/"
131
132[[rule.threat.technique.subtechnique]]
133id = "T1003.003"
134name = "NTDS"
135reference = "https://attack.mitre.org/techniques/T1003/003/"
136
137
138
139[rule.threat.tactic]
140id = "TA0006"
141name = "Credential Access"
142reference = "https://attack.mitre.org/tactics/TA0006/"
143[[rule.threat]]
144framework = "MITRE ATT&CK"
145[[rule.threat.technique]]
146id = "T1218"
147name = "System Binary Proxy Execution"
148reference = "https://attack.mitre.org/techniques/T1218/"
149[[rule.threat.technique.subtechnique]]
150id = "T1218.011"
151name = "Rundll32"
152reference = "https://attack.mitre.org/techniques/T1218/011/"
153
154
155
156[rule.threat.tactic]
157id = "TA0005"
158name = "Defense Evasion"
159reference = "https://attack.mitre.org/tactics/TA0005/"
...
toml

Local Security Authority Server Service (LSASS) is a process in Microsoft Windows operating systems that is responsible for enforcing security policy on the system. It verifies users logging on to a Windows computer or server, handles password changes, and creates access tokens.

The Ntds.dit file is a database that stores Active Directory data, including information about user objects, groups, and group membership.

This rule looks for the execution of utilities that can extract credential data from the LSASS memory and Active Directory Ntds.dit file.

  • Investigate the process execution chain (parent process tree) for unknown processes. Examine their executable files for prevalence, whether they are located in expected locations, and if they are signed with valid digital signatures.
  • Investigate abnormal behaviors observed by the subject process, such as network connections, registry or file modifications, and any spawned child processes.
  • Investigate other alerts associated with the user/host during the past 48 hours.
  • Examine the command line to identify what information was targeted.
  • Identify the target computer and its role in the IT environment.
  • This activity is unlikely to happen legitimately. Any activity that triggered the alert and is not inherently malicious must be monitored by the security team.
  • Initiate the incident response process based on the outcome of the triage.
  • If the host is a domain controller (DC):
    • Activate your incident response plan for total Active Directory compromise.
    • Review the privileges assigned to users that can access the DCs, to ensure that the least privilege principle is being followed and to reduce the attack surface.
  • Isolate the involved hosts to prevent further post-compromise behavior.
  • Investigate credential exposure on systems compromised or used by the attacker to ensure all compromised accounts are identified. Reset passwords for these accounts and other potentially compromised credentials, such as email, business systems, and web services.
  • Run a full antimalware scan. This may reveal additional artifacts left in the system, persistence mechanisms, and malware components.
  • Determine the initial vector abused by the attacker and take action to prevent reinfection through the same vector.
  • Using the incident response data, update logging and audit policies to improve the mean time to detect (MTTD) and the mean time to respond (MTTR).

References

Related rules

to-top