Defense Evasion (TA0005)(external, opens in a new tab or window)
text code block:process where host.os.type == "linux" and auditd.data.syscall == "prctl" and auditd.data.a0 == "f" and process.executable like ( "/boot/*", "/dev/shm/*", "/etc/cron.*/*", "/etc/init.d/*", "/var/run/*", "/etc/update-motd.d/*", "/tmp/*", "/var/log/*", "/var/tmp/*", "/home/*", "/run/shm/*", "/run/*", "./*" )
Install detection rules in Elastic Security
Detect Potential Process Name Stomping with Prctl 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).