Skip to content

Container Registry Integration (ECR/GAR)#

This method imports the vulnerabilities of container images registered in a container registry (Amazon ECR or GCP Artifact Registry) into FutureVuls from the scan results on the registry side. You do not need to install a scanner. In the FutureVuls UI, Integrate with Container Registry (ECR) and Integrate with Container Registry (GCP Artifact Registry), which are displayed under Add Server on the Server / Product tab, correspond to this method.

Item Description
Target Container images registered in Amazon ECR or GCP Artifact Registry
Prerequisites Registration of AWS or GCP credentials in FutureVuls, and configuration on the registry side (see each section)
Registration destination When you specify an image name from Add Server, the container image is registered as a server in FutureVuls
Update timing The latest results are retrieved from the integrated service when a FutureVuls periodic automatic scan or manual scan runs. For Amazon ECR, FutureVuls also checks for important new Amazon Inspector findings every 15 minutes and imports them (see "Checking New Findings (Every 15 Minutes)". If you do not use Amazon Inspector, disable this check). In groups that have configured Inspector SBOM Export and authenticate the AWS integration with an API key, the 15-minute check does not import ECR findings, and the nightly SBOM Export does not run, so obtain SBOMs that include software without vulnerabilities with the "Inspector SBOM Batch Scan"

FutureVuls uses the registered credentials to retrieve the results scanned on the container registry side

A container registry is a storage location for container images. For how to scan container images with Trivy, see "Container Image Scan (Trivy)".

Perform the setup in the following order.

Order Task Work location Amazon ECR GCP Artifact Registry
1 Register credentials in FutureVuls The FutureVuls UI AWS external integration GCP external integration
2 Enable image scanning on the registry side The AWS or GCP console Configuration in AWS Configuration in GCP
3 Register the container image in FutureVuls The FutureVuls UI "Registering Images in FutureVuls" under "Scanning Amazon ECR" "Registering Images in FutureVuls" under "Scanning GCP GAR"
4 Run a scan and check the results The FutureVuls UI "Running a Scan" under "Scanning Amazon ECR" "Running a Scan" under "Scanning GCP GAR"

For information on supported scan targets, please refer to Supported Environments.

Scanning Amazon ECR#

Required IAM Policy

If your Amazon ECR image scanning is set to Enhanced scanning and you configured AWS authentication before the March 29, 2023 release, an update is required. Refer to Policies Used by FutureVuls and add inspector2:ListCoverage and inspector2:ListFindings as Actions to the FutureVulsAssumeRole IAM Policy.

Integrated Scan Results

For Amazon ECR enhanced scanning (Amazon Inspector) results, only vulnerabilities with a status of ACTIVE are integrated into FutureVuls (vulnerabilities with SUPPRESSED or CLOSED status are not integrated).

Configuration in AWS#

ECR image scanning has two types: basic scanning and enhanced scanning. If either one is enabled, FutureVuls can retrieve the scan results. FutureVuls recommends using enhanced scanning.

Item Basic scanning Enhanced scanning (Amazon Inspector)
Detection target OS packages OS packages and application libraries
Rescan trigger When an image is pushed, or a manual scan Images are also rescanned automatically when new vulnerabilities are published
Handling in FutureVuls Used when the enhanced scanning results cannot be retrieved Used preferentially
Required IAM permissions ecr:DescribeImageScanFindings inspector2:ListFindings, ecr:BatchGetImage, ecr:DescribeImageScanFindings
Setup procedure The following steps in this section "(Optional) Enhanced Scanning Configuration"

To use basic scanning, configure it as follows. Push the container image (Docker image) to be scanned to an ECR repository in advance. Select the repository in ECR in the AWS console and click Edit.

image

Configure the settings to automatically run a scan on push.

image

To scan a Docker image that has already been pushed, select the individual image and scan it.

image

(Optional) Enhanced Scanning Configuration#

In "Scanning configuration" of ECR in the AWS console, select "Enhanced scanning" as the scan type and save.

Scanning Configuration

For more details on enhanced scanning, please refer to the AWS Official Documentation: Scanning images to find vulnerabilities in OS and programming language packages with Amazon ECR and other resources.

(Optional) Import Amazon Inspector SBOM#

By using the Amazon Inspector SBOM Export feature, you can comprehensively identify OS packages and application libraries within ECR images, regardless of whether vulnerabilities are present.

For details, please refer to Import Amazon Inspector SBOM.

Registering Images in FutureVuls#

