Loadable Kernel Module Rootkit
Also called LKM rootkit, kernel module implant.
Malicious kernel modules that hide artifacts and hook the system from ring 0.
What it is
A loadable kernel module (LKM) is code inserted into the running Linux kernel to extend it, normally for drivers. A malicious LKM abuses this to run with full kernel privilege, patching syscall behavior or kernel structures to conceal processes, files, ports, and even itself.
Why it matters
Because they operate beneath userland, LKM rootkits can defeat tools that rely on the very kernel they have subverted, making detection a matter of comparing in-memory kernel state, checking lsmod against expectations, and using out-of-band memory analysis. They represent some of the stealthiest Linux persistence.
In practice
A module missing from lsmod yet present in kernel memory was hiding a backdoor port, only revealed by carving the module list from a RAM image.
What to look for
- Modules loaded that are not in the distribution's package list.
- Differences between lsmod and what memory analysis shows.
- Kernel taint flags or unsigned module messages.
Common mistake
Investigating with the host's own tools. A kernel rootkit controls what they report; use memory or offline analysis.
Practice it nearby
CyberKit has no tool for this term itself. These are the closest places to practice it.
- Linux Persistence Reader
Read a crontab line, a systemd unit or an auditd record, and see what runs, when, and as whom.
- Linux Case
A server making outbound connections nobody can explain: read its audit log, journal and scheduled jobs, and say who did what.
In the field
Well-known tools where this shows up on the job. They are listed to show the landscape, not as a recommendation.
-
osquery Open source
Exposes Linux and macOS system state as SQL tables you can query.
-
Velociraptor Open source
Collects Linux artifacts such as logs, cron and shell history at scale. Our notes.
-
Falco Open source
Watches system calls at runtime and alerts on suspicious behavior.
-
Wazuh Open source
Collects Linux logs and checks file integrity on each host.
Read next
- LD_PRELOAD Hijacking: Forcing a malicious shared library to load first so it overrides legitimate functions.
- /proc Filesystem: Virtual filesystem exposing live process and kernel state on Linux.
- systemd Journal: Structured, indexed binary log managed by systemd-journald on modern Linux.