Detection rules › Elastic
CrashDump Disabled via Registry Modification
Identifies attempt to disable memory crashdump via registry modification. Malware using kernel mode component may perform this action to limit exposure in the case of an unexpected system crash.
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Persistence | |
| Defense Impairment |
Rule body
[rule]
description = """
Identifies attempt to disable memory crashdump via registry modification. Malware using kernel mode component may
perform this action to limit exposure in the case of an unexpected system crash.
"""
id = "77ca3fcc-f607-45e0-837e-e4173e4ffc2a"
license = "Elastic License v2"
name = "CrashDump Disabled via Registry Modification"
os_list = ["windows"]
reference = [
"https://www.elastic.co/security-labs/elastic-protects-against-data-wiper-malware-targeting-ukraine-hermeticwiper",
"https://docs.microsoft.com/en-us/troubleshoot/windows-server/performance/memory-dump-file-options",
]
version = "1.0.31"
query = '''
registry where registry.value : "CrashDumpEnabled" and registry.data.strings : "0" and
process.executable != null and
not (user.id in ("S-1-5-18", "S-1-5-19", "S-1-5-20") and
process.executable : ("?:\\Windows\\System32\\svchost.exe", "?:\\Windows\\System32\\msiexec.exe")) and
not process.executable : (
"?:\\Windows\\System32\\SystemPropertiesAdvanced.exe",
/* TBR */
"?:\\Program Files (x86)\\Citrix\\Workspace Environment Management Agent\\Citrix.Wem.Agent.Service.exe")
'''
min_endpoint_version = "7.15.0"
[[actions]]
action = "kill_process"
field = "process.entity_id"
state = 0
[[optional_actions]]
action = "rollback"
field = "process.entity_id"
state = 0
[[threat]]
framework = "MITRE ATT&CK"
[[threat.technique]]
id = "T1112"
name = "Modify Registry"
reference = "https://attack.mitre.org/techniques/T1112/"
[threat.tactic]
id = "TA0005"
name = "Defense Evasion"
reference = "https://attack.mitre.org/tactics/TA0005/"
[internal]
min_endpoint_version = "7.15.0"
Stages and Predicates
Stage 1: registry
registry where registry.value : "CrashDumpEnabled" and registry.data.strings : "0" and
process.executable != null and
not (user.id in ("S-1-5-18", "S-1-5-19", "S-1-5-20") and
process.executable : ("?:\\Windows\\System32\\svchost.exe", "?:\\Windows\\System32\\msiexec.exe")) and
not process.executable : (
"?:\\Windows\\System32\\SystemPropertiesAdvanced.exe",
"?:\\Program Files (x86)\\Citrix\\Workspace Environment Management Agent\\Citrix.Wem.Agent.Service.exe")
Exclusions
The rule actively suppresses these predicates.
| Field | Kind | Excluded values | Search |
|---|---|---|---|
process.executable | eq | ?:\Windows\System32\svchost.exe, ?:\Windows\System32\msiexec.exe | excludes:process.executable field:"process.executable" value:"?:\Windows\System32\svchost.exe" field:"process.executable" value:"?:\Windows\System32\msiexec.exe" |
user.id | in | S-1-5-18, S-1-5-19, S-1-5-20 | excludes:user.id field:"user.id" value:"S-1-5-18" field:"user.id" value:"S-1-5-19" field:"user.id" value:"S-1-5-20" |
process.executable | eq | ?:\Windows\System32\SystemPropertiesAdvanced.exe, ?:\Program Files (x86)\Citrix\Workspace Environment Management Agent\Citrix.Wem.Agent.Service.exe | excludes:process.executable field:"process.executable" value:"?:\Windows\System32\SystemPropertiesAdvanced.exe" field:"process.executable" value:"?:\Program Files (x86)\Citrix\Workspace Environment Management Agent\Citrix.Wem.Agent.Service.exe" |
Indicators
These rows show field, operator, and value matches.
| Field | Kind | Values | Search |
|---|---|---|---|
process.executable | is_not_null | field:"Image" kind:is_not_null | |
registry.data.strings | wildcard |
| field:"Details" kind:wildcard value:"0" |
registry.value | wildcard |
| field:"registry_value_name" kind:wildcard value:"CrashDumpEnabled" |