KSPM Cluster Posture
kspm_cluster_postureAudit live Kubernetes cluster security posture by inspecting workloads, RBAC, NetworkPolicy, and kubelet config against the CIS benchmark. Read-only evaluation returns findings per severity.
Instructions
Evaluate live Kubernetes cluster security posture (KSPM).
Read-only inspection of running workloads, RBAC, NetworkPolicy coverage,
and (opt-in) kubelet config against the pinned CIS Kubernetes Benchmark.
Distinct from image discovery: this returns SECURITY POSTURE, not a
container-image inventory.
Every collector carries an explicit execution state — executed / skipped
/ unevaluable (a denied or absent read) / failed — so a partial run is
reported 'partial' with a coverage-affecting ScanRun issue and can never
be laundered into a clean pass. The benchmark provenance, collector
states, ScanRun outcome, and finding summary reconcile 1:1 with the REST
/v1/kspm/clusters/posture route and the CLI evidence dict.
Returns:
JSON with benchmark provenance, per-collector states, the canonical
ScanRun outcome, a finding count, and a per-severity summary.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | No | kubectl context to use (workstation fallback path only). Omit to use the in-cluster SA token. | |
| namespace | No | Kubernetes namespace to inspect (ignored when all_namespaces=True). Defaults to 'default'. | default |
| all_namespaces | No | Inspect every namespace instead of a single one. | |
| enable_nodes_configz | No | Opt in to per-node kubelet /configz collection (CIS section 4.2). Off by default. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |