Persistence (TA0003)(external, opens in a new tab or window)
Lateral Movement (TA0008)(external, opens in a new tab or window)
Command and Control (TA0011)(external, opens in a new tab or window)
Initial Access (TA0001)(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.parent.name:(sshd or sshd-session) and process.parent.args:"-D" and process.interactive:false and process.previous.executable:( "/bin/bash" or "/usr/bin/bash" or "/usr/bin/dash" or "/bin/dash" or "/usr/bin/sh" or "/bin/sh" or "/usr/bin/tcsh" or "/bin/tcsh" or "/usr/bin/csh" or "/bin/csh" or "/usr/bin/zsh" or "/bin/zsh" or "/usr/bin/ksh" or "/bin/ksh" or "/usr/bin/fish" or "/bin/fish" or "/usr/bin/mksh" or "/bin/mksh" ) and process.previous.args:"-c"
Install detection rules in Elastic Security
Detect Unusual SSHD Child Process 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).