: Scan images in IBM Cloud Container Registry
Focus
Focus

Scan images in IBM Cloud Container Registry

Table of Contents
End-of-Life (EoL)

Scan images in IBM Cloud Container Registry

To scan a repository on IBM Cloud Container Registry, create a new registry scan setting.

Create a new registry scan

Prerequisites:
You have installed a Defender somewhere in your environment.
  1. Open Console
  2. Set up credentials so that Prisma Cloud can access the images in your registry.
    1. Go to
      Manage > Authentication > Credentials Store
      .
    2. Click
      Add credential
      .
    3. Enter a name.
    4. In
      Type
      , select
      IBM Cloud
      .
    5. In
      Account GUID
      , enter the GUID for your IBM Cloud account. See the IBM Cloud Docs to learn how to get the GUID of an account
    6. In
      API Key
      , enter your API key. See the IBM Cloud Docs to learn how to create a service ID for Prisma Cloud, and then create an API key for the service ID.
    7. Click
      Save
      .
  3. Go to
    Defend > Vulnerabilities > Images > Registry settings
    .
  4. Click
    Add registry
    .
  5. In the dialog, enter the following information:
    1. From the
      Version
      drop-down list, select
      IBM Cloud Container Registry
      .
    2. In
      Registry
      , enter the registry address for your region.
      For example, if you use the us-south registry, enter
      us.icr.io
      .
    3. In
      Namespace
      , enter the namespace for your image.
      For images in private registries, this field is mandatory. For images in IBM’s public registry, leave this field blank. Wildcards are not supported for this field.
      IBM provides namespaces to help you organize your registries. Namespaces are appended to the registry URL as follows: registry.<REGION>.icr.io/<NAMESPACE>
    4. In
      Repository name
      , specify the repository to scan.
      If you leave this field blank or enter a wildcard, Prisma Cloud finds and scans all repositories in the registry.
      If you specify a partial string that ends with a wildcard, Prisma Cloud finds and scans all repositories that start with the partial string.
      If you specify an exact match, Prisma Cloud scans just the specified repository.
    5. In
      Tag
      , enter an image tag.
      If you leave this field blank or enter a wildcard, Prisma Cloud finds and scans all images in the repository.
      If you specify a partial string that ends with a wildcard, Prisma Cloud finds and scans all images that match the partial tag.
      If you specify an exact match, Prisma Cloud scans just the specified image with specified tag.
    6. In
      Credential
      , select the credential you just created.
    7. In
      OS type
      , specify whether the repo holds
      Linux
      or
      Windows
      images.
    8. In
      Scanners scope
      , specify the collections of defenders to use for the scan.
      Console selects the available Defenders from the scope to execute the scan job according to the
      Number of scanners
      setting. For more information, see deployment patterns.
    9. In
      Number of scanners
      , enter the number of Defenders across which scan jobs can be distributed.
    10. Cap
      the number of images to scan.
      Specify the maximum number of images to scan in the given repository, sorted according to last modified date. To scan all images in a repository, set
      Cap
      to 0. For a complete explanation of
      Cap
      , see the table in registry scan settings.
    11. Click
      Add
      .
  6. Click the
    Save
    button.

Results

Verify that the images in the repository are being scanned.
  1. Go to
    Monitor > Vulnerabilities > Images > Registries
    .
    A progress indicator at the top right of the window shows the status of the current scan. As the scan of each image is completed, its findings are added to the results table.
  2. To get details about the vulnerabilities in an image, click on it.
    To force a specific repository to be scanned again, select
    Scan
    from the top right of the results table, then click on the specific registry to rescan.

Recommended For You