eeb8ab7744
* Expand timestamp_override tests
* removed timestamp_override from eql sequence rules
* add config entry for eql rules with beats index and t_o
* add timestamp_override to missing fields
Removed changes from:
- rules/cross-platform/impact_hosts_file_modified.toml
- rules/windows/credential_access_lsass_memdump_file_created.toml
- rules/windows/defense_evasion_adding_the_hidden_file_attribute_with_via_attribexe.toml
- rules/windows/defense_evasion_execution_lolbas_wuauclt.toml
- rules/windows/defense_evasion_suspicious_certutil_commands.toml
- rules/windows/execution_command_shell_started_by_svchost.toml
(selectively cherry picked from commit 6bdfddac8e)
63 lines
2.5 KiB
TOML
63 lines
2.5 KiB
TOML
[metadata]
|
|
creation_date = "2021/07/07"
|
|
maturity = "production"
|
|
updated_date = "2022/03/31"
|
|
|
|
[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.*"]
|
|
language = "eql"
|
|
license = "Elastic License v2"
|
|
name = "Potential DLL Side-Loading via Microsoft Antimalware Service Executable"
|
|
note = """## Config
|
|
|
|
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"]
|
|
timestamp_override = "event.ingested"
|
|
type = "eql"
|
|
|
|
query = '''
|
|
process where 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/"
|
|
|