process where host.os.type == "linux" and event.type == "start" and event.action == "exec" and (
(process.name == "runc" and process.args == "run") or
(process.name == "ctr" and process.args == "run" and process.args in ("--privileged", "--mount"))
) and not user.Ext.real.id == "0" and not group.Ext.real.id == "0" and
process.interactive == true and process.parent.interactive == true
Install detection rules in Elastic Security
Detect Potential Privilege Escalation via Container Misconfiguration 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(opens in a new tab or window).