Skip to content

Commit 2c2b3e7

Browse files
[Tuning] Lateral Movement Rules (#4736)
* Update lateral_movement_incoming_winrm_shell_execution.toml * Update execution_suspicious_cmd_wmi.toml * Update lateral_movement_incoming_wmi.toml * Update lateral_movement_powershell_remoting_target.toml * Update lateral_movement_incoming_wmi.toml * Update execution_suspicious_cmd_wmi.toml --------- Co-authored-by: Mika Ayenson, PhD <Mikaayenson@users.noreply.github.com>
1 parent 22cf1f0 commit 2c2b3e7

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

rules/windows/execution_suspicious_cmd_wmi.toml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
creation_date = "2020/10/19"
33
integration = ["endpoint", "windows", "system", "m365_defender", "sentinel_one_cloud_funnel", "crowdstrike"]
44
maturity = "production"
5-
updated_date = "2025/03/20"
5+
updated_date = "2025/05/20"
66

77
[rule]
88
author = ["Elastic"]
@@ -64,9 +64,9 @@ references = [
6464
"https://www.elastic.co/security-labs/elastic-protects-against-data-wiper-malware-targeting-ukraine-hermeticwiper",
6565
"https://www.elastic.co/security-labs/operation-bleeding-bear",
6666
]
67-
risk_score = 47
67+
risk_score = 73
6868
rule_id = "12f07955-1674-44f7-86b5-c35da0a6f41a"
69-
severity = "medium"
69+
severity = "high"
7070
tags = [
7171
"Domain: Endpoint",
7272
"OS: Windows",
@@ -86,8 +86,9 @@ type = "eql"
8686

8787
query = '''
8888
process where host.os.type == "windows" and event.type == "start" and
89-
process.parent.name : "WmiPrvSE.exe" and process.name : "cmd.exe" and
90-
process.args : "\\\\127.0.0.1\\*" and process.args : ("2>&1", "1>")
89+
process.parent.name : "WmiPrvSE.exe" and process.name : "cmd.exe" and process.args : "/c" and process.args:"/Q" and
90+
process.args : "2>&1" and process.args: "1>" and
91+
process.args : ("C:\\windows\\temp\\*.txt", "\\Windows\\Temp\\*", "-encodehex", "\\\\127.0.0.1\\C$\\Windows\\Temp\\*", "\\\\127.0.0.1\\ADMIN$\\__*.*")
9192
'''
9293

9394

rules/windows/lateral_movement_incoming_winrm_shell_execution.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
creation_date = "2020/11/24"
33
integration = ["endpoint", "windows"]
44
maturity = "production"
5-
updated_date = "2025/03/20"
5+
updated_date = "2025/05/20"
66

77
[rule]
88
author = ["Elastic"]
@@ -78,7 +78,7 @@ type = "eql"
7878
query = '''
7979
sequence by host.id with maxspan=30s
8080
[network where host.os.type == "windows" and process.pid == 4 and network.direction : ("incoming", "ingress") and
81-
destination.port in (5985, 5986) and network.protocol == "http" and source.ip != "127.0.0.1" and source.ip != "::1"]
81+
destination.port in (5985, 5986) and source.ip != "127.0.0.1" and source.ip != "::1"]
8282
[process where host.os.type == "windows" and
8383
event.type == "start" and process.parent.name : "winrshost.exe" and not process.executable : "?:\\Windows\\System32\\conhost.exe"]
8484
'''

rules/windows/lateral_movement_incoming_wmi.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
creation_date = "2020/11/15"
33
integration = ["endpoint", "windows"]
44
maturity = "production"
5-
updated_date = "2025/03/20"
5+
updated_date = "2025/05/20"
66

77
[rule]
88
author = ["Elastic"]
@@ -69,13 +69,12 @@ tags = [
6969
type = "eql"
7070

7171
query = '''
72-
sequence by host.id with maxspan = 2s
72+
sequence by host.id with maxspan = 20s
7373
7474
/* Accepted Incoming RPC connection by Winmgmt service */
7575
7676
[network where host.os.type == "windows" and process.name : "svchost.exe" and network.direction : ("incoming", "ingress") and
77-
source.ip != "127.0.0.1" and source.ip != "::1" and source.port >= 49152 and destination.port >= 49152
78-
]
77+
source.ip != "127.0.0.1" and source.ip != "::1" and destination.port == 135]
7978
8079
/* Excluding Common FPs Nessus and SCCM */
8180

rules/windows/lateral_movement_powershell_remoting_target.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
creation_date = "2020/11/24"
33
integration = ["endpoint", "windows"]
44
maturity = "production"
5-
updated_date = "2025/03/20"
5+
updated_date = "2025/05/20"
66

77
[rule]
88
author = ["Elastic"]
@@ -82,7 +82,7 @@ type = "eql"
8282
query = '''
8383
sequence by host.id with maxspan = 30s
8484
[network where host.os.type == "windows" and network.direction : ("incoming", "ingress") and destination.port in (5985, 5986) and
85-
network.protocol == "http" and source.ip != "127.0.0.1" and source.ip != "::1"]
85+
source.ip != "127.0.0.1" and source.ip != "::1"]
8686
[process where host.os.type == "windows" and
8787
event.type == "start" and process.parent.name : "wsmprovhost.exe" and not process.executable : "?:\\Windows\\System32\\conhost.exe"]
8888
'''

0 commit comments

Comments
 (0)