Writing
container security
4 articles on this subject.
Hardening off, namespaces on: container escape and CVE-2022-0492
A container escape is rarely about breaking a sandbox. It is about a capability or a mount the container should never have held. CVE-2022-0492 let a container without CAP_SYS_ADMIN obtain it inside new namespaces and reach root on the host through the cgroups release_agent.
8 min read
Reaching a service account that outranks you: Kubernetes RBAC escalation and CVE-2021-25742
Kubernetes RBAC escalation is rarely a broken authorizer. It is a verb whose blast radius you underestimated, or a component whose service account outranks the caller. ingress-nginx CVE-2021-25742 is the second kind.
8 min read
Linux capabilities: root privileges without the SUID bit, and the container escape they enable
Capabilities split root into 40+ pieces, and about a dozen of them are still root. Which ones matter, how CVE-2022-0492 turned a cgroup detail into a container escape, and how to audit a host and an image.
7 min read
SSRF past the metadata endpoint: Docker on 2375, kubelet on 10250, and the 50,000 hosts TeamTNT found
IMDSv2 closed the famous SSRF target. The internal network is still full of unauthenticated control planes that will run a container for anyone who asks, and crypto-mining crews have been scanning for them since 2020.
7 min read