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>
50 lines
1.6 KiB
TOML
50 lines
1.6 KiB
TOML
[metadata]
|
|
creation_date = "2020/09/02"
|
|
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"]
|
|
description = """
|
|
Identifies WMIC allowlist bypass techniques by alerting on suspicious execution of scripts. When WMIC loads scripting
|
|
libraries it may be indicative of an allowlist bypass.
|
|
"""
|
|
from = "now-9m"
|
|
index = ["winlogbeat-*", "logs-endpoint.events.*", "logs-windows.*"]
|
|
language = "eql"
|
|
license = "Elastic License v2"
|
|
name = "Suspicious WMIC XSL Script Execution"
|
|
risk_score = 47
|
|
rule_id = "7f370d54-c0eb-4270-ac5a-9a6020585dc6"
|
|
severity = "medium"
|
|
tags = ["Elastic", "Host", "Windows", "Threat Detection", "Defense Evasion"]
|
|
type = "eql"
|
|
|
|
query = '''
|
|
sequence by process.entity_id with maxspan = 2m
|
|
[process where host.os.type == "windows" and event.type == "start" and
|
|
(process.name : "WMIC.exe" or process.pe.original_file_name : "wmic.exe") and
|
|
process.args : ("format*:*", "/format*:*", "*-format*:*") and
|
|
not process.command_line : "* /format:table *"]
|
|
[any where host.os.type == "windows" and (event.category == "library" or (event.category == "process" and event.action : "Image loaded*")) and
|
|
(dll.name : ("jscript.dll", "vbscript.dll") or file.name : ("jscript.dll", "vbscript.dll"))]
|
|
'''
|
|
|
|
|
|
[[rule.threat]]
|
|
framework = "MITRE ATT&CK"
|
|
[[rule.threat.technique]]
|
|
id = "T1220"
|
|
name = "XSL Script Processing"
|
|
reference = "https://attack.mitre.org/techniques/T1220/"
|
|
|
|
|
|
[rule.threat.tactic]
|
|
id = "TA0005"
|
|
name = "Defense Evasion"
|
|
reference = "https://attack.mitre.org/tactics/TA0005/"
|
|
|