Apex › Security & web

Linux capabilities — least privilege vs the exploit

“Root” isn’t one thing: the kernel splits it into ~40 capabilities, each a class of privileged action, and a process holds only the ones it’s granted. Coarser than seccomp’s syscall filter, and they compose. Take an exploited web server and toggle its capabilities: it needs only CAP_NET_BIND_SERVICE to bind :80, so dropping the rest means the attacker can’t read /etc/shadow, load a rootkit, or escape the container — while full root, or a careless CAP_SYS_ADMIN, hands them everything.

More in Security & web