Vulnerabilities In Use

In Use shows which vulnerable packages are actually used by your running workloads, so you can focus on the vulnerabilities that matter instead of everything that happens to be installed in an image.

Overview

A typical container image includes many packages that the application never touches. A vulnerability scan of the image reports CVEs for all of them, making it hard to know where to start.

In Use narrows that list. ARMO's node agent uses eBPF to observe file activity in each running container. Packages whose files are accessed at runtime are marked as In Use, and you can filter your vulnerability results to show only those packages.

How it works

  1. When a container is scanned, ARMO generates an SBOM (software bill of materials) listing every package installed in the image.
  2. When the container starts, the node agent observes which files it accesses for a set learning period.
  3. ARMO builds a filtered SBOM containing only the packages whose files were accessed.
  4. The vulnerability engine scans the filtered SBOM, producing a list of In Use vulnerabilities alongside the full list.
Diagram showing the full SBOM being filtered by runtime file activity into a filtered SBOM, which is then scanned for In Use vulnerabilities
🚧

"Not In Use" means "not observed"

In Use is based on what a container does during the learning period. If a code path, and the package behind it, is not exercised during that window, its vulnerabilities will not be marked In Use. Use the In Use filter to prioritize, not to dismiss vulnerabilities entirely.

📘

Existing containers need a restart

After installation, the node agent only observes containers that start or restart. Containers that were already running when ARMO was installed will show Missing runtime info until they are restarted. To get In Use data right away, restart the workloads you want covered.

Configure the learning period

In Use is controlled by two settings:

SettingDefaultWhat it doesExample
learningPeriod2mHow long the node agent observes a new or restarted container before publishing its first In Use results.--set nodeAgent.config.learningPeriod=15m
maxLearningPeriod180mHow long the node agent keeps observing the container and updating In Use results after the first publish. After this, results stop changing until the container restarts.--set nodeAgent.config.maxLearningPeriod=200m

Both values are duration strings (for example, 15m or 3h).

A longer learningPeriod gives more complete first results but delays them. A longer maxLearningPeriod catches code paths that run less often, such as scheduled jobs or rarely used endpoints.

To change these settings on an existing installation, run:

helm upgrade kubescape kubescape/kubescape-operator \
  -n kubescape \
  --reuse-values \
  --set nodeAgent.config.learningPeriod=15m \
  --set nodeAgent.config.maxLearningPeriod=200m

Prioritize workloads with the In Use filter

Once a container's learning period ends, its In Use results appear in ARMO Platform.

Vulnerabilities: Workloads view

  1. Go to Vulnerabilities.
  2. Open the Vulnerabilities filter.
  3. Select In Use.

The table now shows only workloads with at least one vulnerability in a package that is in use, and the counts in the Vulnerabilities column drop to reflect only In Use vulnerabilities.

Missing runtime info

Some workloads may show a Missing runtime info warning. This means ARMO has no In Use data for that workload yet. Common causes:

  • The container was already running when ARMO was installed and has not restarted since.
  • The container is still within its learning period.
  • The node does not support eBPF (see Limitations).
  • The container exited before the learning period ended.

For step-by-step troubleshooting, see Missing runtime information.

Workload row showing the Missing runtime info warning icon and tooltip

View In Use data in the cluster

In Use data is also stored in the cluster as Kubernetes resources in the kubescape namespace. This is useful for debugging or for exporting results to other tools.

Full SBOMs (all installed packages)

kubectl get sbomsyft -n kubescape --show-labels

Each SBOM is labeled with the image it describes, for example kubescape.io/image-name=quay-io-kubescape-kubevuln.

Filtered SBOMs (In Use packages only)

kubectl get sbomsyftfiltered -n kubescape --show-labels

Filtered SBOMs are per container, and their labels identify the workload, namespace, and container, for example:

kubescape.io/workload-kind=Deployment,kubescape.io/workload-name=payment,kubescape.io/workload-namespace=acme-fitness,kubescape.io/workload-container-name=payment

Vulnerability manifests

kubectl get vulnerabilitymanifests -n kubescape --show-labels

The kubescape.io/context label tells you which list a manifest holds:

Label valueContents
kubescape.io/context=non-filteredAll vulnerabilities in the image
kubescape.io/context=filteredIn Use vulnerabilities for a specific container

To list only In Use manifests for one workload:

kubectl get vulnerabilitymanifests -n kubescape \
  -l kubescape.io/context=filtered,kubescape.io/workload-name=payment

To see the CVEs in a manifest:

kubectl get vulnerabilitymanifests <manifest-name> -n kubescape -o yaml

Limitations

In Use relies on eBPF, which has the following requirements and limits:

  • Linux nodes only. eBPF is a Linux kernel feature, so In Use does not work on Windows nodes.
  • Linux kernel 5.4 or later is required on each node.
  • Environments without node access do not support eBPF, so In Use is not available on serverless or node-restricted platforms.
  • Short-lived containers that exit before the learning period ends will not have In Use data.
  • Coverage depends on activity. Packages are only marked In Use if their files are accessed during the observation window. See How it works.

FAQ

Why does a workload show zero In Use vulnerabilities?
Either none of its vulnerable packages were accessed during the learning period, or ARMO doesn't have runtime data for it yet. Check whether the workload shows Missing runtime info.

Can I dismiss vulnerabilities that aren't In Use?
Treat them as lower priority, not as resolved. A package that wasn't used during the learning period can still be used later, for example by a rarely triggered code path.




Did this page help you?