Vulnerability Management
Overview
Sysdig Secure’s Vulnerability Management module provides:
- Accurate Vulnerability Risk Assessment at Scale: Provides precise insights into vulnerabilities within container images and running containers, including CVSS vector, score, fix age, and expert insights from sources such as VulnDB.
- Access to Public Exploits: Lets you identify known exploits to validate security controls and patch efficiently.
- Prioritized Risk Data: Focuses on the vulnerabilities tied to the packages loaded at runtime, ensuring the most critical threats are addressed first.
- Risk Acceptance: Ensures your feed is focused on what matters most and free from noise, by allowing you to accept risk when the vulnerability matching does not apply for your particular deployment, or you want to postpone remediation.
The Vulnerability Management engine supports:
- CI/CD pipeline Scanning
- Registry Scanning
- Runtime Image Scanning
- Policies
- Notifications
- Reporting for runtime
- Software Lifecycle and End-of-Life Visibility
- Vulnerability Catalog
This module replaces the legacy Scanning module from earlier versions of Sysdig Secure.
Understand Vulnerability Management Stages
To create an effective vulnerability management plan, it’s important to recognize the various stages of the lifecycle that need to be addressed.
Key Concepts
During the build phase, software vulnerabilities may be introduced when container images are defined and assembled. Container images are, by definition, immutable. Altering the contents of an image will update the ImageID and, thus, will be considered a different image by Sysdig Secure.
Even though unique container images (ImageIDs) cannot be modified, Sysdig can identify new vulnerabilities in running containers (for example, in Kubernetes workloads) as security feeds are continuously updated. For instance, a container image with no known vulnerabilities during its build phase might be affected by a critical vulnerability discovered ten days after being deployed into the runtime. The image remains unchanged, but new security information related to the software it contains has been found.
Sysdig uses the same fundamental concepts to analyze the contents of an image (SBOM) and match vulnerabilities but treats images differently based on their location. Sysdig can analyze the vulnerabilities of images in a development pipeline, stored in a container image registry, or used as the template for a running container, known as runtime workloads.
Stages: Pipeline - Registry - Runtime
Pipeline
Any analysis conducted before the registry phase is considered a pipeline. A clear example is CI/CD builds (Jenkins, GitHub, etc.), but also the execution of the sysdig-cli-scanner binary performed on a developer laptop or using a custom scanning script.
- Pipeline images do not have runtime context.
- The scan happens outside of the execution nodes where the agent is installed:
- CI/CD
- External instrumentation
- Custom scripts or image scanning plugins
- Pipeline scans are one-off vulnerability reports; the information is a static snapshot with its corresponding execution date.
- If you want to evaluate a newer version of the image or reevaluate the same image with newer feed information, the analysis needs to be triggered again.
- Images analyzed using the sysdig-cli-scanner will show up in the Pipeline section of the vulnerability management interface.
Registry
Container Registry scanning allows you to integrate Sysdig with image registries from a range of vendors. Registry scanning provides an extra layer of defense between pipeline and runtime, where:
- Software that sits in the registry before being deployed is checked for newly discovered vulnerabilities
- Third-party software that may have been installed without going through pipeline scanning will be checked
Registry scans occur as scheduled through a cron job in the installation Helm chart once per week (Saturdays at 6:00 AM) by default.
- Batch scanning is done asynchronously and separately from the development pipeline; regardless of the time it takes to scan the batch, the pipeline is unaffected.
See Install Registry scanner(s).
Runtime
Runtime workloads are executed using a container image. Accessing the Runtime section of the Vulnerabilities menu, you will be able to see those images and their vulnerability and policy evaluation.
- Runtime workloads are located in an execution node and are being monitored by a Sysdig agent/node analyzer, for example a Kubernetes node that is instrumented using the Sysdig agent bundle.
- Runtime workloads will offer a live, auto-refreshing state. This means:
- Workloads that are no longer running will be removed from the runtime view
- Vulnerabilities and policies evaluations will automatically refresh without any user interaction, offering always the most up-to-date information known. See How New Vulnerabilities Appear in Your Findings.
- Runtime workload have a runtime context associated with them, i.e. Kubernetes cluster and namespace.
- Workloads analyzed during runtime will show up in the Runtime section of the vulnerability management interface.
See Runtime.
How New Vulnerabilities Appear in Your Findings
You don’t need to rescan your runtime resources to see a newly published vulnerability.
Sysdig keeps a record of the packages on each runtime resource, such as a Kubernetes workload, container workload, or host. When Sysdig’s vulnerability feeds add a new vulnerability, Sysdig checks those packages and adds a finding to every affected resource. Findings also update when the feeds change an existing vulnerability, for example when a fix becomes available.
Sysdig also refreshes the findings on every runtime resource at least once a day, even when nothing has changed.
A new finding shows in the Status column of Vulnerability Findings for its first 24 hours, so you can spot recent additions.
Where your images and hosts are scanned decides when new vulnerabilities appear:
| Where | When new vulnerabilities appear |
|---|---|
| Runtime resources | Automatically, after the next vulnerability feed update |
| Registry images | After the next scheduled registry scan, once a week by default |
| Pipeline scans | Only when you run the scan again |
For example, suppose a critical vulnerability is published for an OpenJDK version. After Sysdig’s vulnerability feeds include it, every running workload and host that has the affected OpenJDK version shows the new finding. You don’t need to take any action. The same image in a registry shows the vulnerability after the next scheduled registry scan. An earlier pipeline scan of the image doesn’t change.
How quickly a new vulnerability reaches your findings depends on two things. The first is when the vendor publishes data that Sysdig can read. The second is when Sysdig next updates its vulnerability feeds. See Vulnerability Feed Synchronization Interval.
Sysdig’s record of packages on a resource updates each time the resource is scanned, for example when a workload starts or when the host scanner runs. Packages that you upgrade or remove leave your findings after the next scan. For scan schedules, see Scanning Guidelines.
Findings are based on package versions. If you mitigate a vulnerability without upgrading the package, for example with a configuration change or a runtime flag, the finding stays open. To record the mitigation, accept the finding.
Asset Types: Workload, Host, and Container
The way things are scanned and how results are filtered relies on how Sysdig defines and uses the concepts of “image,” “workload,” “host,” and “container.”
Image
Image is not officially an asset type, but is the primary unit underlying all types of scanning.
In Pipeline and Registry scanning, Sysdig scans images used in container-based environments.
In Runtime, images have the context of either Kubernetes or the container host environment.
These images are strictly evaluated based on the image definition without reference to the deployed context (neither runtime nor orchestrator).
All images are extracted into a Software Bill of Materials (SBOM) format that is compatible with the CycloneDX standard. See CycloneDX for details.
Workload
When scanning images that are deployed in Kubernetes environments, the scanner evaluates the image in the context of the container running in a Kubernetes workload. This context makes it contextually different from images and containers.
Host
A host is a full-stack Operating System (OS) running on virtual infrastructure such as Cloud IaaS or Virtual Machines. The host will also have an SBOM, without the layers that are seen in images. All the context data for a host is relative to a full-stack OS with network connectivity (OS, Host Name, IPs, etc.).
Container
When Sysdig scans a container (either agentlessly or with the agent) it extracts a container from a Host image via the filesystem. In container scans, only the parent host context is available, not the runtime and orchestration context.
To be scanned by Sysdig, containers must all be compliant with the Open Container Initiative (OCI). See OCI for details.
Usage
When defining a Vulnerability policy or filtering Runtime vulnerability results, you can define the asset type to use.
