d52c0d2257
* [Rule Tuning] Remove "process_started" from Windows Rules * Additional, pending ones * Update defense_evasion_code_injection_conhost.toml Co-authored-by: Colson Wilhoit <48036388+DefSecSentinel@users.noreply.github.com>
78 lines
3.1 KiB
TOML
78 lines
3.1 KiB
TOML
[metadata]
|
|
creation_date = "2020/11/16"
|
|
maturity = "production"
|
|
min_stack_comments = "New fields added: required_fields, related_integrations, setup"
|
|
min_stack_version = "8.3.0"
|
|
updated_date = "2022/09/15"
|
|
|
|
[rule]
|
|
author = ["Elastic"]
|
|
description = """
|
|
Identifies remote execution of Windows services over remote procedure call (RPC). This could be indicative of lateral
|
|
movement, but will be noisy if commonly done by administrators."
|
|
"""
|
|
from = "now-9m"
|
|
index = ["logs-endpoint.events.*", "winlogbeat-*", "logs-windows.*"]
|
|
language = "eql"
|
|
license = "Elastic License v2"
|
|
name = "Remotely Started Services via RPC"
|
|
risk_score = 47
|
|
rule_id = "aa9a274d-6b53-424d-ac5e-cb8ca4251650"
|
|
severity = "medium"
|
|
tags = ["Elastic", "Host", "Windows", "Threat Detection", "Lateral Movement"]
|
|
type = "eql"
|
|
|
|
query = '''
|
|
sequence with maxspan=1s
|
|
[network where process.name : "services.exe" and
|
|
network.direction : ("incoming", "ingress") and network.transport == "tcp" and
|
|
source.port >= 49152 and destination.port >= 49152 and source.ip != "127.0.0.1" and source.ip != "::1"
|
|
] by host.id, process.entity_id
|
|
|
|
[process where event.type == "start" and process.parent.name : "services.exe" and
|
|
not (process.name : "svchost.exe" and process.args : "tiledatamodelsvc") and
|
|
not (process.name : "msiexec.exe" and process.args : "/V") and
|
|
not process.executable :
|
|
("?:\\Windows\\ADCR_Agent\\adcrsvc.exe",
|
|
"?:\\Windows\\System32\\VSSVC.exe",
|
|
"?:\\Windows\\servicing\\TrustedInstaller.exe",
|
|
"?:\\Windows\\System32\\svchost.exe",
|
|
"?:\\Program Files (x86)\\*.exe",
|
|
"?:\\Program Files\\*.exe",
|
|
"?:\\Windows\\PSEXESVC.EXE",
|
|
"?:\\Windows\\System32\\sppsvc.exe",
|
|
"?:\\Windows\\System32\\wbem\\WmiApSrv.exe",
|
|
"?:\\WINDOWS\\RemoteAuditService.exe",
|
|
"?:\\Windows\\VeeamVssSupport\\VeeamGuestHelper.exe",
|
|
"?:\\Windows\\VeeamLogShipper\\VeeamLogShipper.exe",
|
|
"?:\\Windows\\CAInvokerService.exe",
|
|
"?:\\Windows\\System32\\upfc.exe",
|
|
"?:\\Windows\\AdminArsenal\\PDQ*.exe",
|
|
"?:\\Windows\\System32\\vds.exe",
|
|
"?:\\Windows\\Veeam\\Backup\\VeeamDeploymentSvc.exe",
|
|
"?:\\Windows\\ProPatches\\Scheduler\\STSchedEx.exe",
|
|
"?:\\Windows\\System32\\certsrv.exe",
|
|
"?:\\Windows\\eset-remote-install-service.exe",
|
|
"?:\\Pella Corporation\\Pella Order Management\\GPAutoSvc.exe",
|
|
"?:\\Pella Corporation\\OSCToGPAutoService\\OSCToGPAutoSvc.exe",
|
|
"?:\\Pella Corporation\\Pella Order Management\\GPAutoSvc.exe",
|
|
"?:\\Windows\\SysWOW64\\NwxExeSvc\\NwxExeSvc.exe",
|
|
"?:\\Windows\\System32\\taskhostex.exe")
|
|
] by host.id, process.parent.entity_id
|
|
'''
|
|
|
|
|
|
[[rule.threat]]
|
|
framework = "MITRE ATT&CK"
|
|
[[rule.threat.technique]]
|
|
id = "T1021"
|
|
name = "Remote Services"
|
|
reference = "https://attack.mitre.org/techniques/T1021/"
|
|
|
|
|
|
[rule.threat.tactic]
|
|
id = "TA0008"
|
|
name = "Lateral Movement"
|
|
reference = "https://attack.mitre.org/tactics/TA0008/"
|
|
|