123DevOps··6 min read

What is Kubescape? Kubernetes security posture against NSA-CISA, MITRE, and CIS

Learn what Kubescape is, how it assesses clusters, manifests, and images against frameworks such as NSA-CISA, MITRE ATT&CK, and CIS, how to use the CLI in CI, and what the operator adds inside the cluster.

Kubernetes

You turned on RBAC, configured Pod Security, and reviewed the manifests. But how do you know, today, how many workloads run as root, which ones mount a hostPath, and which images carry critical CVEs? Doing that by hand, cluster after cluster, doesn’t scale. Kubescape automates the question: it compares what’s running (or about to run) with well-known security frameworks and gives you a score and a list of fixes.

What Kubescape is

Kubescape is an open source Kubernetes security platform, licensed under Apache 2.0, created by ARMO and now maintained by the community in the CNCF. It covers the whole lifecycle: scanning manifests and Helm charts during development, assessing cluster posture, scanning images for vulnerabilities, and detecting threats at runtime.

In the CNCF, the project joined the Sandbox in December 2022 and has been incubating since January 2025, its status as of November 2026 (check the project page). Version 4.0, announced in March 2026, made runtime threat detection and the storage component generally available (GA), and removed the old host-sensor, a temporary, privileged DaemonSet used to inspect nodes; that job moved to the node-agent. The latest version we saw on the releases page was v4.0.21, from November 2026.

What problem it solves

  • Insecure configuration: privileged containers, no limits, too many capabilities, no readOnlyRootFilesystem.
  • Compliance: proving to auditors that the cluster follows the NSA-CISA guide or the CIS benchmark, with a report instead of a spreadsheet.
  • Image vulnerabilities: knowing which running images have CVEs, and at what severity.
  • Fixing before deploy: catching the problem in the pull request, when fixing it is cheap.

How it works

Kubescape evaluates controls (each with an ID in the C-0017 format, a description, and a remediation), written in Rego and grouped into frameworks. The main ones:

Framework Where it comes from Focus
NSA-CISA NSA and CISA Kubernetes hardening guide Pods, network, authentication, logging, upgrades
MITRE ATT&CK Threat matrix for Kubernetes Attack tactics and techniques (initial access, execution, persistence…)
CIS Kubernetes Benchmark Center for Internet Security Control plane, node, and policy configuration, with EKS and AKS variants

The exact names of the CIS frameworks change with the benchmark version; list the ones available in your version with kubescape list frameworks.

The project can be used in two ways:

Mode Components What for
CLI The kubescape binary One-off scans, in the terminal or in CI, of files or the current context’s cluster
Operator (in-cluster) operator, kubescape, kubevuln, node-agent, storage, and the optional synchronizer Continuous scanning, vulnerabilities, SBOMs, runtime profiles and alerts

In the operator, operator orchestrates scans; kubescape runs the configuration assessment; kubevuln handles image vulnerabilities based on SBOMs; node-agent (a DaemonSet) generates SBOMs on the node, application profiles, and runtime alerts; and storage, a Kubernetes aggregated API, keeps results out of the main etcd.

Hands-on example

Kubescape isn’t installed in the environment where this article was written: the commands below follow the official documentation and weren’t run here. The sample manifest was validated against a real Kubernetes cluster.

CLI

# installation (pick one)
brew install kubescape
kubectl krew install kubescape

# posture of the current context's cluster
kubescape scan
kubescape scan framework nsa
kubescape scan framework mitre
kubescape list frameworks

# local manifests, before deploying (no cluster needed)
kubescape scan deployment.yaml

# vulnerabilities in an image
kubescape scan image nginx:1.21

A Deployment that already meets many of the controls out of the box:

apiVersion: apps/v1
kind: Deployment
metadata:
  name: api
  namespace: payments
  labels:
    app: api
spec:
  replicas: 2
  selector:
    matchLabels:
      app: api
  template:
    metadata:
      labels:
        app: api
    spec:
      automountServiceAccountToken: false
      securityContext:
        runAsNonRoot: true
        seccompProfile:
          type: RuntimeDefault
      containers:
        - name: api
          image: registry.example.com/your-org/api:1.4.2
          ports:
            - containerPort: 8080
          resources:
            requests:
              cpu: 100m
              memory: 128Mi
            limits:
              memory: 256Mi
          securityContext:
            allowPrivilegeEscalation: false
            readOnlyRootFilesystem: true
            capabilities:
              drop: ["ALL"]

In CI

The CLI exits with code 1 when the score falls below the threshold or when a failure of the chosen severity shows up. That’s enough to block a pull request:

kubescape scan framework nsa k8s/ --compliance-threshold 80
kubescape scan k8s/ --severity-threshold high
kubescape scan k8s/ --format sarif --output results.sarif

The SARIF output can be uploaded to your Git platform’s security tab. Start with a low threshold, record today’s score, and raise it gradually; a high threshold on day one only creates pressure to turn the check off.

Operator

helm repo add kubescape https://kubescape.github.io/helm-charts/
helm repo update
helm upgrade --install kubescape kubescape/kubescape-operator \
  -n kubescape --create-namespace \
  --set clusterName=$(kubectl config current-context)

# results are stored as Kubernetes resources
kubectl get workloadconfigurationscans -A
kubectl get vulnerabilitymanifests -A

The chart’s features can be turned on or off with capabilities.* keys (configuration scanning, vulnerability scanning, node SBOM generation, and so on). Check the chart README for your version.

When to use it (and when not to)

Use it when you need a posture view across several clusters, when auditors ask for evidence against NSA-CISA or CIS, or when you want to block insecure manifests in CI with a single tool.

Watch out for:

  • Treating the score as the goal. A high score with poorly justified exceptions is worse than an honest average one.
  • Expecting it to block. Kubescape measures and reports; what stops a bad resource from entering the cluster is admission control, with Kyverno or ValidatingAdmissionPolicy.
  • Managed clusters: some CIS controls cover the control plane, which you can’t access on EKS, AKS, or GKE. Use the provider-specific variants.

Alternatives

Tool Focus Difference from Kubescape
kube-bench CIS benchmark on nodes CIS only, runs as a Job on the node
Trivy (with the Trivy Operator) Vulnerabilities and configuration Strong on images, IaC, and SBOMs; also produces compliance reports
Falco Runtime threat detection Graduated CNCF project focused only on runtime
Polaris Configuration best practices Simpler, no vulnerability scanning

Kubescape doesn’t replace the groundwork: cluster hardening and the attack surface map tell you what to fix; Kubescape shows where you stand. For runtime, compare it with Falco in in-toto and Falco.

Summary

  • Kubescape assesses clusters, manifests, Helm charts, and images against security frameworks
  • It’s an incubating CNCF project; check the current status on the project page
  • NSA-CISA, MITRE ATT&CK, and CIS are the main frameworks; list them with kubescape list frameworks
  • In CI, use --compliance-threshold or --severity-threshold to block regressions
  • The operator adds continuous scanning, vulnerabilities, SBOMs, and runtime detection
  • Version 4.0 removed the host-sensor; the node-agent took over node inspection
  • It measures and reports; blocking is admission control’s job

Security posture isn’t a project with a due date: it’s a score you track every week.

Get updates on new posts and stay in the loop!