← All articles

Kubernetes Security Scanning: Cluster, Manifest and Runtime Checks

Kubernetes security scanning is the practice of checking manifests, Helm charts, running clusters and workloads against known misconfigurations and CVEs before and after they reach production — covering RBAC, pod security settings, network policies, exposed control-plane components and container image vulnerabilities. Done well, it happens at three layers: before deploy (manifests and IaC), continuously against the live cluster (control plane and workload config), and at runtime (what's actually exposed to the internet). Most teams only do the first layer, if that, which is why misconfigurations remain the leading cause of Kubernetes security incidents.

The numbers back this up. Red Hat's 2024 State of Kubernetes Security survey found that 90% of organizations experienced at least one Kubernetes-related security incident in the past year, and misconfiguration caused 45% of those incidents. Wiz's 2025 Kubernetes Security Report adds urgency: a newly created AKS cluster faces its first attack attempt within 18 minutes of deployment. Scanning manifests in CI catches a class of problems; scanning the live cluster and its internet-facing surface catches what actually gets exploited.

What Kubernetes security scanning actually checks

A real Kubernetes security scan isn't one tool running one check. It spans several distinct layers, each catching different failure modes:

LayerWhat it checksExample finding
Manifest / IaCYAML, Helm, Kustomize before deployContainer runs as root, no resource limits, hostNetwork: true
Cluster configurationLive API server, etcd, kubelet, RBACAnonymous auth enabled on kubelet, overly broad ClusterRoleBindings
Workload / pod securityAdmission policies at runtimePrivileged containers, missing seccomp/AppArmor profiles, writable root filesystem
ImageBase images and dependenciesKnown CVEs in container images, unpinned latest tags
External exposureWhat's reachable from the internetExposed dashboard, kubelet API, or load balancer with no auth

Most "Kubernetes security" tooling conversations focus on the first layer because it's the easiest to bolt into CI. The last layer — what's actually exposed externally — is the one attackers check first, and it's the one most teams never scan at all, because it requires looking at the cluster the way an outsider would rather than from inside the VPC.

The standards that define "secure" for Kubernetes

Two reference frameworks define what a defensible Kubernetes configuration looks like, and auditors and enterprise security questionnaires increasingly ask which one you follow.

CIS Kubernetes Benchmark. Published by the Center for Internet Security, it's a prescriptive, versioned checklist covering control plane components (API server, etcd, controller manager, scheduler), worker node configuration (kubelet), and cluster-level policies (RBAC, pod security, network policies, secrets). Each control has an exact setting to check and an audit command, which is why tools like kube-bench implement it directly — it's testable, not just advisory.

NSA/CISA Kubernetes Hardening Guidance. This joint technical report, most recently updated in 2022, is less prescriptive and more strategic: it tells administrators to scan containers and pods for vulnerabilities or misconfigurations, run containers with least privilege, use network separation and firewalls, enforce strong authentication, and maintain audit logging. It's the document most often cited by federal and critical-infrastructure teams, but its scanning and least-privilege recommendations apply to any cluster.

Neither standard is a product you buy — they're baselines you scan your cluster against, manually or with tooling, on a recurring basis rather than once at setup.

The exposure that doesn't show up in CI

CI-stage manifest scanning won't catch a kubelet API or dashboard someone opened to the internet for debugging and forgot to close. This is a persistent, well-documented problem. Trend Micro's internet-wide Shodan analysis found over 243,000 Kubernetes clusters with the kubelet port (10250) publicly reachable, and a meaningful subset responded to unauthenticated requests with pod and container details. Separately, Wiz's research into Kubernetes initial access found that Shodan indexes roughly 4,000 exposed Kubernetes dashboards, though most now require authentication by default — the ones that don't are usually the result of someone disabling auth for a demo and never re-enabling it.

This is also where known CVEs matter. CVE-2018-1002105 is a critical (CVSS 9.8) privilege-escalation flaw in the kube-apiserver that let a specially crafted proxied request reach backend servers using the API server's own TLS credentials, bypassing authentication entirely. It's old, but clusters still running unpatched versions — common in self-managed or neglected environments — remain exposed to it. A scan of the live, externally reachable surface catches this class of issue; a manifest linter in your repo never will, because the vulnerability is in the control plane binary, not your YAML.

Manifest and admission-layer checks worth running

Before anything ships, these are the checks that catch the most common misconfigurations, roughly in order of how often they show up:

  • Privileged containers and allowPrivilegeEscalation: true — grants the container capabilities equivalent to root on the host.
  • Missing runAsNonRoot — containers defaulting to root inside the container, which matters a lot if there's also a container escape bug.
  • hostNetwork, hostPID, or hostIPC set to true — breaks the isolation Kubernetes is supposed to provide between pods and the node.
  • No resource limits — a single pod can consume a node's CPU/memory and take out everything co-located with it.
  • Secrets mounted as environment variables instead of files — env vars leak into logs, crash dumps and child processes far more easily.
  • Overly broad RBAC — ClusterRoleBinding to cluster-admin for a service account that only needs namespace-scoped read access.
  • No NetworkPolicy — by default, every pod can talk to every other pod; without an explicit policy, a compromised pod can reach anything.

Running these checks against Terraform, CloudFormation or Kubernetes manifests before merge is exactly what infrastructure-as-code scanning is for — catching the misconfiguration in the definition file before it's ever deployed, which is cheaper than finding it in a running cluster.

Where cloud and cluster config overlap

Kubernetes doesn't run in isolation — it sits on top of cloud IAM, VPC networking, and load balancers, and a lot of "Kubernetes" incidents are actually cloud misconfigurations that happen to expose a cluster. An overly permissive security group that lets port 10250 or 6443 reach the internet, an IAM role attached to a node group with far more permissions than the workloads need, or a load balancer with no WAF in front of the API server are all cloud-layer issues that directly determine whether your cluster is exposed. Cloud misconfiguration scanning across AWS, Azure and GCP catches this overlap — the public S3 bucket next to the cluster, the security group that's wide open, the IAM role that's over-scoped — which matters because attackers don't care whether a misconfiguration is "Kubernetes" or "cloud," they just look for the open door.

This is also the layer where incidents stop being theoretical. A compromised pod with an over-permissioned service account for its underlying cloud IAM role can pivot straight into the cloud account — pulling data from object storage, spinning up compute for cryptomining, or reading secrets from a cloud secrets manager the cluster was never supposed to touch.

A practical scanning cadence

StageWhat to scanFrequency
Pre-mergeManifests, Helm charts, DockerfilesEvery PR
Pre-deployAdmission policy simulation, image CVEsEvery deploy
Running clusterRBAC, network policies, pod security against CIS BenchmarkWeekly or on config change
External surfaceKubelet, API server, dashboards, load balancers reachable from the internetContinuously

The last row is the one most teams skip, and it's the one that matters most for a security questionnaire or SOC 2 audit, since auditors and enterprise customers care about what's actually reachable, not just what your YAML says it should be. If you're trying to understand how misconfigurations compound across cloud and infrastructure layers more broadly, Infrastructure as Code Security Scanning and the AWS security misconfigurations checklist cover the adjacent ground in more depth.

Scanning isn't the same as a pentest

Automated scanning against CIS controls and known CVEs will catch the misconfigurations above, but it won't chain them the way an attacker does — pivoting from an exposed kubelet to pod secrets to a cloud IAM role to lateral movement across namespaces. That chaining is what a cloud vulnerability scanner paired with manual or agentic testing is for, and it's also why continuous scanning and periodic testing aren't substitutes for each other — see continuous penetration testing for how the two fit together. If your Kubernetes environment fronts a product that enterprise customers are evaluating, a scoped pentest that includes your cluster's external attack surface, not just the application layer, is usually what a security questionnaire is actually asking for.

Frequently asked questions

What is Kubernetes security scanning?

Kubernetes security scanning is the automated process of checking manifests, live cluster configuration, container images and the cluster's externally reachable surface against known misconfigurations, CVEs and hardening standards like the CIS Kubernetes Benchmark. It happens at multiple layers: before deploy (manifests), continuously (live config), and externally (what's internet-facing).

