2020-11-17 21:19:30 +01:00
|
|
|
[metadata]
|
|
|
|
|
creation_date = "2020/10/19"
|
2024-11-04 11:55:04 -03:00
|
|
|
integration = ["endpoint", "windows", "system", "m365_defender", "sentinel_one_cloud_funnel", "crowdstrike"]
|
2020-11-17 21:19:30 +01:00
|
|
|
maturity = "production"
|
2024-11-04 11:55:04 -03:00
|
|
|
updated_date = "2024/10/31"
|
2024-10-15 15:27:44 -03:00
|
|
|
min_stack_version = "8.14.0"
|
|
|
|
|
min_stack_comments = "Breaking change at 8.14.0 for the Windows Integration."
|
2020-11-17 21:19:30 +01:00
|
|
|
|
|
|
|
|
[rule]
|
|
|
|
|
author = ["Elastic"]
|
|
|
|
|
description = """
|
2020-12-18 12:46:16 -09:00
|
|
|
Identifies suspicious command execution (cmd) via Windows Management Instrumentation (WMI) on a remote host. This could
|
|
|
|
|
be indicative of adversary lateral movement.
|
2020-11-17 21:19:30 +01:00
|
|
|
"""
|
|
|
|
|
from = "now-9m"
|
2024-05-23 00:45:10 +05:30
|
|
|
index = [
|
|
|
|
|
"logs-endpoint.events.process-*",
|
|
|
|
|
"winlogbeat-*",
|
2024-10-11 15:58:37 -03:00
|
|
|
"logs-windows.forwarded*",
|
|
|
|
|
"logs-windows.sysmon_operational-*",
|
2024-05-23 00:45:10 +05:30
|
|
|
"endgame-*",
|
|
|
|
|
"logs-system.security*",
|
2024-10-11 15:58:37 -03:00
|
|
|
"logs-m365_defender.event-*",
|
|
|
|
|
"logs-sentinel_one_cloud_funnel.*",
|
2024-11-04 11:55:04 -03:00
|
|
|
"logs-crowdstrike.fdr*",
|
2024-05-23 00:45:10 +05:30
|
|
|
]
|
2020-11-17 21:19:30 +01:00
|
|
|
language = "eql"
|
2021-03-03 22:12:11 -09:00
|
|
|
license = "Elastic License v2"
|
2020-11-17 21:19:30 +01:00
|
|
|
name = "Suspicious Cmd Execution via WMI"
|
2024-09-25 15:19:20 -05:00
|
|
|
references = [
|
|
|
|
|
"https://www.elastic.co/security-labs/elastic-protects-against-data-wiper-malware-targeting-ukraine-hermeticwiper",
|
|
|
|
|
"https://www.elastic.co/security-labs/operation-bleeding-bear",
|
|
|
|
|
]
|
2020-11-17 21:19:30 +01:00
|
|
|
risk_score = 47
|
|
|
|
|
rule_id = "12f07955-1674-44f7-86b5-c35da0a6f41a"
|
|
|
|
|
severity = "medium"
|
2024-05-23 00:45:10 +05:30
|
|
|
tags = [
|
|
|
|
|
"Domain: Endpoint",
|
|
|
|
|
"OS: Windows",
|
|
|
|
|
"Use Case: Threat Detection",
|
|
|
|
|
"Tactic: Execution",
|
|
|
|
|
"Data Source: Elastic Endgame",
|
|
|
|
|
"Data Source: Elastic Defend",
|
2024-08-09 11:14:33 -03:00
|
|
|
"Data Source: System",
|
2024-10-11 15:58:37 -03:00
|
|
|
"Data Source: Microsoft Defender for Endpoint",
|
|
|
|
|
"Data Source: Sysmon",
|
|
|
|
|
"Data Source: SentinelOne",
|
2024-11-04 11:55:04 -03:00
|
|
|
"Data Source: Crowdstrike",
|
2024-05-23 00:45:10 +05:30
|
|
|
]
|
2021-02-16 10:52:48 -09:00
|
|
|
timestamp_override = "event.ingested"
|
2020-11-17 21:19:30 +01:00
|
|
|
type = "eql"
|
|
|
|
|
|
|
|
|
|
query = '''
|
2023-03-05 09:41:19 -09:00
|
|
|
process where host.os.type == "windows" and event.type == "start" and
|
2021-02-04 10:23:32 -05:00
|
|
|
process.parent.name : "WmiPrvSE.exe" and process.name : "cmd.exe" and
|
|
|
|
|
process.args : "\\\\127.0.0.1\\*" and process.args : ("2>&1", "1>")
|
2020-11-17 21:19:30 +01:00
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[[rule.threat]]
|
|
|
|
|
framework = "MITRE ATT&CK"
|
|
|
|
|
[[rule.threat.technique]]
|
|
|
|
|
id = "T1047"
|
|
|
|
|
name = "Windows Management Instrumentation"
|
|
|
|
|
reference = "https://attack.mitre.org/techniques/T1047/"
|
|
|
|
|
|
2023-10-15 18:12:20 -03:00
|
|
|
[[rule.threat.technique]]
|
|
|
|
|
id = "T1059"
|
|
|
|
|
name = "Command and Scripting Interpreter"
|
|
|
|
|
reference = "https://attack.mitre.org/techniques/T1059/"
|
|
|
|
|
[[rule.threat.technique.subtechnique]]
|
|
|
|
|
id = "T1059.003"
|
|
|
|
|
name = "Windows Command Shell"
|
|
|
|
|
reference = "https://attack.mitre.org/techniques/T1059/003/"
|
|
|
|
|
|
2024-05-23 00:45:10 +05:30
|
|
|
|
|
|
|
|
|
2020-11-17 21:19:30 +01:00
|
|
|
[rule.threat.tactic]
|
2020-12-18 12:46:16 -09:00
|
|
|
id = "TA0002"
|
|
|
|
|
name = "Execution"
|
|
|
|
|
reference = "https://attack.mitre.org/tactics/TA0002/"
|
2021-03-03 22:12:11 -09:00
|
|
|
|