Post

Investigating server compromises with cgroups: A Linux DFIR primer

This article shows how Linux cgroup metadata can be repurposed as a DFIR and detection signal to enrich process telemetry during server compromise investigations. It explains how cgroups v2 expose a hierarchical path that often embeds high-value context from user space managers such as systemd, including service names under paths like /system.slice/.service, per-user slices, and session scopes such as /user.slice/user-$UID.slice/session-1.scope that help correlate processes to specific logins. The post also covers container environments, where runtimes like Docker assign all processes in a container to a shared cgroup such as /docker/, giving defenders a way to group related activity and distinguish containerized execution without depending on runtime-specific hooks. The practical value is in separating benign and malicious processes that may have similar parent/child trees, using cgroup paths to identify attacker-created services, user sessions, and container boundaries during Linux investigations.

Read original article

This post is licensed under CC BY 4.0 by the author.