Kubernetes vulnerability scanning that runs continuously, not on a schedule

Continuous Kubernetes vulnerability scanning of every running image: SBOMs re-checked as advisories land, ranked by EPSS and KEV. Open source, one Helm chart.

Kubernetes vulnerability scanning is the practice of finding known vulnerabilities (CVEs) in the container images a cluster is running: listing each image's operating-system packages and application dependencies, matching them against advisory databases, and attributing every finding to the pods, namespaces and Helm releases that run it, so that a new advisory can be answered with "which of our workloads does this affect?".

Most "Kubernetes vulnerability scanning" is registry scanning wearing a Kubernetes badge: it scans the images your pipeline built and hopes those are the ones running. StackRadar starts from the other end. A small scanner inside the cluster watches the pods the kubelet is actually running, generates an SBOM for each distinct image, and sends only that dependency list out — never the image, never your code. The matching then happens continuously against a mirror of 900K+ advisories, so a CVE published tonight shows up as a finding on the workloads it affects without anyone triggering a scan. This page explains what the practice covers, where in the pipeline it can happen, how findings are prioritised, and where StackRadar fits — including what it does not do.

What Kubernetes vulnerability scanning covers

"Scanning Kubernetes" is five different jobs that happen to share a word. Most tools do one or two of them well, and the vendors that claim all five usually mean they have a product for each. Here is the list, with what StackRadar does and what it leaves to other tools:

LayerWhat is checkedStackRadarTools that do it
Image OS packagesapk, deb and rpm packages in each image, against distro trackers and OSVYes — every running image, once per digestTrivy, Grype, Clair, the StackRadar scanner and CLI
Application dependenciesnpm, PyPI, Go, Maven, RubyGems, Cargo and other language packages inside the imageYes — same SBOM, same matchTrivy, Grype, OSV-Scanner, the StackRadar scanner and CLI
Kubernetes configurationWorkload specs, RBAC, network policies and Pod Security settings against CIS and NSA/CISA guidanceNoTrivy Operator, Kubescape, Kyverno and Gatekeeper policy reports
Nodes and control planeThe kubelet, kube-proxy and API server versions, node OS packages, node configuration against the CIS benchmarkNotrivy k8s (node and control-plane components), kube-bench, Kubescape
Runtime behaviourSyscalls, process trees and network connections of running containers, for exploitation in progressNoFalco, Tetragon, the commercial CNAPP agents

The first two rows are what "vulnerability scanning" means in the strict sense — a package list matched against a CVE database — and they are the whole of what StackRadar does. The configuration and node rows are benchmark checks rather than CVE matching; they matter, and Trivy Operator or Kubescape is the right free answer for them. The runtime row is a different discipline again, with its own agents and its own alerts. A team that wants all five runs two or three tools; the open-source roundup says which does what.

What "running" means, and why it matters

The unit of a StackRadar scan is an image digest as seen by one cluster — the sha256 the kubelet reports in containerStatuses[].imageID, not the tag in the manifest. That distinction is the whole difference between the two kinds of scanning:

Registry / CI scanningRunning-cluster scanning
Question answeredIs this image clean before it ships?Which running workloads does this CVE affect?
What gets scannedWhatever was pushed or builtEvery digest the kubelet is running, including sidecars, init containers, and images nobody built
Knows the namespace, Helm release, ArgoCD appNoYes — the scanner reports where each image runs and what deployed it
Catches a `:latest` that movedNoYes — a new digest is a new image
Catches a new CVE in an old imageOnly if you rescanYes, if the SBOM is re-matched in place

In practice a cluster runs far more images than anyone built: ingress controllers, cert-manager, monitoring agents, service-mesh sidecars, the CSI drivers, the cloud-provider add-ons. Those are where a large share of real findings live, and a pipeline scanner never sees them. The Kubernetes SBOM page covers the inventory side of this: one package list per running image, kept rather than discarded.

Registry, CI, admission and in-cluster scanning

The same image can be scanned at four points between a developer's laptop and a running pod, and each point sees a different set of images and answers a different question. None of the four replaces the others; the common mistake is to assume the first two cover the last.

