Privilege Escalation (TA0004)(external, opens in a new tab or window)
text code block:host.os.type:linux and event.category:process and event.type:start and event.action:(executed or exec) and (process.name:"chroot" or process.args:("chroot" or "/bin/chroot" or "/usr/bin/chroot" or "/usr/local/bin/chroot")) and (process.title:"runc init" or process.entry_leader.entry_meta.type:"container" or process.parent.name:("runc" or "containerd-shim-runc-v2"))
Install detection rules in Elastic Security
Detect Chroot Execution in Container Context on Linux 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).