Is CIS Kubernetes Benchmark compliance mandatory?

It's not a legal or regulatory mandate on its own, but it's the de facto baseline auditors and enterprise security teams expect, and it maps cleanly onto SOC 2 and ISO 27001 configuration-management requirements. Many managed Kubernetes providers (EKS, AKS, GKE) publish their own CIS Benchmark variants because the generic benchmark doesn't account for provider-managed control plane components.

What's the difference between kube-bench and a full security scan?

kube-bench specifically automates the CIS Kubernetes Benchmark checks against a running cluster's configuration — it's a point-in-time compliance check. A full Kubernetes security program also needs manifest/IaC scanning before deploy, container image CVE scanning, and external exposure checks for things like an internet-reachable kubelet or dashboard, none of which kube-bench covers.

Can a misconfigured Kubernetes cluster really be found from the outside, without cluster access?

Yes. Internet-wide scans have repeatedly found hundreds of thousands of Kubernetes clusters with the kubelet port or API server reachable publicly, some responding to unauthenticated requests with pod and container details. An external scan that checks for exposed control-plane ports, dashboards and load balancer misconfigurations finds exactly what an attacker doing reconnaissance would find, without needing cluster credentials.

How often should I scan my Kubernetes cluster?

Manifests and images should be scanned on every pull request and deploy, since that's the cheapest point to catch a misconfiguration. Live cluster configuration and RBAC should be checked weekly or whenever access controls change, and the cluster's external attack surface — kubelet, API server, dashboards, load balancers — should be monitored continuously, since new exposures can appear the moment a config changes, not just when you remember to check.

Find what attackers can see, before they do.

AI pentesting agents test your web app, API and cloud, and every finding comes with evidence and a fix. First report in about 10 minutes.

Stay ahead of attackers.

New vulnerabilities, breach write-ups and practical fixes. A few emails a month.