WhereWhen it runsWhat it seesWhat it misses
CI pipelineOn every build, before pushThe image your pipeline just builtEvery image you did not build; the same image three months later; a base-image CVE published after the build
RegistryOn push, and on a rescan scheduleEverything pushed to that registryImages pulled from other registries (Docker Hub, quay.io, ghcr.io, the cloud provider's); which of the stored images is actually deployed
AdmissionWhen a pod is createdEach image at the moment it is scheduledPods already running; a CVE published after admission; anything exempted to keep the cluster deployable
In-clusterContinuously, from what the kubelet reportsEvery running digest, with its namespace, workload and Helm releaseImages that have not started yet — it reports, it does not block

CI and registry scanning answer "is this artefact clean?" at the moment it is built or pushed. They are the right place to fail a build on a fixable critical, and the StackRadar CLI's --fail-on flag or Trivy's --exit-code is all that takes. What neither can see is time: an image that passed in March carries whatever has been published against its packages since, and the registry has no idea which of its thousand tags is running. Admission control (Kyverno, Gatekeeper, or a scanner's own webhook) closes the gap at deploy time but has the same blind spot afterwards, and in practice is run with enough exemptions to keep deploys flowing that it is a policy tool more than a scanner.

In-cluster scanning is the only one of the four that starts from the running digests — so it sees the ingress controller, the sidecar the mesh injected, the add-on the cloud provider manages, and the :latest that quietly moved. The cost is that it has to live somewhere: Trivy Operator keeps its reports in etcd, which silently drops the reports of large images; a scheduled CronJob with results in a bucket is the lightest self-built version; StackRadar keeps the SBOMs in its own database, inside your cluster when self-hosted or in the EU-hosted cloud. The self-hosted options post lays out what each arrangement makes you run.

Continuous in both directions

"Continuous" usually means "we rescan every N hours". That covers new images, but a rescan is also the only way most tools learn about new advisories, so the answer to "are we affected by the CVE that dropped an hour ago?" is "wait for the next cycle". StackRadar separates the two:

  • New images are found by a pod informer, so a deploy is scanned within minutes of the pod starting. A full sweep every six hours (configurable) catches anything the informer missed. Each distinct digest is pulled and inventoried once per cluster, however many pods run it.
  • New advisories are matched against the SBOMs already stored. The scanner does nothing; the matching runs on the StackRadar side as the mirror of OSV.dev updates, every hour. The finding appears with the workloads, namespaces and releases it affects already attached. How the re-matching works, and what it does not solve.

The same mechanism updates the ranking. EPSS scores and the CISA KEV catalogue are re-synced daily, and every finding's Risk Score contribution is a generated column over those fields — when a CVE lands in KEV, its position in your list moves the same day.

A CVE just dropped. Are we running it?

Three guides that answer it from what the kubelets report, and one command that answers it from your laptop.

Which running images are affected?

A CVE ID lands in Slack. Four steps answer it from what the kubelets report: the running digests, one SBOM each, the ID and its aliases, then the pods.

Which pods run the vulnerable package?

Given a package name, list every pod that runs it with its Deployment or DaemonSet and Helm release: one SBOM per digest, a jq query, and a join on the digest.

Which of the findings matter this week?

Four tiers built from EPSS and the CISA KEV catalogue, with the thresholds behind each. On a real nginx image, 497 CVEs became 12 for this week.

No cluster install, no account: the free, Apache-2.0 StackRadar CLI scans every running image through your kubeconfig and flags the CISA KEV entries first.

brew install lockdep/tap/stackradar
stackradar scan   # every running image in the current kubeconfig context, deduplicated by digest

What leaves the cluster

Exactly two things: the SBOM for each image (package names, versions and licences — no code, no file contents, no secrets) and an inventory of what is running where (namespace and workload names, image references, Helm chart versions, ArgoCD application names, from a short fixed list of well-known labels). The architecture page lists every field. The scanner source is published and every release is signed, so you can check that claim rather than take it.

Prioritisation: CVSS, EPSS and KEV

A cluster of moderate size carries thousands of findings, and roughly 5% of CVEs are ever exploited. Sorting by CVSS puts the loud ones first, not the dangerous ones, because the three numbers a finding can carry answer three different questions:

  • CVSS scores how bad exploitation would be — attack vector, complexity, privileges, impact — on a 0–10 scale. It says nothing about whether anyone is exploiting it, which is why a cluster has hundreds of 9.8s and most of them never matter.
  • EPSS, from FIRST, is a probability that a CVE will be exploited in the next 30 days, updated daily from observed exploitation. It is the number that turns a list of hundreds into a list of a dozen; how to read it and which threshold to act on.
  • KEV, CISA's Known Exploited Vulnerabilities catalogue, is a curated list of CVEs with confirmed exploitation in the wild. A KEV entry on a running image is the one finding that should not wait for a sprint; which of your running images are on the list, with a free kubectl-and-curl script.

Every finding in StackRadar carries all three, and the Risk Score combines them in a published formula — a CVSS 7.5 that is being exploited outranks a CVSS 9.8 that is not. Findings without a severity score are shown as unscored rather than silently binned as "low". The prioritisation guide builds the same four-tier triage from Grype or Trivy output and the public EPSS and KEV feeds, for teams not using StackRadar at all.

What "fixed" means in a cluster

A finding in a Kubernetes pod is not fixed by apt-get upgrade inside the container; it is fixed by a new image, which means a new base image or a rebuilt dependency, then a rollout. Distro backports complicate the version arithmetic — Debian and Red Hat fix CVEs in package versions that look older than the upstream fix — and "no fix" and "won't fix" mean different things. The CVE patching guide goes through fix versions, base images and the order to patch in; StackRadar shows the fixed version next to every finding and groups findings by image so the rebuild list is short.

Install with one Helm command

One Helm chart, one API key, read-only RBAC. The scanner works on any conformant cluster — EKS, GKE, AKS, DigitalOcean, k3s, kind, OpenShift, self-managed.

bash
helm install stackradar-scanner oci://ghcr.io/lockdep/charts/stackradar-scanner

The quick-start guide covers creating the key and pinning the chart version; the private registries guide covers ECR, Artifact Registry and ACR credentials, and restricted networks covers filtered egress. Self-hosting is free (AGPL-3.0), and every cloud plan starts with a 14-day free trial — see pricing.

If you want the free in-cluster tool instead

You may not need a server behind the scanner at all. For one or two clusters, no history requirement and no multi-cluster question, Trivy Operator or Kubescape are good free answers, and we say so on their comparison pages. The open-source scanner roundup lays out what each one does and does not do; the head-to-head pages cover the paid platforms.

Further reading

Frequently asked questions

What is Kubernetes vulnerability scanning?

Kubernetes vulnerability scanning is the process of finding known vulnerabilities (CVEs) in the container images that are actually running in a cluster — as opposed to scanning images in a registry or a CI pipeline, which tells you about images that might run. A Kubernetes scanner discovers the running pods, reads each container image, lists its OS and language packages, and matches those packages against vulnerability databases such as OSV, the distro security trackers and GitHub advisories.

What is the difference between registry scanning and cluster scanning?

Registry and CI scanners look at images at rest and answer "is this image clean before it ships?". Cluster scanning looks at what the kubelet is running and answers "which of our running workloads are affected right now?". Both are useful; only the second can tell you the blast radius of a new CVE, because only it knows which images are deployed, in which namespaces, by which Helm release or ArgoCD application.

Does Kubernetes vulnerability scanning cover misconfigurations and nodes?

Not by itself. Vulnerability scanning in the strict sense matches packages against CVE databases; checking workload configuration, RBAC and node settings against benchmarks such as the CIS Kubernetes Benchmark is configuration scanning, a separate discipline with separate tools. Trivy Operator and Kubescape do both in one install; StackRadar does image vulnerability scanning only, and says so. Most teams end up running one tool for each.

How often should a Kubernetes cluster be scanned for vulnerabilities?

Two events should trigger a check: a new image starting in the cluster, and a new advisory being published. A nightly or weekly rescan covers the first with a delay of up to a day or a week; it covers the second only by accident. The better arrangement is an in-cluster watcher that scans an image once, when it first runs, and a matcher that re-checks the stored package lists whenever the advisory database changes — which makes "how often" a property of the database feed, not of a schedule.

What does "continuous" vulnerability scanning mean?

Two different things, and most tools only do the first. Continuously discovering new images — a watcher in the cluster notices a new pod and scans its image — and continuously re-checking already-scanned images as new advisories are published. StackRadar does the second by keeping the SBOM of every image and matching it in place when the vulnerability database changes, so a CVE published tonight is a finding tomorrow morning without any image being pulled or rescanned.

Does the scanner need cluster-admin?

No. The StackRadar scanner needs read-only access: list and watch pods, plus optional read-only lookups of workload controllers (Deployments, StatefulSets, DaemonSets, Jobs) and ArgoCD Applications for attribution. It never creates, modifies or deletes anything, and it reuses the pods’ own imagePullSecrets to read private images.

Is there a free Kubernetes vulnerability scanner?

Yes, several. Trivy Operator and Kubescape are free and open source and run entirely in-cluster. The StackRadar CLI is a free, Apache-2.0 command that scans a cluster from your laptop with no account. StackRadar itself is open source (AGPL-3.0) and free to self-host in your own cluster, one cluster per install; the cloud starts with a 14-day free trial, and its plans add more clusters, longer history and hosted alerts.

How is StackRadar different from Trivy Operator?

Trivy Operator stores scan results as Kubernetes custom resources inside each cluster, with a 24-hour TTL by default, and rescans to refresh them; each cluster is its own silo and there is no history. StackRadar stores the SBOM in its own database rather than in etcd, re-matches it as advisories land, shows every cluster in one dashboard, keeps a dated history, and ranks findings with EPSS and the CISA KEV catalog rather than CVSS alone. Trivy Operator also checks configuration and RBAC, which StackRadar does not.

The next CVE lands whether or not you are ready.

When it does, the first question is which of your pods run it, and the second is whether anyone is exploiting it yet. One Helm install keeps both answers current, for every image you already run.

Free to self-host · 14-day cloud trial, card required