Updated on 2024-07-12 GMT+08:00

Managing SWR Shared Images

The images in the shared image repository are from SWR. You can view details about all shared images.

Constraints

  • Only the HSS container edition supports this function.
  • Security scans can be performed only on Linux images.

Viewing SWR Shared Images

  1. Log in to the management console.
  2. Click in the upper left corner of the page, select a region, and choose Security > Host Security Service.
  3. In the navigation pane, choose Asset Management > Containers & Quota.
  4. Click the Container Images tab and click SWR shared image to view the shared image list.

    You can view the version, size, organization, security risks, and owner of a shared image.
    • Updating a shared image

      Click Update Shared Images from SWR to update the shared image list.

    • Filtering images of the latest version

      If you select Display latest image versions only, you can filter the latest images of all images.

Shared Image Security Scan

You can manually scan an SWR shared image in Valid state. The scan items are as follows:

Scan Item

Description

Vulnerability

Detects system and application vulnerabilities in images.

Malicious file

Detects malicious files in images.

Software information

Collects software information in an image.

File information

Collects file information in an image.

Baseline check

  • Configuration check:
    • Checks the images configurations of CentOS 7, Debian 10, EulerOS, and Ubuntu16.
    • Checks SSH configurations.
  • Weak password check: detects weak passwords in images.
  • Password complexity check: detects insecure password complexity policies in images.

Sensitive information

Detects files that contain sensitive information in images.

  • The paths that are not checked by default are as follows:
    • /usr/*
    • /lib/*
    • /lib32/*
    • /bin/*
    • /sbin/*
    • /var/lib/*
    • /var/log/*
    • */node_modules/*/*.md
    • */node_modules/*/test/*
    • */service/iam/examples_test.go
    • */grafana/public/build/*.js
    NOTE:

    On the View Report > Sensitive Information tab, click Configure Sensitive File Path to set the Linux path of the file that does not need to be checked. A maximum of 20 paths can be added.

  • No checks are performed in the following scenarios:
    • The file size is greater than 20 MB.
    • The file type can be binary, common process, or auto generation.

Software compliance

Detects software and tools that are not allowed to be used.

Basic image information

Detects service images that are not created using base images.

  1. Log in to the management console and go to the HSS page.
  1. In the navigation pane, choose Asset Management > Containers & Quota.
  2. Click the Container Images tab and click SWR shared image.
  3. Performs a security scan for a single image or multiple images.

    You can perform a security scan only when the status is Valid.

    • Single image security scan

      In the Operation column of the target image, click Scan to perform security scan.

    • Batch image security scan

      Select all target images and click Scan above the image list to perform security scan for multiple target images.

    • Full image security scan

      Click Scan All above the image list to perform a security scan for all images.

  4. The image security scan is complete, when the Scan Status changes to Completed and the Latest Scan Completed shows the latest task execution time.

Viewing the SWR Shared Image Vulnerability Scan Report

  1. Log in to the management console and go to the HSS page.
  1. In the navigation pane, choose Asset Management > Containers & Quota.
  2. Click the Container Images tab and click SWR shared image.
  3. In the Operation column of the target image, click View Report. The security scan report page is displayed.
  4. Choose Vulnerability Reports to view the vulnerability report.

    • Viewing vulnerability details

      Click the 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 the target vulnerability name to view the CVE ID, CVSS Score, and Disclosed Time.

    • Viewing vulnerability solutions

      In the Solution column of the row containing the target vulnerability, click the solution description to view the vulnerability solution details.

Viewing the Malicious Files Report of SWR Shared Images

  1. Log in to the management console and go to the HSS page.
  1. In the navigation pane, choose Asset Management > Containers & Quota.
  2. Click the Container Images tab and click SWR shared image.
  3. In the Operation column of the target image, click View Report. The security scan report page is displayed.
  4. Select Malicious Files to view the malicious files report.

    You can view the name, path, size, and description of the malicious file in the target image.

Viewing the SWR Shared Image Software Information Report

  1. Log in to the management console and go to the HSS page.
  1. In the navigation pane, choose Asset Management > Containers & Quota.
  2. Click the Container Images tab and click SWR shared image.
  3. In the Operation column of the target image, click View Report. The security scan report page is displayed.
  4. Choose Software Information to view the report.

    You can view the software name, type, version, and number of vulnerabilities in the image.

Viewing the SWR Shared Image File Information Report

  1. Log in to the management console and go to the HSS page.
  1. In the navigation pane, choose Asset Management > Containers & Quota.
  2. Click the Container Images tab and click SWR shared image.
  3. In the Operation column of the target image, click View Report. The security scan report page is displayed.
  4. Choose File Information to view the report.

    You can view the number of files in the target image, total file size, and details about the top 50 files in size.

Viewing the SWR Shared Image Baseline Check Report

  1. Log in to the management console and go to the HSS page.
  1. In the navigation pane, choose Asset Management > Containers & Quota.
  2. Click the Container Images tab and click SWR shared image.
  3. In the Operation column of the target image, click View Report. The security scan report page is displayed.
  4. Choose Unsafe Settings to view the baseline check report.

    You can view the unsafe configurations, password complexity policy detection, and common weak password detection results of the target image.

    • Viewing unsafe configurations and modification suggestions
      1. On the Unsafe Configurations tab page, select the target baseline.
      2. In the detection item column of the target detection item, click Description to view the detection item description and modification suggestions.
    • Common weak password detection
      1. Click Common Weak Password Detection.
      2. Configure weak passwords and click OK.

Viewing the SWR Shared Image Sensitive Information Report

  1. Log in to the management console and go to the HSS page.
  1. In the navigation pane, choose Asset Management > Containers & Quota.
  2. Click the Container Images tab and click SWR shared image.
  3. In the Operation column of the target image, click View Report. The security scan report page is displayed.
  4. Click the Sensitive Information tab to view the report.

    You can view the path, sensitive information, and risk level of the file that contains sensitive information in the target image.

    • Prompt for ignoring sensitive information

      In the Operation column of the target sensitive information file, click Ignore to ignore the sensitive information that you think is secure.

    • Configuring the sensitive file path
      1. Click Configure Sensitive File Path. The file path management page is displayed on the right.
      2. In the dialog box that is displayed, set the Linux path of the file that does not need to be checked and click OK.

        A maximum of 20 paths can be specified. One path occupies one line.

Viewing the SWR Shared Image Software Compliance Report

  1. Log in to the management console and go to the HSS page.
  1. In the navigation pane, choose Asset Management > Containers & Quota.
  2. Click the Container Images tab and click SWR shared image.
  3. In the Operation column of the target image, click View Report. The security scan report page is displayed.
  4. Choose Software Compliance to view the report.

    You can view the name, path, and image layer of non-compliant software.

Viewing the SWR Shared Image Base Images Information Report

  1. Log in to the management console and go to the HSS page.
  1. In the navigation pane, choose Asset Management > Containers & Quota.
  2. Click the Container Images tab and click SWR shared image.
  3. In the Operation column of the target image, click View Report. The security scan report page is displayed.
  4. Choose Base Images to view the report.

    You can view the name, version, and image layer path of a service image that is not created using a base image.