Triage and remediate CVEs for Supply Chain Security Tools - Scan

This topic explains how you can triage and remediate common vulnerabilities and exposures (CVEs) related to Supply Chain Security Tools (SCST) - Scan.

Confirm that the Supply Chain stopped due to failed policy enforcement

To confirm that the Supply Chain failure is related to policy enforcement:

  1. Verify that the status of the workload is MissingValueAtPath, because of waiting for a .status.compliantArtifact from either the SourceScan or ImageScan, by running:

    kubectl describe workload WORKLOAD-NAME -n DEVELOPER-NAMESPACE
    
  2. Describe the SourceScan or ImageScan to determine what CVEs violated the ScanPolicy by running:

    kubectl describe sourcescan NAME -n DEVELOPER-NAMESPACE
    kubectl describe imagescan NAME -n DEVELOPER-NAMESPACE
    

Triage

The goal of triage is to analyze and prioritize the reported vulnerability data to discover the appropriate course of action to take at the remediation step. To remediate efficiently and appropriately, you need context for the vulnerabilities that are blocking your supply chain, the packages that are affected, and the impact they can have.

During triage, review which packages are impacted by the CVEs that violated your scan policy. Use Supply Chain Choreographer in Tanzu Developer Portal to examine your supply chain, including scans, scan policy, and CVEs.

You can also use the Tanzu CLI Insight plug-in to query packages, vulnerabilities, and create vulnerability analysis. For more information, see Tanzu CLI Insight plug-in.

During this stage, VMware recommends that you review information pertaining to the CVEs from sources such as the National Vulnerability Database and the release page of a package.

Remediate

After triage is complete, the next step is to remediate the blocking vulnerabilities quickly. Some common methods for CVE remediation are as follows:

  • Updating the affected component to remove the CVE
  • Amending the scan policy with an exception if you decide to accept the CVE and unblock your supply chain

Update the affected component

Vulnerabilities that occur in older versions of a package might be resolved in later versions. Apply a patch by upgrading to a later version. You can further adopt security best practices by using your project’s package manager tools, such as go mod graph for projects in Go, to identify transitive or indirect dependencies that can affect CVEs.

Amend the scan policy

If you decide to proceed without remediating the CVE, such as when a CVE is actually a false positive or when a fix is not available, you can amend the ScanPolicy to ignore one or more CVEs. For information about common scanner limitations, see Vulnerability Scanner limitations. For information about templates, see Writing a policy template.

Under role-based access control (RBAC), users with the app-operator-scanning role that is part of the app-operator aggregate role, have permission to edit the ScanPolicy. For more information, see the Detailed role permissions breakdown.

check-circle-line exclamation-circle-line close-line
Scroll to top icon