endpoint(opens in a new tab or window)
auditd_manager(opens in a new tab or window)
process where host.os.type == "linux" and event.type == "start" and
event.action in ("exec", "exec_event", "start", "ProcessRollup2", "executed") and
process.name == "cpio" and process.args in ("-H", "--format") and process.args == "newc" and
not (
process.parent.name in ("mkinitramfs", "dracut") or
?process.parent.executable like~ ("/usr/share/initramfs-tools/*", "/nix/store/*") or
?process.parent.args in (
"/bin/dracut", "/usr/share/initramfs-tools/hooks/amd64_microcode", "/usr/bin/dracut", "/usr/sbin/mkinitramfs",
"/usr/sbin/dracut", "/usr/bin/update-microcode-initrd"
) or
process.args like ("/var/tmp/mkinitramfs_*", "/tmp/tmp.*/mkinitramfs_*") or
?process.working_directory like (
"/var/tmp/mkinitramfs-*", "/tmp/microcode-initrd_*", "/var/tmp/mkinitramfs-*", "/var/tmp/dracut.*",
"/var/tmp/mkinitramfs_*"
)
)
Install detection rules in Elastic Security
Detect Initramfs Extraction via CPIO 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(opens in a new tab or window).