Skip to content

Commit 6d08ba3

Browse files
committed
Update defense_evasion_indirect_exec_forfiles.toml
1 parent 0de9f19 commit 6d08ba3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

rules/windows/defense_evasion_indirect_exec_forfiles.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
creation_date = "2025/02/03"
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/12/11"
66

77
[rule]
88
author = ["Elastic"]
@@ -72,8 +72,9 @@ timestamp_override = "event.ingested"
7272
type = "eql"
7373

7474
query = '''
75-
process where host.os.type == "windows" and event.type == "start" and
76-
(process.name : "forfiles.exe" or ?process.pe.original_file_name == "forfiles.exe") and process.args : ("/c", "-c")
75+
process where host.os.type == "windows" and event.type == "start" and user.id != "S-1-5-18" and
76+
(process.name : "forfiles.exe" or ?process.pe.original_file_name == "forfiles.exe") and process.args : ("/c", "-c") and
77+
not process.args : ("-d", "/d", "cmd /c copy @file*", "cmd /c DEL /Q /F @*", "cmd /c del @*", "D:\\*")
7778
'''
7879

7980

0 commit comments

Comments
 (0)