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>
59 lines
2.1 KiB
TOML
59 lines
2.1 KiB
TOML
[metadata]
|
|
creation_date = "2020/11/24"
|
|
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 remote execution via Windows PowerShell remoting. Windows PowerShell remoting allows a user to run any
|
|
Windows PowerShell command on one or more remote computers. This could be an indication of lateral movement.
|
|
"""
|
|
false_positives = [
|
|
"""
|
|
PowerShell remoting is a dual-use protocol that can be used for benign or malicious activity. It's important to
|
|
baseline your environment to determine the amount of noise to expect from this tool.
|
|
""",
|
|
]
|
|
from = "now-9m"
|
|
index = ["winlogbeat-*", "logs-endpoint.events.*", "logs-windows.*"]
|
|
language = "eql"
|
|
license = "Elastic License v2"
|
|
name = "Incoming Execution via PowerShell Remoting"
|
|
references = [
|
|
"https://docs.microsoft.com/en-us/powershell/scripting/learn/remoting/running-remote-commands?view=powershell-7.1",
|
|
]
|
|
risk_score = 47
|
|
rule_id = "2772264c-6fb9-4d9d-9014-b416eed21254"
|
|
severity = "medium"
|
|
tags = ["Elastic", "Host", "Windows", "Threat Detection", "Lateral Movement"]
|
|
type = "eql"
|
|
|
|
query = '''
|
|
sequence by host.id with maxspan = 30s
|
|
[network where host.os.type == "windows" and network.direction : ("incoming", "ingress") and destination.port in (5985, 5986) and
|
|
network.protocol == "http" and source.ip != "127.0.0.1" and source.ip != "::1"]
|
|
[process where host.os.type == "windows" and event.type == "start" and process.parent.name : "wsmprovhost.exe" and not process.name : "conhost.exe"]
|
|
'''
|
|
|
|
|
|
[[rule.threat]]
|
|
framework = "MITRE ATT&CK"
|
|
[[rule.threat.technique]]
|
|
id = "T1021"
|
|
name = "Remote Services"
|
|
reference = "https://attack.mitre.org/techniques/T1021/"
|
|
[[rule.threat.technique.subtechnique]]
|
|
id = "T1021.006"
|
|
name = "Windows Remote Management"
|
|
reference = "https://attack.mitre.org/techniques/T1021/006/"
|
|
|
|
[rule.threat.tactic]
|
|
id = "TA0008"
|
|
name = "Lateral Movement"
|
|
reference = "https://attack.mitre.org/tactics/TA0008/"
|
|
|