Container Vulnerability Response turns vulnerabilities found in container images into container vulnerable items that someone can act on. Setup has three parts: an image scan on a Linux MID Server, repository access for that scan, and the rules that group findings and decide who receives them and how quickly they should be fixed. The sections cover them in that order.
Check the prerequisites before you start the scan
For the concepts behind the application, read the container vulnerability overview first. The image scan itself belongs to the Discovery and Service Mapping Patterns application. Setup requires Discovery and Service Mapping Patterns 1.7.0 or later, CMDB CI Class Models 1.43.0 or later and Visibility Content 6.7.2 or later.
The MID Server that runs the scan has its own list. It must run Linux, with 8GB of RAM and 4GB of that given to the Java Virtual Machine. It needs the Scan Container Images capability, not the All setting, and it must reach the image repository. Aqua Trivy 0.44.0 or later is required, and 0.68.2 is the last version validated.
Two steps come before the scan. Run Docker or Kubernetes discovery first, because the scan builds on the container records that discovery collects. If your images sit in Amazon ECR, run Amazon ECS resource discovery too. The AWS cloud service account it creates is reused by the image scan.
Enable the scan and read its status
Enabling the scan is a system property change that needs the admin role. Search the system properties list for sn_itom_pattern.container_image_scan and set its value to true.
Progress shows in the container image scan status list, which holds one row per image. None means the image has not been scanned yet. In Progress means a scan is running. Scanned means it finished. Error means it failed, and the message column says why. Skipped means the image address was malformed or could not be reached. An image left In Progress blocks the next scan from starting, so clear those first. A finished image’s record lists its operating system packages with each name, version and maintainer. That list is the quickest check that the scanner saw what you expected.
What the scan writes to the CMDB
The scan creates application records from the image CI class and links them to the containers they run in. Four records hold the detail.
| Record | What it holds |
|---|---|
| Container image scan status | Image, message, CI class, discovery status and scan status |
| Container image OS packages | Package name, package version and package maintainer |
| Container environment variables | Container, key and value for each environment variable |
| Container enrich scripts | Active flag, CI type, execution order and script name |
Enrich scripts run in their order value. In the 1.0.98 collection version they are supported for Microsoft SQL Server. SQL Server application names follow a fixed shape: the application table name, an at sign, then the container name. Check that your names match this shape before you rely on the relationships.
Connect private and cloud registries
From Discovery and Service Mapping Patterns 1.18.0, the scan reaches public repositories, self-hosted private repositories and Amazon ECR repositories, both public and private. Traffic can pass through a proxy MID Server once its proxy parameters are set correctly. Internal registries that should skip the proxy need a separate proxy bypass setting for container registries.
Self-hosted private repositories need an image repository credential with four fields. The Name is a label you choose. The User name and Password belong to an account with read permission on the repository. The Repository is the registry’s fully qualified domain name. Test the credential straight away. If the scan shows an image as Skipped, check the Repository value first, because Skipped means the image address is malformed or unreachable.
Two later versions add control over the results. From 1.27.0 you choose whether software packages link to containers or to images. From 1.30.2 you can map MID Servers to particular repositories, which helps when the network boundary decides which server can reach which registry.
Pull in Wiz runtime exposure across clusters
A chain of three Wiz integrations creates container vulnerable items for images deployed to any number of clusters. Earlier behaviour stopped at 16. The chain installs automatically, is active by default for entitled customers, and runs in sequence.
The Wiz Container Grouped Vulnerability Integration runs daily and stores a Source ID for each active image. A Source ID is tied to the repository that holds the image, so the same image name in two registries counts as two images. The Wiz Container Deployment Context Integration starts once that first step succeeds. It maps each image to its clusters, namespaces and services, and it creates missing items when a new deployment appears. The Wiz Container Vulnerability Integration then creates the items from those mappings without making duplicates.
Granularity keys decide what one finding is. With no keys set, a finding combines the image repository, the vulnerability and the image data the scanner imported. Existing customers keep their Registry, Namespace, Cluster and Service keys. Those keys stay locked once container vulnerability data exists, unless the instance holds none. New customers should set them before the first import. If clusters play no part in your item logic, set sn_vul_wiz.deployment_context_gate_writes to false to switch off the grouped and deployment context integrations.
Group findings into remediation tasks
Remediation task rules gather container vulnerable items into remediation tasks. You create them in the Container Vulnerability Response administration menu with the App-Sec Manager role. A rule has a name, an active flag, a description, an optional condition, and a case sensitive box that is off by default. Its Group by section takes up to six condition sets, each pairing a field with a value to group on, and the rule can read from the item, its Docker image or its vulnerability. Assignment can follow a group-by field or a fixed user group.
When a rule matches, the item joins an open task with the same assignment group if one exists. If none exists, a new task is created. The new task’s short description field holds 160 characters at most, so long vulnerability summaries get truncated in the list.
Rules run when an item is created or imported, when a closed item is reopened to Open or to Under Investigation, and when its configuration item or vulnerability changes. Reapply re-evaluates the open tasks a rule created, deleting and recreating them, and it leaves tasks outside Open alone. A new rule has no effect on existing data until you reapply it.
State travels both ways, at different speeds. Moving a task to Open, or from Open to Under Investigation, passes that state to its items at once. A task takes a state from its items when those items share that state and are Deferred or Closed-fixed, and a job that runs every 15 minutes performs that check.
Keep the set small and the conditions distinct.
Assign items, set targets and score risk
Assignment rules send items to a user group. The first rule whose condition matches is the one applied, so rule order matters. Defining them needs the manage assignment rules role, and reapplying them needs the container reapply role. Since version 2.13, conditions can use scanner fields on container image records: cloud account IDs, image namespaces, registry, hosts, labels, and the vendor status of a resolved vulnerability, such as the version in which a fix arrived. Items that are not Open, and items assigned by hand, sit outside the rules. The rules do not consider items with a manual assignment type.
Remediation target rules set how many days an item has to be fixed, with an optional reminder before that date. Agree those numbers with the team doing the work before you publish them.
Vulnerability calculators set starting values on items and run in order, so the first matching calculator applies. Vulnerability Severity uses the normalised severity of the vulnerability. Default Risk Calculator uses the risk rule, and from version 2.10 it writes each weighted field’s contribution and the final score into the item’s Notes section. The base ranges turn a score into a rating: 90 to 100 is rating 1, 70 to 89 is rating 2, 40 to 69 is rating 3, 1 to 39 is rating 4, and 0 is rating 5. From version 18.0 those ranges live in the Risk Score Weights table, where you can add entries for an existing risk rating type.
Check the setup with the quick start tests
Six quick start tests cover assignment rules, exception rules, the false positive flow, remediation target rules, the request exception flow and the vulnerability calculators. Run them after each upgrade or configuration change. The test execution property is disabled by default, so run them on development, test or other non-production instances.
Frequently asked questions
Can the scan reach a private registry? Yes. Give the scan an image repository credential with read permission and the registry’s fully qualified domain name. If the registry is internal and should bypass a proxy, set up the proxy bypass for container registries as well.
Will a new remediation task rule change existing tasks? Not by itself. A new rule runs against new imports and updates. Reapply re-evaluates the open tasks for that rule, deleting and recreating them, and leaves tasks outside Open as they are.
Why did an assignment rule skip an item? Items outside the Open state are excluded, and items assigned by hand are not reassigned. Items with a manual assignment type are not considered by the rules.
Does the 16-cluster limit still apply to Wiz-sourced images? No. The chained Wiz integrations removed that limit, so an image deployed across any number of clusters can produce container vulnerable items.