Skip to content

Commit 34bd88a

Browse files
[Tuning] Potential Ransomware Behavior - Note Files by System (#5235)
* Update impact_high_freq_file_renames_by_kernel.toml * Update impact_high_freq_file_renames_by_kernel.toml * Update rules/windows/impact_high_freq_file_renames_by_kernel.toml Co-authored-by: Terrance DeJesus <99630311+terrancedejesus@users.noreply.github.com> --------- Co-authored-by: Terrance DeJesus <99630311+terrancedejesus@users.noreply.github.com>
1 parent 085ef44 commit 34bd88a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rules/windows/impact_high_freq_file_renames_by_kernel.toml

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

77
[rule]
88
author = ["Elastic"]
@@ -75,10 +75,10 @@ from logs-endpoint.events.file-* metadata _id, _version, _index
7575
// truncate the timestamp to a 60-second window
7676
| eval Esql.time_window_date_trunc = date_trunc(60 seconds, @timestamp)
7777
78-
| keep file.path, file.name, process.entity_id, Esql.time_window_date_trunc
78+
| keep user.id, user.name, file.path, file.name, process.entity_id, Esql.time_window_date_trunc, host.name, host.ip
7979
8080
// filter for same file name dropped in at least 3 unique paths by the System virtual process
81-
| stats Esql.file_path_count_distinct = COUNT_DISTINCT(file.path), Esql.file_path_values = VALUES(file.path) by process.entity_id , file.name, Esql.time_window_date_trunc
81+
| stats Esql.file_path_count_distinct = COUNT_DISTINCT(file.path), Esql.file_path_values = VALUES(file.path), Esql.host_ip_values = values(host.ip) by host.name, user.name, user.id, process.entity_id , file.name, Esql.time_window_date_trunc
8282
| where Esql.file_path_count_distinct >= 3
8383
'''
8484

0 commit comments

Comments
 (0)