Discovery (TA0007)(external, opens in a new tab or window)
Defense Evasion (TA0005)(external, opens in a new tab or window)
text code block:process where host.os.type == "linux" and event.type == "start" and event.action == "exec" and (process.parent.args like "/boot/*" or process.args like "/boot/*") and ( (process.name in ("file", "unlzma", "gunzip", "unxz", "bunzip2", "unzstd", "unzip", "tar")) or (process.name == "grep" and process.args == "ELF") or (process.name in ("lzop", "lz4") and process.args in ("-d", "--decode")) ) and not ( process.parent.name == "mkinitramfs" or process.parent.executable like ( "/usr/lib/needrestart/vmlinuz-get-version", "/usr/libexec/platform-python*", "/tmp/newroot/usr/libexec/platform-python*", "/usr/bin/kdumpctl", "/usr/bin/stap-report", "/usr/sbin/nv-update-initrd" ) or process.parent.command_line like "*ansible*" or process.parent.args == "/usr/bin/kdumpctl" )
Install detection rules in Elastic Security
Detect Kernel Unpacking Activity in the Elastic Security detection engine by installing this rule into your Elastic Stack.
To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(external, opens in a new tab or window).