Execution (TA0002)(external, opens in a new tab or window)
Defense Evasion (TA0005)(external, opens in a new tab or window)
text code block:event.category:process and host.os.type:linux and event.type:start and event.action:exec and process.name:(bash or csh or dash or fish or ksh or sh or tcsh or zsh) and process.args:-c and process.command_line:*PATH=* and not ( process.command_line:(*_PATH=* or *PYTHONPATH=* or sh*/run/motd.dynamic.new) or process.parent.executable:( "/opt/puppetlabs/puppet/bin/puppet" or /var/lib/docker/overlay2/* or /vz/root/*/dovecot or "/usr/libexec/dovecot/auth" or /home/*/.local/share/containers/* or /vz/root/*/dovecot/auth ) or process.parent.command_line:"runc init" )
Install detection rules in Elastic Security
Detect Suspicious Path Invocation from Command Line 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).