Scenario
For details about CI/CD image security scans, see CI/CD Image Security Scan Overview.
To perform CI/CD image security scans, you need to configure CI/CD access first. For details, see Accessing CI/CD.
After the CI/CD access configuration is complete, HSS performs an image security scan during project building in Jenkins Pipeline, and displays the scan results on the HSS console for you to check and eliminate image security risks in a timely manner.
This section describes how to view and export CI/CD image scan results.
Viewing CI/CD Image Scan Results
- Log in to the management console.
- In the upper left corner of the page, select a region, click , and choose Security & Compliance > HSS.
- In the navigation pane, choose .
- Click the CI/CD Access Settings tab.
- In the Operation column of a CI/CD identifier, click View Details to go to the CI/CD image scan result page.
- (Optional) Select Display latest image versions only to view images of the latest version.
Figure 1 Displaying latest image versions only
- In the Security Risks column of an image, view the risk status of the image.
- In the Operation column of the image, click View Results. On the displayed image scan result page, view the detailed results. For more information, see Table 1.
Figure 2 Image scan result
Table 1 Image scan result parameters
Parameter |
Description |
Basic Information |
Displays basic information about an image, including the image name, image tag, image size, number of vulnerabilities, last update time of the image tag, and last scan completion time. |
Vulnerability Reports |
Displays the scan results of system vulnerabilities and application vulnerabilities.
- Viewing vulnerability details
Click a vulnerability name to go to the vulnerability details page and view the basic information and affected images.
- Viewing the CVE ID, CVSS Score, and Disclosed Time of a vulnerability
Click in front of a vulnerability name to view its CVE ID, CVSS score, and the time when it was disclosed.
- Viewing vulnerability solutions
In the Solution column of a vulnerability, click the solution description to view the vulnerability solution details.
|
Malicious Files |
Displays the scan results of malicious image files, including the malicious file names, paths, and file sizes. |
Software Information |
Displays the statistical results of image software information, including the software names, types, versions, and number of software vulnerabilities.
Click next to a software name to view the software vulnerability name, repair urgency, and solution. |
File Information |
Displays the statistical results of image file information, including the total number of files, total file size, and details about the top 50 files. |
Unsafe Settings |
Displays the image baseline check results, including the configuration check, password complexity policy check, and common weak password check results.
- Viewing unsafe settings and suggestions
- On the Unsafe Configurations tab page, select a baseline.
- In the detection item column of a detection item, click Description to view the detection item description and modification suggestions.
- Customizing common weak passwords
- Click the Common Weak Password Detection tab and click Manage Weak Password.
- Configure weak passwords and click OK.
|
Sensitive Information |
Displays the scan result of sensitive image information, including the risk levels, image paths, file paths, and sensitive information.
To add the paths of sensitive files that are not detected, choose Configure Sensitive File Path and add the paths to be filtered.
- Only Linux system file paths can be filtered.
- A maximum of 20 paths can be added. Put each path on a separate line.
- Example: /usr/ or /lib/test.txt.
|
Software Compliance |
Displays the scan results of non-compliant image software, including the non-compliant software name, software version, path, and image layer information. |
Base Images |
Displays the scan results of service images that are not built using basic images. The scan results include image names, versions, and image paths. |
Exporting Image Vulnerability or Baseline Scan Results
- On the Container Images tab, click CI/CD Images. Click Export in the upper left corner of the image list.
To export the vulnerability or baseline scan result of a specified image, find the image using the search box above the image list and then click Export.
- Choose Export Vulnerability or Export Baseline.
- View the export status in the upper part of the container management page. After the export is successful, obtain the exported information from the default download address on the local server.
Do not close the browser page during the export. Otherwise, the export task will be interrupted.