Skip to content

Commit b5d7795

Browse files
w0rk3rSamirbous
andauthored
[Rule Tuning] Remote Execution via File Shares (#5066)
* [Rule Tuning] Remote Execution via File Shares * Apply suggestions from code review Co-authored-by: Samirbous <64742097+Samirbous@users.noreply.github.com> * Update rules/windows/lateral_movement_execution_via_file_shares_sequence.toml * Update rules/windows/lateral_movement_execution_via_file_shares_sequence.toml --------- Co-authored-by: Samirbous <64742097+Samirbous@users.noreply.github.com>
1 parent 90ee151 commit b5d7795

File tree

1 file changed

+21
-42
lines changed

1 file changed

+21
-42
lines changed

rules/windows/lateral_movement_execution_via_file_shares_sequence.toml

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

77
[transform]
88
[[transform.osquery]]
@@ -113,52 +113,31 @@ sequence with maxspan=1m
113113
process.pid == 4 and (file.extension : "exe" or file.Ext.header_bytes : "4d5a*")] by host.id, file.path
114114
[process where host.os.type == "windows" and event.type == "start" and
115115
not (
116-
/* Veeam related processes */
117116
(
118-
process.name : (
119-
"VeeamGuestHelper.exe", "VeeamGuestIndexer.exe", "VeeamAgent.exe", "VeeamLogShipper.exe",
120-
"Veeam.VSS.Sharepoint20??.exe", "OracleProxy.exe", "Veeam.SQL.Service", "VeeamDeploymentSvc.exe"
121-
) and process.code_signature.trusted == true and process.code_signature.subject_name : "Veeam Software Group GmbH"
117+
process.code_signature.trusted == true and
118+
process.code_signature.subject_name : (
119+
"Veeam Software Group GmbH",
120+
"Elasticsearch, Inc.",
121+
"PDQ.com Corporation",
122+
"CrowdStrike, Inc.",
123+
"Microsoft Windows Hardware Compatibility Publisher",
124+
"ZOHO Corporation Private Limited",
125+
"BeyondTrust Corporation",
126+
"CyberArk Software Ltd.",
127+
"Sophos Ltd"
128+
)
122129
) or
123-
/* PDQ related processes */
124130
(
125-
process.name : (
126-
"PDQInventoryScanner.exe", "PDQInventoryMonitor.exe", "PDQInventory-Scanner-?.exe",
127-
"PDQInventoryWakeCommand-?.exe", "PDQDeployRunner-?.exe"
128-
) and process.code_signature.trusted == true and process.code_signature.subject_name : "PDQ.com Corporation"
129-
) or
130-
/* CrowdStrike related processes */
131-
(
132-
(process.executable : "?:\\Windows\\System32\\drivers\\CrowdStrike\\*Sensor*.exe" and
133-
process.code_signature.trusted == true and process.code_signature.subject_name : "CrowdStrike, Inc.") or
134-
(process.executable : "?:\\Windows\\System32\\drivers\\CrowdStrike\\*-CsInstallerService.exe" and
135-
process.code_signature.trusted == true and process.code_signature.subject_name : "Microsoft Windows Hardware Compatibility Publisher")
136-
) or
137-
/* MS related processes */
138-
(
139-
process.executable == "System" or
140-
(process.executable : "?:\\Windows\\ccmsetup\\ccmsetup.exe" and
141-
process.code_signature.trusted == true and process.code_signature.subject_name : "Microsoft Corporation")
131+
process.executable : (
132+
"?:\\Windows\\ccmsetup\\ccmsetup.exe",
133+
"?:\\Windows\\SoftwareDistribution\\Download\\Install\\AM_Delta*.exe",
134+
"?:\\Windows\\CAInvokerService.exe"
135+
) and process.code_signature.trusted == true
142136
) or
143-
/* CyberArk processes */
144-
(
145-
process.executable : "?:\\Windows\\CAInvokerService.exe" and
146-
process.code_signature.trusted == true and process.code_signature.subject_name : "CyberArk Software Ltd."
147-
) or
148-
/* Sophos processes */
149137
(
150-
process.executable : "?:\\ProgramData\\Sophos\\AutoUpdate\\Cache\\sophos_autoupdate1.dir\\SophosUpdate.exe" and
151-
process.code_signature.trusted == true and process.code_signature.subject_name : "Sophos Ltd"
152-
) or
153-
/* Elastic processes */
154-
(
155-
process.executable : (
156-
"?:\\Program Files\\Elastic\\Agent\\data\\elastic-agent-*\\components\\previous\\elastic-endpoint.exe",
157-
"?:\\Program Files\\Elastic\\Agent\\data\\elastic-agent-*\\elastic-agent.exe",
158-
"?:\\Program Files\\Elastic\\Agent\\data\\elastic-agent-*\\components\\agentbeat.exe"
159-
) and
160-
process.code_signature.trusted == true and process.code_signature.subject_name : "Elasticsearch, Inc."
161-
)
138+
process.executable : "G:\\SMS_*\\srvboot.exe" and
139+
process.code_signature.trusted == true and process.code_signature.subject_name : "Microsoft Corporation"
140+
)
162141
)
163142
] by host.id, process.executable
164143
'''

0 commit comments

Comments
 (0)