Customize image scanning
You can customize how Prisma Cloud scans images and reports data.
Configuring the severity of reported CVEs
By default, Prisma Cloud reports all vulnerabilities. Setting the minimum reported severity lets you clean up the reported vulnerabilities to an actionable set.
To configure a minimum severity, install a new vulnerability rule, which overrides the default rule. Note that Prisma Cloud maps the Common Vulnerability Scoring System (CVSS) to a grading system that ranges from Low to Critical.
- Open Console, and go toDefend > Vulnerabilities > Policy.
- ClickAdd rule.
- Give your rule a name.
- In the table ofSeverity based actions, set theSeverityin each row to an appropriate level. For example, if you want to concentrate on just the most severe issues, set every row toCritical.
- View the scan reports for all the entities in your system.Go toMonitor > Vulnerabilities. All reported vulnerabilities match or exceed the severity setting in your custom rule.
Scanning custom components
Prisma Cloud lets you scan for insecure versions of proprietary software components.
First, augment Prisma Cloud’s Intelligence Stream with your own custom data that specifies a package type, name, and version number. Then configure Prisma Cloud to take action (alert, block) when the scanner finds this package in an image. By default, Prisma Cloud raises an alert when it detects a vulnerability in a custom component.
Prisma Cloud supports the following package types:
- Distro packages (deb, rpm).
- Nodejs packages.
- Python packages.
- Ruby gems.
- Java artifacts (JAR files).
For cases where Prisma Cloud does not offer built-in support for a package type, you can specify an MD5 hash for the file.
Defining a custom vulnerability
Define a custom vulnerability.
- Open Console.
- Go toManage > System > Custom Feeds.
- Click onCustom Vulnerabilities.
- Enter a name for your vulnerability..
- From the drop-down list, select a package type.For Debian packages, RPM packages, and shared libraries, selectpackage.If your package type is not supported, selectbinary.
- Enter the name of your package/binary.Package names can be specified using wild cards (*).
- Specify the range of package versions for which your rule applies.The following formats can be used to specify versions:RuleFormatExampleSpecific versionEnter a single multi-dot number.1.1Range of versions: Min and max are known.Enter two multi-dot numbers, separated by a dash.5.4-5.5Range of versions: Only min version is known.Specify a multi-dot number for the minimum version, followed by a dash, then a wild card.0.22.4.1-*Range of versions: Only max version is known.Specify a wild card (*) for the minimum version, followed by a dash, then a multi-dot number for the maximum version.*-0.22.4.1If package type is set to binary, the version fields are not visible. Instead, enter the MD5 hash for your file or binary.
- ClickSave.Your custom vulnerability is now available to the scanner.By default, an alert is logged if an image scan detects a component that you have designated as vulnerable. To see the default rule, go toDefend > Vulnerabilities > Images, and click on theDefault - alert all componentsrule. To change the default rule, select a different Alert or block threshold. To take a different action, create a new vulnerability rule.