Skip to content

Commit 922915c

Browse files
committed
Update impact_hosts_file_modified.toml
1 parent 333b7fe commit 922915c

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

rules/cross-platform/impact_hosts_file_modified.toml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
creation_date = "2020/07/07"
33
integration = ["endpoint", "windows"]
44
maturity = "production"
5-
updated_date = "2025/03/20"
5+
updated_date = "2025/12/11"
66

77
[rule]
88
author = ["Elastic"]
@@ -78,14 +78,27 @@ timestamp_override = "event.ingested"
7878
type = "eql"
7979

8080
query = '''
81-
any where
81+
any where process.executable != null and
8282
8383
/* file events for creation; file change events are not captured by some of the included sources for linux and so may
8484
miss this, which is the purpose of the process + command line args logic below */
8585
(
86-
event.category == "file" and event.type in ("change", "creation") and
86+
event.category == "file" and event.type in ("change", "creation") and event.action != "rename" and
8787
file.path : ("/private/etc/hosts", "/etc/hosts", "?:\\Windows\\System32\\drivers\\etc\\hosts") and
88-
not process.name in ("dockerd", "rootlesskit", "podman", "crio")
88+
not process.name in ("dockerd", "rootlesskit", "podman", "crio") and
89+
not process.executable : ("C:\\Program Files\\Fortinet\\FortiClient\\FCDBLog.exe",
90+
"C:\\Program Files\\Seqrite\\Seqrite\\SCANNER.EXE",
91+
"C:\\Windows\\Temp\\*.ins\\inst.exe",
92+
"C:\\Windows\\System32\\svchost.exe",
93+
"C:\\Program Files\\NordVPN\\nordvpn-service.exe",
94+
"C:\\Program Files\\Tailscale\\tailscaled.exe",
95+
"C:\\Program Files\\Docker\\Docker\\com.docker.service",
96+
"C:\\Program Files\\Quick Heal\\Quick Heal AntiVirus Pro\\scanner.exe",
97+
"C:\\Program Files (x86)\\Quick Heal AntiVirus Pro\\SCANNER.EXE",
98+
"C:\\Program Files\\Quick Heal\\Quick Heal Internet Security\\scanner.exe",
99+
"C:\\Program Files (x86)\\Cisco\\Cisco AnyConnect Secure Mobility Client\\vpnagent.exe",
100+
"/opt/IBM/InformationServer/Server/DSEngine/bin/uvsh",
101+
"/usr/local/demisto/server")
89102
)
90103
or
91104
@@ -94,7 +107,8 @@ any where
94107
event.category == "process" and event.type in ("start") and
95108
process.name in ("nano", "vim", "vi", "emacs", "echo", "sed") and
96109
process.args : ("/etc/hosts") and
97-
not process.parent.name in ("dhclient-script", "google_set_hostname")
110+
not process.parent.name in ("dhclient-script", "google_set_hostname") and
111+
not process.command_line == "sed -i /Added by Google/d /etc/hosts"
98112
)
99113
'''
100114

0 commit comments

Comments
 (0)