Elastic Defend high stable eql

Loadable Kernel Module Load Followed by Log Clearing

This rule detects when a loadable kernel module (LKM) is loaded, followed shortly by an attempt to clear system logs using common log-clearing commands like "dmesg" or "journalctl". Rootkits often use LKMs to hide their presence, and clearing logs right after loading is a common tactic to evade detection after such activities.

View Source

Detection Logic

sequence with maxspan=10s
  [process where event.type == "start" and event.action == "load_module" and process.parent.executable != null]
  [process where event.type == "start" and event.action == "exec" and (
    (process.name == "dmesg" and process.args in ("-c", "-C", "--clear", "--read-clear")) or
    (process.name == "journalctl" and process.args like~ ("--vacuum-time=*", "--vacuum-size=*", "--vacuum-files=*"))
  )]

Field Validations

Loading…

Comments (0)

Loading comments...