Skip to content

Kubernetes Rules

IaC rules for Kubernetes that identify insecure configurations in infrastructure and cloud resources.

Kubernetes Rule Catalog

IDTitleSeverity
IAC-1080Privileged containers are admittedHIGH
IAC-1094Container is privilegedHIGH
IAC-1117CAP_SYS_ADMIN Linux capability is usedHIGH
IAC-1192RoleBinding should not allow privilege escalation to a ServiceAccount or Node on other RoleBindingHIGH
IAC-1193Granting `create` permissions to `nodes/proxy` or `pods/exec` sub resources allows potential privilege escalationHIGH
IAC-1194No ServiceAccount/Node should have `impersonate` permissions for groups/users/service-accountsHIGH
IAC-1196No ServiceAccount/Node should be able to read all secretsHIGH
IAC-1079Containers wishing to share host process ID namespace admittedMEDIUM
IAC-1081Containers wishing to share host IPC namespace admittedMEDIUM
IAC-1082Containers wishing to share host network namespace admittedMEDIUM
IAC-1083Containers run with AllowPrivilegeEscalation based on Pod Security Policy settingMEDIUM
IAC-1084Root containers admittedMEDIUM
IAC-1095Containers share host process ID namespaceMEDIUM
IAC-1096Containers share host IPC namespaceMEDIUM
IAC-1097Containers share the host network namespaceMEDIUM
IAC-1098Containers run with AllowPrivilegeEscalationMEDIUM
IAC-1101Admission of root containers not minimizedMEDIUM
IAC-1105Mounting Docker socket daemon in a container is not limitedMEDIUM
IAC-1124Wildcard use is not minimized in Roles and ClusterRolesMEDIUM
IAC-1195ServiceAccounts and nodes that can modify services/status may set the `status.loadBalancer.ingress.ip` field to exploit the unfixed CVE-2020-8554 and launch MiTM attacks against the clusterMEDIUM
IAC-1085Containers with NET_RAW capability admittedLOW
IAC-1086Liveness probe is not configuredLOW
IAC-1087Readiness probe is not configuredLOW
IAC-1088CPU request is not setLOW
IAC-1090Memory requests are not setLOW
IAC-1091Memory limits are not setLOW
IAC-1092Image tag is not set to FixedLOW
IAC-1093Image pull policy is not set to AlwaysLOW
IAC-1099Default namespace is usedLOW
IAC-1102Containers with added capability are allowedLOW
IAC-1103Admission of containers with added capability is not minimizedLOW
IAC-1104hostPort is specifiedLOW
IAC-1106Admission of containers with NET_RAW capability is not minimizedLOW
IAC-1107securityContext is not applied to pods and containersLOW
IAC-1109Seccomp is not set to Docker/Default or Runtime/DefaultLOW
IAC-1110seccomp profile is not set to Docker/Default or Runtime/DefaultLOW
IAC-1111Kubernetes dashboard is deployedLOW
IAC-1112Tiller (Helm V2) is deployedLOW
IAC-1113Secrets used as environment variablesLOW
IAC-1115Admission of containers with capabilities assigned is not limitedLOW
IAC-1116Service account tokens are not mounted where necessaryLOW
IAC-1118Containers do not run with a high UIDLOW
IAC-1119Default service accounts are actively usedLOW
IAC-1120Default Kubernetes service accounts are actively used by bounding to a role or cluster roleLOW
IAC-1122Tiller (Helm v2) service is not deletedLOW
IAC-1123Tiller (Helm V2) deployment is accessible from within the clusterLOW
IAC-1147The --audit-log-maxage argument is not set appropriatelyLOW

Total Rules: 47

Click on any rule ID to view detailed information, examples, and remediation guidance.