Skip to content

Commit bc984c9

Browse files
authored
Update impact_hosts_file_modified.toml
1 parent 619c174 commit bc984c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rules/cross-platform/impact_hosts_file_modified.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ any where process.executable != null and
106106
(
107107
event.category == "process" and event.type in ("start") and
108108
process.name in ("nano", "vim", "vi", "emacs", "echo", "sed") and
109-
process.args : ("/etc/hosts") and
109+
(process.args : ("/etc/hosts") or (process.working_directory == "/etc" and process.args == "hosts")) and
110110
not process.parent.name in ("dhclient-script", "google_set_hostname") and
111111
not process.command_line == "sed -i /Added by Google/d /etc/hosts"
112112
)

0 commit comments

Comments
 (0)