A container vulnerability scanner you can run in sixty seconds — then keep running

Scan container images and running Kubernetes pods for vulnerabilities with one open-source command, no account needed. Then keep the cluster scanned.

A container vulnerability scanner is a tool that reads a container image layer by layer, lists the operating-system packages and application dependencies inside it, and matches each package and version against vulnerability databases to report the known CVEs the image carries — usually with a severity, the version that fixes each one and, in the better scanners, whether the flaw is being exploited.

There are two honest answers to "which container vulnerability scanner should I use?", and they depend on whether you need an answer once or an answer that stays true. For once: a single static binary, no daemon, no account, that scans an image or an entire running cluster and tells you which pods carry known-exploited CVEs. For continuously: an in-cluster scanner that keeps an SBOM of every running image and re-checks it as advisories are published. StackRadar ships both. This page covers the first and then explains when you want the second; for the field as a whole, sorted by job rather than by vendor, read container vulnerability scanning tools in 2026.

The free scanners, side by side

Five open-source scanners cover most of what gets installed. They agree on the basics — read the image, match the packages, no account — and differ on whether they can start from a running cluster, whether they carry a vulnerability database on disk, and what they write out. All five are Apache-2.0.

ScannerScans imagesScans running podsVulnerability DBAccountOutput
TrivyYes, plus filesystems, git repos and VM imagesYes, trivy k8s scans cluster workloads, nodes and control planeDownloaded and refreshed automaticallyNoTable, JSON, SARIF, template, CycloneDX, SPDX
GrypeYes, plus filesystems and SBOMsNoDownloaded automatically; checked for updates on each runNoTable, JSON, SARIF, template, CycloneDX
ClairYes, as a service: images submitted by manifestNoIts own PostgreSQL store, filled by updatersNoJSON reports over its HTTP API; text via clairctl
Syft + Grype (Anchore)Syft writes the SBOM, Grype matches itNoGrype's, as aboveNoSBOM in CycloneDX, SPDX or Syft JSON; findings as Grype's
StackRadar CLIYes, --imageYes, every running image through your kubeconfigNone on disk; packages are matched against api.osv.devNoTable, JSON, HTML report, local --serve dashboard

For scanning one named image in CI, Trivy and Grype are at least as good as the StackRadar CLI and have been for years; Trivy's target list is the broadest of the five. For "which of my running pods carry this?", only Trivy's k8s subcommand and the StackRadar CLI start from the cluster, and only the StackRadar CLI flags KEV entries and needs no database download first. Clair is the one to run behind a registry — it is the scanner inside Red Hat Quay — not from a laptop. Pick by job, not by name.

Sixty seconds, no signup: the CLI

stackradar scan is a free, Apache-2.0 command-line scanner (source on GitHub). Point it at an image, or at your kubeconfig, and it lists every finding with severity, fixed version and whether the CVE is in the CISA Known Exploited Vulnerabilities catalogue.

install
brew install lockdep/tap/stackradar
# or
curl -fsSL https://raw.githubusercontent.com/lockdep/stackradar-cli/main/install.sh | sh
# or
go install github.com/lockdep/stackradar-cli@latest
scan
# one image, no cluster needed
stackradar scan --image nginx:1.27

# every running image in the current kubeconfig context, deduplicated by digest
stackradar scan

# just two namespaces, quieter output, exit 2 if anything exploited is running
stackradar scan -n payments -n checkout --min-severity high --fail-on kev

# a self-contained HTML report, or a live local dashboard
stackradar scan -o html --file report.html
stackradar scan --serve

What it does, and does not do:

  • Scans what is running — the digests the kubelet reports — not what a manifest says. It needs list pods, the same permission as kubectl get pods.
  • Matches OS and language packages against OSV using the embedded osv-scanner library, and flags CISA KEV entries so the exploited ones sort first.
  • Pulls images with the registry credentials you already have. An image your laptop cannot reach says not reachable from here rather than guessing.
  • Outputs a table, JSON, or a shareable HTML report; exit codes follow Grype's convention for CI gates.
  • Sends nothing to StackRadar. Package names go to api.osv.dev, one GET goes to cisa.gov. No account, no telemetry.
  • Is a point in time. Run it again tomorrow and yesterday's clean image may carry a new CVE — nothing here watches for that.
Results differ slightly from Trivy or Grype on the same image. Different package catalogers and different matchers disagree at the margins; this is normal for every pair of scanners, and the tools roundup explains where the disagreements come from. The margins cut both ways: zero findings is not a clean image is the write-up of two matching bugs we found in our own scanner by comparing it with Trivy and OSV-Scanner on one Helm chart.

