Setting up Cloud Security on Docker Use the following instructions to enable Misconfigurations and Vulnerability Management.
Collecting events using Cloud Security affects your billing. For more information, see
Datadog Pricing .
Prerequisites Datadog Agent version 7.46 or later. Installation The following command starts the Runtime Security Agent and system-probe in a Docker environment:
docker-runtime-security.sh
Copy
docker run -d --name dd-agent \
--cgroupns host \
--pid host \
--security-opt apparmor:unconfined \
--cap-add SYS_ADMIN \
--cap-add SYS_RESOURCE \
--cap-add SYS_PTRACE \
--cap-add NET_ADMIN \
--cap-add NET_BROADCAST \
--cap-add NET_RAW \
--cap-add IPC_LOCK \
--cap-add CHOWN \
-v /var/run/docker.sock:/var/run/docker.sock:ro \
-v /proc/:/host/proc/:ro \
-v /sys/fs/cgroup/:/host/sys/fs/cgroup:ro \
-v /etc/passwd:/etc/passwd:ro \
-v /etc/group:/etc/group:ro \
-v /:/host/root:ro \
-v /sys/kernel/debug:/sys/kernel/debug \
-v /etc/os-release:/etc/os-release \
-e DD_COMPLIANCE_CONFIG_ENABLED = true \
-e DD_COMPLIANCE_CONFIG_HOST_BENCHMARKS_ENABLED = true \
-e DD_CONTAINER_IMAGE_ENABLE = true
-e DD_SBOM_ENABLED = true
-e DD_SBOM_CONTAINER_IMAGE_ENABLED = true
-e DD_SBOM_HOST_ENABLED = true
-e DD_SBOM_ENRICHMENT_USAGE_ENABLED = true \
-e HOST_ROOT = /host/root \
-e DD_API_KEY = <API KEY> \
registry.datadoghq.com/agent:7Runtime Package Prioritization Runtime package prioritization identifies which packages in a container image are used at runtime, so you can prioritize vulnerabilities in code that runs over vulnerabilities in packages that are installed but never executed.
When enabled, the Agent uses eBPF to observe file access on your workloads and adds these signals to vulnerability findings for that image:
Signal What it tells you Package is running The package’s files were observed being accessed by a running process. Accessed by root process The package was accessed by a process running as root (UID 0). SUID binary present The package contains a binary with the SUID bit set, which can enable privilege escalation.
Package is running feeds the Reachability dimension of the Runtime Prioritization Engine . To query these signals directly, see Filter findings by runtime signals .
Requirements :
Datadog Agent 7.79.0 or later . Linux only (eBPF dependency). See Workload Protection setup for supported distributions and kernel versions. Runtime signals apply to packages installed by an operating system package manager (apt, yum, or apk) in container image vulnerability findings.
Add DD_SBOM_ENRICHMENT_USAGE_ENABLED=true to your Docker run command:
Copy
docker run -d --name dd-agent \
[ ... other flags ...] \
-e DD_SBOM_ENABLED = true \
-e DD_SBOM_CONTAINER_IMAGE_ENABLED = true \
-e DD_SBOM_ENRICHMENT_USAGE_ENABLED = true \
-e DD_API_KEY = <API KEY> \
registry.datadoghq.com/agent:7To verify the setup, filter vulnerability findings by runtime signals .