Back to blog

Scan the images your Kubernetes workloads actually run for CVEs, from the desktop

December 1, 2026 8 min read Kubexer Team
SecurityCVETrivyContainer Images

When a new CVE makes the news, the question is not "did our pipeline scan the image we built last month". It is "which of the things running in the cluster right now are affected". Answering that usually means listing workloads, extracting image references, including init containers you forgot about, then running a scanner against each one with the right registry credentials.

Kubexer's Security Scanner, a Pro feature, does that from the workload you are looking at. It uses Trivy, the open-source scanner from Aqua Security, running locally on your machine.

How people do it today

kubectl get deploy api -n shop \
  -o jsonpath='{.spec.template.spec.containers[*].image}'
trivy image --severity HIGH,CRITICAL registry.example.com/shop/api:1.42.0

That works for one container. It misses init containers unless you ask for them, needs registry credentials set up for private images, and the output lives in your terminal. In-cluster operators such as the Trivy Operator do this continuously and well, but they are something to install and operate in every cluster.

Running a scan

Two ways in:

  • From any Pod, Deployment, StatefulSet, DaemonSet or ReplicaSet detail drawer, click the shield button, Scan for vulnerabilities. The scan starts right away.
  • Open Workbench → Security Scanner, click New Scan, and pick a namespace, kind and name.

Kubexer resolves the target to its distinct set of images: containers, init containers and ephemeral containers. For a workload it reads the pod template, so a Deployment scan covers every image it would run even if it has zero ready pods. Then each image is scanned in turn, with progress shown as "Scanning image (2/3)…".

Where the work happens

  • Trivy runs on your computer as a local process (version 0.71.0), in vulnerability mode only. If the binary is not already present, Kubexer downloads it from Trivy's GitHub releases on first use (about 60 MB) and checks it against Trivy's published SHA-256 checksums before running it.
  • Images are pulled from the registry by Trivy, so your machine needs to reach the registry. Nothing runs inside the cluster: no pods are created and nothing is exec'd.
  • Private registries work through the workload's own imagePullSecrets. Kubexer reads them through the Kubernetes API, writes them to a temporary Docker config readable only by you, and deletes it after the scan.
  • The vulnerability database is Trivy's own, downloaded by Trivy and cached locally.

Each image scan has a 180-second timeout. A scan where some images succeed and others fail is marked partial, so one unreachable image does not throw away the rest.

Reading the results

The scan list shows each scan's kind, resource, namespace, image count, severity counts (or Clean), status and time. Scans are stored locally per cluster.

Open a scan and you get the images, each with its own counts, and a vulnerability table with columns CVE, Package, Installed → Fixed, Severity and Title, sorted by severity. To triage:

  • Toggle the severity chips (Critical, High, Medium, Low, Unknown) to focus.
  • Search by CVE ID or package name, which is how you answer "are we affected by CVE-XXXX-YYYY".
  • Filter to one image when a workload has several.
  • Look at the Fixed version, shown in green. A critical CVE with a fixed version is a rebuild away from gone. One without a fix is a risk decision.
  • Click a row for details: CVSS score and vector, CWE IDs, references, dates, a description and Open advisory.

Download report as PDF exports exactly what you have filtered and sorted on screen, which is handy for a ticket or a security review. Re-run this scan after you ship a fix to confirm it is gone.

Air-gapped and restricted networks

Settings → Security Scanner has options for networks without internet access:

  • DB repository and Java DB repository point Trivy at a mirror in your own registry, for example registry.internal/aquasecurity/trivy-db:2.
  • Skip database update uses the database already in the cache and never downloads.
  • Offline scan stops Trivy calling out for extra package metadata during a scan.

What it does not do

Be clear about scope before you rely on it:

  • It finds known vulnerabilities in packages. It does not scan for secrets, misconfigurations or licences, and it does not produce an SBOM.
  • There is no ignore list, risk acceptance or VEX support. Triage means filtering, sorting and reading.
  • Scans run when you ask. There is no scheduled scanning, no history trend and no admission control that blocks vulnerable images.
  • Exports are PDF only.

For continuous, cluster-wide coverage, run a scanner in your pipeline and an operator in the cluster. The Security Scanner is for the question in front of you: is this workload affected, and what fixes it.

Try it

The Security Scanner is part of Pro in Kubexer, and included in the free trial. Open your most important Deployment and click the shield. Then check who can change it with the Security Matrix.