The CLI's own page, StackRadar CLI, has the release signatures, the full flag list and the privacy answer; the launch post explains why it starts from the kubelet's digests rather than from a manifest.

Scanning a Docker image before it ships

For image-at-rest scanning in CI, the CLI is one option among several good free ones. Use whichever fits the pipeline you have:

ToolBest atCommand
StackRadar CLICluster scans, KEV-first ranking, HTML reportstackradar scan --image IMAGE --fail-on high
TrivyBroadest coverage: images, filesystems, IaC, secretstrivy image IMAGE
GrypeMatching an SBOM you already have (from Syft)grype IMAGE or grype sbom:bom.json
Docker ScoutDocker Desktop and Docker Hub usersdocker scout cves IMAGE

Whichever you pick, the first scan of a real image returns hundreds of findings, and most of them are not yours to fix: they are in the base image, or in an image someone else builds. Splitting a scan into base-image findings, packages your Dockerfile added, and images you do not build is a short script with Syft and Grype, and it decides what each group needs: a base-image bump, a dependency update, or an upstream issue.

The thing none of them can tell you is what happens after the image ships: which cluster it landed in, whether it is still running three months later, and which CVE published since then applies to it.

When once is not enough: the in-cluster scanner

The StackRadar scanner is a small, open-source agent installed with one Helm chart. It generates a CycloneDX SBOM for every distinct image the cluster runs (using Syft), uploads only the SBOM, and StackRadar keeps it — so when the next advisory lands, the match happens against lists it already has. Every cluster shows up in one dashboard, findings are ranked by the Risk Score (CVSS, EPSS and KEV), and the history is kept for one year on Pro, two on Business — and one year when you self-host it.

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

The quick-start guide is one Helm command, with first findings within minutes. The difference from the CLI, in one line: the CLI answers the question you have today; the scanner makes sure you can answer the one you will have next month. The Kubernetes vulnerability scanning page goes into what continuous means in practice.

Open-source container scanning, honestly

The CLI, the in-cluster scanner and its Helm chart are Apache-2.0; the server and the dashboard are AGPL-3.0, so the whole thing can be self-hosted with one Helm command, and the cloud runs the same images. Every line is on GitHub, signed and version-pinned, and you can read, run, modify and redistribute it. If you would rather have a scanner with no server behind it at all, Trivy, Grype and Kubescape all qualify, and the open-source roundup compares them without a thumb on the scale.

Frequently asked questions

What is a container vulnerability scanner?

A container vulnerability scanner reads a container image layer by layer, inventories the operating-system packages (apk, deb, rpm) and language dependencies (npm, PyPI, Go modules, Maven, and so on) inside it, and matches each package and version against vulnerability databases to list the known CVEs it contains. Good scanners also report the fixed version for each finding and distinguish an unscored advisory from a low one.

Which container vulnerability scanner is free and open source?

Trivy (Apache-2.0, Aqua Security), Grype and Syft (Apache-2.0, Anchore), Docker Scout’s CLI for basic image scanning, and the StackRadar CLI (Apache-2.0) are all free. Trivy and Grype scan an image you name; the StackRadar CLI additionally scans every image running in a Kubernetes cluster through your kubeconfig and flags CISA KEV entries. None of them requires an account.

How do I scan a Docker image for vulnerabilities?

With the StackRadar CLI: `stackradar scan --image nginx:1.27` prints every finding with its severity, fix version and KEV status, and needs no Docker daemon or account. With Trivy: `trivy image nginx:1.27`. With Grype: `grype nginx:1.27`. All three pull the image with your existing registry credentials and work offline from any registry you can reach.

How is scanning a running cluster different from scanning an image?

Scanning an image answers "what is in this artefact?". Scanning a cluster starts from the container digests the kubelet reports as running, deduplicates them, scans each, and attributes findings back to namespaces and workloads — so the output is "which pods are affected", not "which image is dirty". The StackRadar CLI does this from a laptop in about a minute; the StackRadar scanner does it continuously from inside the cluster.

Does the StackRadar CLI send anything to StackRadar?

No. Image pulls go to your registries, package names and versions go to api.osv.dev for matching, and one GET fetches the CISA KEV catalogue from cisa.gov. There is no account, no telemetry, and nothing is sent to stackradar.io. The HTML report and the --serve dashboard run locally.

When should I use the CLI and when the cluster scanner?

Use the CLI for a one-off answer: an incident, a CI gate with --fail-on, a report to hand to someone. Use the in-cluster scanner when you need the answer to stay current — new advisories matched against images already scanned, every cluster in one place, a dated history, and ranking by EPSS and KEV. The CLI is a point-in-time snapshot; it does not watch for anything.

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