Skip to content

Commit 942de97

Browse files
committed
[FN Tuning] Shared Object Created or Changed by Previously Unknown Process
1 parent 4deb6a7 commit 942de97

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

rules/linux/persistence_shared_object_creation.toml

+10-7
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
creation_date = "2023/06/09"
33
integration = ["endpoint"]
44
maturity = "production"
5-
updated_date = "2025/02/03"
5+
updated_date = "2025/03/11"
66

77
[transform]
88
[[transform.osquery]]
@@ -160,17 +160,20 @@ tags = [
160160
]
161161
timestamp_override = "event.ingested"
162162
type = "new_terms"
163-
164163
query = '''
165-
host.os.type:linux and event.action:(creation or file_create_event or file_rename_event or rename) and
166-
file.path:(/dev/shm/* or /usr/lib/*) and file.extension:so and process.name:* and not (
164+
host.os.type:"linux" and event.action:("creation" or "file_create_event" or "file_rename_event" or "rename" or "file_write_event") and
165+
(file.extension:"so" or file.name:*.so.*) and
166+
file.path:(
167+
/dev/shm/* or /usr/lib/* or /usr/lib64/* or /usr/local/lib/* or /usr/local/lib64/* or /lib/x86_64-linux-gnu/* or
168+
/usr/lib/x86_64-linux-gnu/* or /lib/i386-linux-gnu/* or /usr/lib/i386-linux-gnu/* or /lib/* or /lib64/*
169+
) and not (
167170
process.name:(
168171
"dockerd" or "dpkg" or "rpm" or "snapd" or "yum" or "vmis-launcher" or "pacman" or "apt-get" or "dnf" or "podman" or
169172
platform-python* or "dnf-automatic" or "unattended-upgrade" or "apk" or "snap-update-ns" or "install" or "exe" or
170-
"systemd" or "root" or "sshd" or "pip" or "jlink" or python* or "update-alternatives" or pip* or
171-
"installer.bin.inst" or "uninstall-bin" or "linux_agent.inst" or crio or ssm-agent-worker or packagekitd
173+
"systemd" or "root" or "sshd" or "pip" or "jlink" or python* or "update-alternatives" or pip* or "crio" or
174+
"ssm-agent-worker" or "packagekitd"
172175
) or
173-
(process.name:vmware-install.pl and file.path:/usr/lib/vmware-tools/*) or
176+
(process.name:"vmware-install.pl" and file.path:/usr/lib/vmware-tools/*) or
174177
process.executable : (/dev/fd/* or "/" or "/kaniko/executor" or "/usr/bin/buildah")
175178
)
176179
'''

0 commit comments

Comments
 (0)