enrichment
NAME¶
tracee --enrichment - Configure enrichment for container events and other enrichment options
SYNOPSIS¶
tracee --enrichment [container|container.cgroupfs.path=path|container.cgroupfs.force|container.docker.socket=socket_path|container.containerd.socket=socket_path|container.crio.socket=socket_path|container.podman.socket=socket_path|resolve-fd|exec-hash|exec-hash.mode=mode|user-stack-trace] [--enrichment ...]
DESCRIPTION¶
The --enrichment flag allows you to configure enrichment options for container events and other enrichment features.
Flags¶
-
container: Enable container enrichment with default settings. When enabled, Tracee will enrich container events with container information.
-
container.cgroupfs.path=path: Enable container enrichment and configure the path to the cgroupfs where container cgroups are created. This is used as a hint for auto-detection. Note: Using this option automatically enables container, so you don't need to also specify
--enrichment container. Example:--enrichment container.cgroupfs.path=/sys/fs/cgroup -
container.cgroupfs.force: Force the usage of the provided mountpoint path, skipping auto-detection. Note: This option requires
container.cgroupfs.pathto be set. It cannot be used alone. Example:--enrichment container.cgroupfs.path=/sys/fs/cgroup container.cgroupfs.force -
container.docker.socket=socket_path: Enable container enrichment and configure container runtime sockets for enrichment. Configure the path to the Docker socket. Note: Using this option automatically enables container, so you don't need to also specify
--enrichment container. Example:--enrichment container.docker.socket=/var/run/docker.sock -
container.containerd.socket=socket_path: Enable container enrichment and configure container runtime sockets for enrichment. Configure the path to the Containerd socket. Note: Using this option automatically enables container, so you don't need to also specify
--enrichment container. Example:--enrichment container.containerd.socket=/var/run/containerd/containerd.sock -
container.crio.socket=socket_path: Enable container enrichment and configure container runtime sockets for enrichment. Configure the path to the CRI-O socket. Note: Using this option automatically enables container, so you don't need to also specify
--enrichment container. Example:--enrichment container.crio.socket=/var/run/crio/crio.sock -
container.podman.socket=socket_path: Enable container enrichment and configure container runtime sockets for enrichment. Configure the path to the Podman socket. Note: Using this option automatically enables container, so you don't need to also specify
--enrichment container. Example:--enrichment container.podman.socket=/var/run/podman/podman.sock
Supported container runtimes for socket configuration:
- CRI-O (crio, cri-o)
- Containerd (containerd)
- Docker (docker)
- Podman (podman)
-
resolve-fd Enable resolve-fd. Presence of the flag enables it, absence disables it. Example:
--enrichment resolve-fd -
exec-hash: Enable exec-hash with default settings. When enabled, Tracee will compute hash values for executed binaries.
-
exec-hash.mode=mode: Enable exec-hash and configure the mode for exec-hash. Note: Using this option automatically enables exec-hash, so you don't need to also specify
--enrichment exec-hash. Example:--enrichment exec-hash.mode=sha256 -
user-stack-trace Enable user-stack-trace. Presence of the flag enables it, absence disables it. Example:
--enrichment user-stack-trace
EXAMPLES¶
-
Enable container enrichment:
--enrichment container -
Configure Docker socket:
Note:--enrichment container.docker.socket=/var/run/docker.sockcontainer.docker.socketautomatically enables container, so--enrichment containeris not needed. -
Set the cgroupfs path:
Note:--enrichment container.cgroupfs.path=/sys/fs/cgroupcontainer.cgroupfs.pathautomatically enables container, so--enrichment containeris not needed. -
Combine multiple flags:
Note: Since--enrichment container.docker.socket=/var/run/docker.sock container.cgroupfs.path=/sys/fs/cgroupcontainer.docker.socketandcontainer.cgroupfs.pathautomatically enable container, you don't need--enrichment container. -
Enable resolve-fd and exec-hash:
--enrichment resolve-fd exec-hash -
Enable exec-hash with custom mode:
Note:--enrichment exec-hash.mode=sha256exec-hash.modeautomatically enables exec-hash, so--enrichment exec-hashis not needed.
Please refer to the documentation for more information on container events enrichment.