Elastic low stable kql
Kernel Object File Creation
This rule detects the creation of a Linux kernel object file (.ko) on a system. Threat actors may leverage Linux kernel object files to load a rootkit or other type of malware on a system providing them with complete control and the ability to hide from security products.
Detection Logic
event.category:file and host.os.type:linux and event.type:creation and file.extension:ko and
not (
file.path:(
/tmp/mkinitramfs* or /var/cache/uptrack/* or /var/tmp/dracut.* or /build/* or /var/lib/dkms/* or
/mnt/Samsung/* or /var/tmp/portage/* or /tmp/user/0/mkinitramfs* or /var/tmp/supermin* or
/mnt/img/storage/squashfs-root/* or /var/opt/eset/* or /var/tmp/mkinitramfs_*
) or
process.executable:(
"/sbin/dracut" or "/opt/traps/bin/pmd" or "/usr/bin/pacman" or "/usr/bin/containerd" or
"/usr/sbin/dockerd" or "/usr/bin/dockerd" or /snap/* or
"/usr/lib/dracut/dracut-initramfs-restore" or "/sbin/unsquashfs"
) or
process.name:"cpio"
) Field Validations
Loading…
Comments (0)
Loading comments...