---
title: "Kubernetes posture (KSPM)"
description: "The 58 Kubernetes posture checks, how they map to the CIS Kubernetes Benchmark and NSA/CISA guidance, and which controls the API cannot assess."
---

Every collection of a connected cluster (see [Cloud and Kubernetes](/configuration/cloud-and-kubernetes))
runs a catalogue of 58 checks over what the collector read: workloads and their
containers, namespaces and the policies in them, RBAC roles and bindings,
service accounts, and the cluster version. Each check maps to controls of the
**CIS Kubernetes Benchmark 1.9.0** and, where the guidance asks for something the
benchmark does not, the **NSA/CISA Kubernetes Hardening Guidance 1.2**.

A failing subject becomes a misconfiguration finding on the cluster asset,
reconciled like any scan. The cluster's page in the console shows each benchmark
by section and the failures by namespace and workload.

Every check this page describes is in the [check catalogue](/concepts/check-catalogue), and has its own page, with what it reads, why it matters and how to fix it, at [trustivan.com/checks](https://trustivan.com/checks/).

## What each outcome means

| Outcome | Meaning |
|---|---|
| Fail | At least one subject failed the check. |
| Pass | Every subject was judged and none failed. |
| Nothing to judge | The source was read and held nothing of that kind. Never counted as a pass. |
| Not assessed | A source the check reads could not be read (the reason names it), the check needs a setting that is not configured (trusted registries), or the collection was partial without saying where. |

A benchmark control **fails** when any mapped check failed, **passes** only when
every mapped check passed or had nothing to judge, and is otherwise **not
assessed**. This is a configuration result, not an attestation that the
benchmark is met; the benchmark is the Center for Internet Security's, which does
not endorse this product.

## What is never assessed

The collector reads the API server and nothing else. These controls are always
reported not assessed, with the reason, on every cluster:

- **CIS sections 1 to 4**: control-plane component flags and files, etcd, the
  control-plane configuration, and every worker-node and kubelet control. They
  need read access to the hosts. On EKS, GKE and AKS the provider operates the
  control plane; see the provider's own CIS benchmark.
- **CIS 5.1.7** (system:masters): membership is carried in client
  certificates, which the API does not list.
- **CIS 5.3.1** (the CNI supports NetworkPolicy) and **5.4.2** (external secret
  storage): not visible through the API.
- **NSA/CISA**: control-plane hardening, encryption in transit and of Secrets at
  rest, authentication configuration, audit logging, worker-node segmentation,
  cloud metadata protection, and runtime threat detection (which TRUSTIVAN
  judges from Falco events, not from configuration).

## How the checks judge

**Exposure checks** fire only on an explicit unsafe value (`privileged: true`,
`runAsUser: 0`) or an unambiguous fact (`hostNetwork`). A field left unset is not
faulted by them, because it inherits a pod, namespace or cluster default.

**Hardening checks** are low severity and fire when a safeguard is not
explicitly in place where the Kubernetes default is the unsafe value: a writable
root filesystem, the default capability set, no seccomp profile, no resource
limits. They skip `kube-system`, `kube-public` and `kube-node-lease`, whose
components legitimately run without them.

Resource limits and requests honour the namespace's LimitRange defaults. A
pod's own `automountServiceAccountToken` overrides its service account's. The
API server's own bootstrap roles and bindings (`cluster-admin` for
`system:masters`, the `system:` controllers) are not findings; who is bound to a
broad role is.

### Trusted registries

`k8s.container.untrusted-registry` needs a list of the registries a cluster's
images may come from: hosts such as `ghcr.io` or prefixes such as
`ghcr.io/acme`. Set it on the cluster's page (**Trusted registries**) or with
`PUT /api/v1/kubernetes/clusters/{id}/registries`. Until it is set the check is
not assessed. Admission control reads the same list.

## The checks

