Skip to content

Commit be54140

Browse files
authored
[Rule Tuning] SMB Connections via LOLBin or Untrusted Process (#4444)
1 parent 0268daa commit be54140

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

rules/windows/lateral_movement_direct_outbound_smb_connection.toml

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

77
[transform]
88
[[transform.osquery]]
@@ -122,7 +122,7 @@ sequence by process.entity_id with maxspan=1m
122122
[process where host.os.type == "windows" and event.type == "start" and process.pid != 4 and
123123
124124
/* ignore NT Authority and Network Service accounts */
125-
not user.id : ("S-1-5-19", "S-1-5-20") and
125+
not user.id in ("S-1-5-19", "S-1-5-20") and
126126
127127
/* filter out anything trusted but not from Microsoft */
128128
/* LOLBins will be inherently trusted and signed, so ignore everything else trusted */
@@ -135,9 +135,6 @@ sequence by process.entity_id with maxspan=1m
135135
136136
/* second sequence to capture network connections over port 445 related to SMB */
137137
[network where host.os.type == "windows" and destination.port == 445 and process.pid != 4]
138-
139-
/* end the sequence when the process ends where joining was on process.entity_id */
140-
until [process where host.os.type == "windows" and event.type == "end"]
141138
'''
142139

143140

0 commit comments

Comments
 (0)