71 lines
2.7 KiB
TOML
71 lines
2.7 KiB
TOML
[metadata]
|
|
creation_date = "2020/09/02"
|
|
integration = ["endpoint", "windows", "m365_defender", "sentinel_one_cloud_funnel"]
|
|
maturity = "production"
|
|
updated_date = "2024/10/15"
|
|
min_stack_version = "8.14.0"
|
|
min_stack_comments = "Breaking change at 8.14.0 for the Windows Integration."
|
|
|
|
[rule]
|
|
author = ["Elastic"]
|
|
description = """
|
|
Identifies the installation of custom Application Compatibility Shim databases. This Windows functionality has been
|
|
abused by attackers to stealthily gain persistence and arbitrary code execution in legitimate Windows processes.
|
|
"""
|
|
from = "now-9m"
|
|
index = ["logs-endpoint.events.registry-*", "winlogbeat-*", "logs-windows.sysmon_operational-*", "logs-m365_defender.event-*", "logs-sentinel_one_cloud_funnel.*", "endgame-*"]
|
|
language = "eql"
|
|
license = "Elastic License v2"
|
|
name = "Installation of Custom Shim Databases"
|
|
risk_score = 47
|
|
rule_id = "c5ce48a6-7f57-4ee8-9313-3d0024caee10"
|
|
severity = "medium"
|
|
tags = [
|
|
"Domain: Endpoint",
|
|
"OS: Windows",
|
|
"Use Case: Threat Detection",
|
|
"Tactic: Persistence",
|
|
"Data Source: Elastic Defend",
|
|
"Data Source: Sysmon",
|
|
"Data Source: Microsoft Defender for Endpoint",
|
|
"Data Source: SentinelOne",
|
|
"Data Source: Elastic Endgame",
|
|
]
|
|
timestamp_override = "event.ingested"
|
|
type = "eql"
|
|
|
|
query = '''
|
|
registry where host.os.type == "windows" and event.type == "change" and
|
|
registry.path : (
|
|
"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\Custom\\*.sdb",
|
|
"\\REGISTRY\\MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\Custom\\*.sdb",
|
|
"MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\Custom\\*.sdb"
|
|
) and
|
|
not process.executable :
|
|
("?:\\Program Files (x86)\\DesktopCentral_Agent\\swrepository\\1\\swuploads\\SAP-SLC\\SAPSetupSLC02_14-80001954\\Setup\\NwSapSetup.exe",
|
|
"?:\\$WINDOWS.~BT\\Sources\\SetupPlatform.exe",
|
|
"?:\\Program Files (x86)\\SAP\\SAPsetup\\setup\\NwSapSetup.exe",
|
|
"?:\\Program Files (x86)\\SAP\\SapSetup\\OnRebootSvc\\NWSAPSetupOnRebootInstSvc.exe",
|
|
"?:\\Program Files (x86)\\Kaspersky Lab\\Kaspersky Security for Windows Server\\kavfs.exe")
|
|
'''
|
|
|
|
|
|
[[rule.threat]]
|
|
framework = "MITRE ATT&CK"
|
|
[[rule.threat.technique]]
|
|
id = "T1546"
|
|
name = "Event Triggered Execution"
|
|
reference = "https://attack.mitre.org/techniques/T1546/"
|
|
[[rule.threat.technique.subtechnique]]
|
|
id = "T1546.011"
|
|
name = "Application Shimming"
|
|
reference = "https://attack.mitre.org/techniques/T1546/011/"
|
|
|
|
|
|
|
|
[rule.threat.tactic]
|
|
id = "TA0003"
|
|
name = "Persistence"
|
|
reference = "https://attack.mitre.org/tactics/TA0003/"
|
|
|