Privilege Escalation (TA0004)(external, opens in a new tab or window)
text code block:host.os.type:linux and event.category:process and event.action:(executed or exec) and (process.name:nsenter or process.args:nsenter) and process.args:((--target* or -t) and not --net=/run/netns/* and not (--assertion and snap) and not (is-active and snap.*))
Install detection rules in Elastic Security
Detect Nsenter to PID Namespace via Auditd 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).