| Check | Title | Severity | CIS | NSA/CISA |
|---|---|---|---|---|
| `k8s.cluster.unsupported-version` | Kubernetes version is past upstream end of life | Medium | - | `upgrades.versions` |
| `k8s.container.added-capability` | Container adds a Linux capability | Low | 5.2.9 | - |
| `k8s.container.apparmor-unconfined` | Container explicitly disables AppArmor | Medium | 5.7.3 | `pod.hardened-runtime` |
| `k8s.container.capabilities-not-dropped` | Container keeps the default capabilities | Low | 5.2.10 | `pod.security-enforcement` |
| `k8s.container.credential-in-env` | Container has a credential written into its manifest | High | 5.4.1 | `network.secrets` |
| `k8s.container.dangerous-capability` | Container adds a dangerous capability | High | 5.2.9 | `pod.security-enforcement` |
| `k8s.container.host-port` | Container binds a host port | Medium | 5.2.13 | `network.policies` |
| `k8s.container.image-latest` | Container runs `latest` or an untagged image | Medium | 5.5.1 | `pod.secure-images` |
| `k8s.container.mutable-tag` | Container runs a mutable image tag | Low | 5.5.1 | `pod.secure-images` |
| `k8s.container.net-raw` | Container keeps NET_RAW | Low | 5.2.8 | - |
| `k8s.container.no-cpu-limit` | Container has no CPU limit | Low | - | `network.resource-policies` |
| `k8s.container.no-cpu-request` | Container has no CPU request | Low | - | `network.resource-policies` |
| `k8s.container.no-memory-limit` | Container has no memory limit | Low | - | `network.resource-policies` |
| `k8s.container.no-memory-request` | Container has no memory request | Low | - | `network.resource-policies` |
| `k8s.container.non-root-not-enforced` | Nothing requires the container to run as non-root | Low | 5.2.7 | `pod.non-root` |
| `k8s.container.privilege-escalation` | Container may escalate privileges | Medium | 5.2.6 | `pod.security-enforcement` |
| `k8s.container.privileged` | Container runs privileged | Critical | 5.2.2 | `pod.security-enforcement` |
| `k8s.container.root-group` | Container runs with the root group | Low | - | `pod.non-root` |
| `k8s.container.runs-as-root` | Container runs as root | Medium | 5.2.7 | `pod.non-root` |
| `k8s.container.seccomp-unconfined` | Container explicitly disables seccomp | Medium | 5.7.2 | `pod.hardened-runtime` |
| `k8s.container.seccomp-unset` | Container has no seccomp profile | Low | 5.7.2 | - |
| `k8s.container.secret-in-env` | Container reads a Secret through environment variables | Low | 5.4.1 | `network.secrets` |
| `k8s.container.selinux-custom` | Container sets a custom SELinux user, role or type | Medium | 5.7.3 | `pod.hardened-runtime` |
| `k8s.container.unmasked-proc` | Container mounts /proc unmasked | High | 5.7.3 | `pod.security-enforcement` |
| `k8s.container.untrusted-registry` | Container image comes from an untrusted registry | Medium | 5.5.1 | `pod.secure-images` |
| `k8s.container.windows-host-process` | Container runs as a Windows HostProcess | High | 5.2.11 | `pod.security-enforcement` |
| `k8s.container.writable-root-filesystem` | Container root filesystem is writable | Low | 5.7.3 | `pod.immutable-filesystem` |
| `k8s.namespace.no-default-deny` | Namespace has NetworkPolicies but no default deny | Low | - | `network.policies` |
| `k8s.namespace.no-limit-range` | Namespace has no LimitRange | Low | - | `network.resource-policies` |
| `k8s.namespace.no-network-policy` | Namespace has no NetworkPolicy | Medium | 5.3.2 | `network.policies` |
| `k8s.namespace.no-pod-security-standard` | Namespace enforces no Pod Security Standard | Medium | 5.2.1 | `pod.security-enforcement` |
| `k8s.namespace.no-resource-quota` | Namespace has no ResourceQuota | Low | - | `network.resource-policies` |
| `k8s.namespace.pod-security-not-restricted` | Namespace enforces only Pod Security baseline | Low | - | `pod.security-enforcement` |
| `k8s.rbac.anonymous-access` | A binding grants access to unauthenticated users | Critical | - | `authn.anonymous` |
| `k8s.rbac.cluster-admin-binding` | cluster-admin is granted | High | 5.1.1 | `authn.rbac` |
| `k8s.rbac.csr-approve` | Role can approve certificate signing requests | Medium | 5.1.11 | - |
| `k8s.rbac.default-service-account-bound` | A role is bound to a default service account | Medium | 5.1.5 | - |
| `k8s.rbac.escalate-bind-impersonate` | Role can escalate, bind or impersonate | High | 5.1.8 | `authn.rbac` |
| `k8s.rbac.node-proxy` | Role can use the nodes/proxy subresource | Medium | 5.1.10 | `authn.rbac` |
| `k8s.rbac.pod-create` | Role can create pods | Medium | 5.1.4 | `authn.rbac` |
| `k8s.rbac.pod-exec` | Role can exec into or attach to pods | Medium | - | `authn.rbac` |
| `k8s.rbac.pv-create` | Role can create PersistentVolumes | Low | 5.1.9 | - |
| `k8s.rbac.secrets-read` | Role can read Secrets | Medium | 5.1.2 | `authn.rbac` |
| `k8s.rbac.token-create` | Role can mint service-account tokens | Medium | 5.1.13 | - |
| `k8s.rbac.webhook-config` | Role can change admission webhooks | Medium | 5.1.12 | - |
| `k8s.rbac.wildcard` | Role uses a wildcard | Medium | 5.1.3 | `authn.rbac` |
| `k8s.serviceaccount.default-automount` | Default service account does not turn off token automounting | Low | 5.1.5 | `pod.service-account-tokens` |
| `k8s.serviceaccount.token-automounted` | Service account mounts its token by default | Low | 5.1.6 | `pod.service-account-tokens` |
| `k8s.workload.cluster-admin-identity` | Workload runs as a service account with cluster-admin | Critical | 5.1.1 | `authn.rbac` |
| `k8s.workload.default-namespace` | Workload runs in the default namespace | Low | 5.7.4, 5.7.1 | `network.namespaces` |
| `k8s.workload.default-service-account` | Workload runs as the default service account | Low | 5.1.5 | `pod.service-account-tokens` |
| `k8s.workload.host-ipc` | Workload shares the host IPC namespace | High | 5.2.4 | `pod.security-enforcement` |
| `k8s.workload.host-network` | Workload shares the host network | High | 5.2.5 | `pod.security-enforcement` |
| `k8s.workload.host-path` | Workload mounts a host path | High | 5.2.12 | `pod.security-enforcement` |
| `k8s.workload.host-pid` | Workload shares the host process namespace | High | 5.2.3 | `pod.security-enforcement` |
| `k8s.workload.runtime-socket` | Workload mounts the container runtime socket | Critical | 5.2.12 | `pod.security-enforcement` |
| `k8s.workload.token-automounted` | Workload has an API token mounted | Low | 5.1.6 | `pod.service-account-tokens` |
| `k8s.workload.unsafe-sysctl` | Workload sets an unsafe sysctl | Medium | 5.7.3 | `pod.hardened-runtime` |

