Suspicious Privileged Docker Execution
Description
This rule detects the execution of a docker command in a privileged context to mount the root file system and potentially tamper with the host file system. This may indicate an attempt to escape the container.
Query · eql
process where event.type == "start" and event.action == "exec" and process.name == "docker" and
process.args == "--privileged" and process.args == "run" and process.args == "-v" and
process.args : "/:/*" and
not (
process.args like ("docker.elastic.co/beats/elastic-agent*", "/usr/bin/ceph-osd") or
(process.args == "prepare" and process.args in ("/:/hostfs", "/:/hostfs/")) or
(process.args == "aktosecurity/mirror-api-logging:k8s_ebpf" and process.args == "akto-api-security-traffic-collector") or
(process.args == "--name=c3-progenitor" and process.args == "localhost/c3:latest") or
(process.args == "/usr/sbin/ceph-volume" and process.args == "--group-add=disk" and process.args == "--stop-signal=SIGTERM") or
(process.args like "eu.gcr.io/revolut-labs/cardfinder*" and process.parent.args == "/srv/cardfinder/cardfinder.sh") or
process.parent.args == "/usr/local/pf/sbin/netdata-docker-wrapper"
)