After completing the configuration in ECR, register the container image in FutureVuls.

  • From Server / Product tab > Add Server > Integrate with Container Registry (ECR), a list of repositories associated with the group's credentials is displayed.
  • After selecting one or more repositories to register, choose whether to use the latest tag for each repository. If you choose not to use the latest tag, enter the tag name.
    • If you select "Use Latest Tag", the image with the most recently uploaded tag is always scanned.
    • If you do not use the latest tag, the image with the tag name you entered is always scanned.
  • Click Submit.

ECR Add Button

ECR Registration Screen

Running a Scan#

  • Once the image registration is complete, a "Manual Scan" button will appear on the server's details tab. To check the Amazon ECR and Amazon Inspector findings immediately after registration, click this button. After that, the latest results are retrieved from ECR when a FutureVuls periodic automatic scan or manual scan runs.
  • In groups where you have configured Import Amazon Inspector SBOM, the "Manual Scan" in the server details does not run SBOM Export. To import the latest SBOM, including software without vulnerabilities, right after registration, run the "Inspector SBOM Batch Scan" in Group Settings > Group, and check the result with the scan type SBOM Scan in Group Settings > Scan History. For details, refer to "Start Automatic Integration" in Inspector Integration. For a list of the triggers for retrieving findings and SBOMs, see "Amazon Inspector Integration > When Findings and SBOMs Are Retrieved".

FutureVuls Detection Flow and Troubleshooting

Detection Flow

Vulnerability detection for ECR images is performed in the following order:

  1. Enhanced Scanning (Inspector2 Enhanced Scanning) is used preferentially. For multi-architecture images, findings are retrieved for each child image (per-architecture image).
  2. If results cannot be obtained with Inspector2, it falls back to Basic Scanning (ECR Basic Scanning).
  3. An error occurs if results cannot be obtained with either method, or if a child image is past its scan eligibility period or has not finished scanning (the software and tasks of that image are not updated).

Troubleshooting

If vulnerabilities are not detected, please check the following:

  • Repository Name: Confirm that the repository name registered in FutureVuls is correct.
  • Scan Setting Activation: Ensure that either Enhanced Scanning (Inspector2 Enhanced Scanning) or Basic Scanning (ECR Basic Scanning) is enabled.
  • IAM Permissions: Verify that the AWS credentials registered in FutureVuls have the following permissions.

    • For Basic Scanning: ecr:DescribeImageScanFindings
    • When registered with "Use latest tag": ecr:DescribeImages
    • For Enhanced Scanning: inspector2:ListFindings, ecr:BatchGetImage, ecr:DescribeImageScanFindings
  • Scan Eligibility Period: Inspector2 automatically excludes images from scanning (SCAN_ELIGIBILITY_EXPIRED) after a certain period has passed since they were pushed. For multi-architecture images, the scan results in an error if even one child image is past its scan eligibility period. Push a new image (if you have not selected "Use Latest Tag", push it with the registered tag).

    • Check with AWS CLI: aws inspector2 list-coverage --filter-criteria '{"resourceType":[{"comparison":"EQUALS","value":"AWS_ECR_CONTAINER_IMAGE"}],"ecrRepositoryName":[{"comparison":"EQUALS","value":"<repository_name>"}]}' --query 'coveredResources[*].{status:scanStatus.statusCode,reason:scanStatus.reason}'

Scanning GCP GAR#

Guidance on Migrating from Container Registry

With the end of support for GCP's Container Registry, FutureVuls has discontinued support for Container Registry images. We recommend migrating to Artifact Registry. For details, please refer to the Google Cloud announcement on the Container Registry deprecation.

Configuration in GCP#

In the Artifact Registry settings, enable vulnerability scanning.

Enable Scanning

Create a repository with the Docker format.

Register Repository

Register the image to be scanned in the created repository. Setup is complete once Container Analysis (the vulnerability scanning feature of Google Cloud) detects vulnerabilities, as shown below (the initial detection may take some time).

Register Image

Registering Images in FutureVuls#

After completing the configuration in Artifact Registry, register the container image in FutureVuls.

  • Select Server / Product tab > Add Server > Integrate with Container Registry (GCP Artifact Registry)

    Select Container Registry Integration

  • Select one or more images to register

    • If you check "Use Latest Tag," the image with the most recent update time will be scanned.
    • If you uncheck "Use Latest Tag" and specify a tag, the image with the specified tag name will always be scanned.

    Select Container Registry Integration

  • Click Submit.

Running a Scan#

Once the image registration is complete, a "Manual Scan" button will appear on the server's details tab. To check the results immediately after registration, click this button. After that, the latest results are retrieved from Artifact Registry when a FutureVuls periodic automatic scan or manual scan runs.

Troubleshooting#

Check the common causes and fixes on the following pages.