Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions custom_analytic_detections/hosts_file_modification.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ level: 0
inputType: GPFSEvent
tags:
snapshotFiles: []
filter: $event.isModified == 1 AND
$event.path ==[cd] "/private/etc/hosts"
filter: $event.type IN {0, 1, 3, 4} AND
($event.path MATCHES[cd] "/private/etc/hosts" OR
$event.path MATCHES[cd] "/etc/hosts")
actions:
- name: Log
context: []
Expand Down