turbot/kubernetes_compliance

Control: Minimize the admission of containers wishing to share the host process ID namespace

Description

A container running in the host's PID namespace can inspect processes running outside the container. If the container also has access to ptrace capabilities this can be used to escalate privileges outside of the container. There should be at least one PodSecurityPolicy (PSP) defined which does not permit containers to share the host PID namespace.

Usage

Run the control in your terminal:

powerpipe control run kubernetes_compliance.control.pod_security_policy_hostpid_sharing_disabled

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run kubernetes_compliance.control.pod_security_policy_hostpid_sharing_disabled --share

SQL

This control uses a named query:

pod_security_policy_hostpid_sharing_disabled

Tags