Falco informational stable other

Change namespace privileges via unshare

Unprivileged users in containers may not have CAP_SYS_ADMIN or other elevated privileges. However, they can use the unshare system call with CLONE_NEWNS or CLONE_NEWUSER to create or clone a namespace or user with the necessary privileges to conduct further attacks. It is best practice to block the unshare system call via seccomp if it is not needed. Misuse of unshare can be related to misconfigured Kubernetes clusters, for example.

View Source

Detection Logic

evt.type=unshare and container and not thread.cap_permitted contains CAP_SYS_ADMIN

Field Validations

Loading…

Comments (0)

Loading comments...