Container Access to Host Sensitive Paths
Description
Detects container processes accessing paths that typically only exist when the host filesystem is mounted into the container (like /host, /rootfs, /hostfs). This may indicate a container escape attempt or a misconfigured volume mount that exposes the host filesystem. Legitimate monitoring or backup containers may access these paths, so tune accordingly using the user_known_host_path_access macro.
Query · falco
(open_read or open_write) and container and (fd.name startswith /host/ or
fd.name startswith /rootfs/ or
fd.name startswith /hostfs/)
and not known_container_runtime_host_access and not user_known_host_path_access
Rule dependencies
Depends on
-
composes · Falco macro
containerA shared condition, not a detection — not indexed on this site. -
composes · Falco macro
known_container_runtime_host_accessA shared condition, not a detection — not indexed on this site. -
composes · Falco macro
open_readA shared condition, not a detection — not indexed on this site. -
composes · Falco macro
open_writeA shared condition, not a detection — not indexed on this site. -
composes · Falco macro
user_known_host_path_accessA shared condition, not a detection — not indexed on this site.
Analyst notes
Container accessing host filesystem paths | file=%fd.name evt_type=%evt.type user=%user.name user_uid=%user.uid user_loginuid=%user.loginuid process=%proc.name proc_exepath=%proc.exepath parent=%proc.pname command=%proc.cmdline terminal=%proc.tty