Elastic low stable kql
Enumeration of Kernel Modules via Proc
Loadable Kernel Modules (or LKMs) are pieces of code that can be loaded and unloaded into the kernel upon demand. They extend the functionality of the kernel without the need to reboot the system. This identifies attempts to enumerate information about a kernel module using the /proc/modules filesystem. This filesystem is used by utilities such as lsmod and kmod to list the available kernel modules.
Detection Logic
host.os.type:linux and event.category:file and event.action:"opened-file" and file.path:"/proc/modules" and
not (
process.name:(python* or chef-client) or
process.executable:(/opt/eset/*/esets_eia or /opt/Elastic/Agent/* or "/opt/jfrog/artifactory/app/metadata/bin/jf-metadata")
) False Positives
- ⚠ Security tools and device drivers may run these programs in order to enumerate kernel modules. Use of these programs by ordinary users is uncommon. These can be exempted by process name or username.
Field Validations
Loading…
Comments (0)
Loading comments...