59da2da474
* add unit tests to ensure host type and platform are included * add host.os.name 'linux' to all linux rules * add host.os.name macos to mac rules * add host.os.name to windows rules; fix linux dates * update from host.os.name to host.os.type Co-authored-by: brokensound77 <brokensound77@users.noreply.github.com> Co-authored-by: Jonhnathan <26856693+w0rk3r@users.noreply.github.com>
68 lines
2.7 KiB
TOML
68 lines
2.7 KiB
TOML
[metadata]
|
|
creation_date = "2021/07/07"
|
|
integration = ["endpoint", "windows"]
|
|
maturity = "production"
|
|
min_stack_comments = "New fields added: required_fields, related_integrations, setup"
|
|
min_stack_version = "8.3.0"
|
|
updated_date = "2023/02/22"
|
|
|
|
[rule]
|
|
author = ["Elastic", "Dennis Perto"]
|
|
description = """
|
|
Identifies a Windows trusted program that is known to be vulnerable to DLL Search Order Hijacking starting after being
|
|
renamed or from a non-standard path. This is uncommon behavior and may indicate an attempt to evade defenses via
|
|
side-loading a malicious DLL within the memory space of one of those processes.
|
|
"""
|
|
false_positives = ["Microsoft Antimalware Service Executable installed on non default installation path."]
|
|
from = "now-9m"
|
|
index = ["winlogbeat-*", "logs-endpoint.events.*", "logs-windows.*", "endgame-*"]
|
|
language = "eql"
|
|
license = "Elastic License v2"
|
|
name = "Potential DLL Side-Loading via Microsoft Antimalware Service Executable"
|
|
note = """## Setup
|
|
|
|
If enabling an EQL rule on a non-elastic-agent index (such as beats) for versions <8.2, events will not define `event.ingested` and default fallback for EQL rules was not added until 8.2, so you will need to add a custom pipeline to populate `event.ingested` to @timestamp for this rule to work.
|
|
"""
|
|
references = [
|
|
"https://news.sophos.com/en-us/2021/07/04/independence-day-revil-uses-supply-chain-exploit-to-attack-hundreds-of-businesses/",
|
|
]
|
|
risk_score = 73
|
|
rule_id = "053a0387-f3b5-4ba5-8245-8002cca2bd08"
|
|
severity = "high"
|
|
tags = ["Elastic", "Host", "Windows", "Threat Detection", "Defense Evasion", "Elastic Endgame"]
|
|
timestamp_override = "event.ingested"
|
|
type = "eql"
|
|
|
|
query = '''
|
|
process where host.os.type == "windows" and event.type == "start" and
|
|
(
|
|
(process.pe.original_file_name == "MsMpEng.exe" and not process.name : "MsMpEng.exe") or
|
|
(process.name : "MsMpEng.exe" and not
|
|
process.executable : ("?:\\ProgramData\\Microsoft\\Windows Defender\\*.exe",
|
|
"?:\\Program Files\\Windows Defender\\*.exe",
|
|
"?:\\Program Files (x86)\\Windows Defender\\*.exe",
|
|
"?:\\Program Files\\Microsoft Security Client\\*.exe",
|
|
"?:\\Program Files (x86)\\Microsoft Security Client\\*.exe"))
|
|
)
|
|
'''
|
|
|
|
|
|
[[rule.threat]]
|
|
framework = "MITRE ATT&CK"
|
|
[[rule.threat.technique]]
|
|
id = "T1574"
|
|
name = "Hijack Execution Flow"
|
|
reference = "https://attack.mitre.org/techniques/T1574/"
|
|
[[rule.threat.technique.subtechnique]]
|
|
id = "T1574.002"
|
|
name = "DLL Side-Loading"
|
|
reference = "https://attack.mitre.org/techniques/T1574/002/"
|
|
|
|
|
|
|
|
[rule.threat.tactic]
|
|
id = "TA0005"
|
|
name = "Defense Evasion"
|
|
reference = "https://attack.mitre.org/tactics/TA0005/"
|
|
|