## Permissions the collector needs

Read (`get`, `list`) on namespaces, pods, service accounts, resource quotas,
limit ranges, Deployments, StatefulSets, DaemonSets, Jobs, CronJobs,
NetworkPolicies, Services, Ingresses, Roles, ClusterRoles, RoleBindings and
ClusterRoleBindings, and `/version`. The **Connect cluster** dialog shows the
exact ClusterRole. The collector never reads Secret values. A credential missing
one of these leaves the checks that need it not assessed and marks the
collection partial, with one exception: Services and Ingresses are read only to
judge [exposure](/configuration/code-to-cloud) and to find the Ingress hosts the
[certificate inventory](/configuration/certificates) checks, so a role without
them still collects in full and shows exposure as unknown. A cluster connected
before November 2026 needs the two added to its ClusterRole for either to work.

## What has been validated

The catalogue is tested on every commit: each check has a failing and a passing
fixture (`backend/internal/kubernetes/corpus_test.go`), and the rollup is tested
to leave node and control-plane controls not assessed whatever the checks say.

It has been run against one real cluster type only: a local **k3d** cluster
(k3s v1.30.6) created by `scripts/dev/k3d-validate.sh`, with the collector
reading through the least-privilege ClusterRole above. That run asserts the
planted misconfigurations are found (31 of them, across containers, workloads,
RBAC, service accounts and namespaces), that a namespace built to pass raises no
failure at all, and that no check is left not assessed. It has not been run
against EKS, GKE, AKS, OpenShift or any other distribution.

API: `GET /api/v1/kubernetes/clusters/{id}/posture`, `GET /api/v1/kubernetes/benchmarks`
and `PUT /api/v1/kubernetes/clusters/{id}/registries` (see the API reference).
