Elastic medium stable eql

Potential Docker Escape via Nsenter

This rule identifies a UID change event via "nsenter". The "nsenter" command is used to enter a namespace, which is a way to isolate processes and resources. Attackers can use "nsenter" to escape from a container to the host, which can lead to privilege escalation and lateral movement.

View Source

Detection Logic

process where host.os.type == "linux" and event.type == "change" and event.action == "uid_change" and
process.entry_leader.entry_meta.type == "container" and process.args == "nsenter" and
process.args in ("-t", "--target") and process.args_count >= 4 and
not process.parent.args == "/opt/teleport/system/bin/teleport"

Field Validations

Loading…

Comments (0)

Loading comments...