Artifact Registry vulnerability assessment is a detection service that alerts you to vulnerabilities in your deployed container images.
This detection service generates vulnerability findings for container images under the following conditions:
- The container image is stored in Artifact Registry.
The container image is deployed to one of the following assets:
- Google Kubernetes Engine cluster
- Cloud Run service
- Cloud Run job
- App Engine
Artifact Registry vulnerability assessment surfaces findings for vulnerabilities that are
classified as HIGH or CRITICAL severity. Artifact Registry vulnerability assessment won't
generate findings for vulnerabilities that have a lower severity.
If you enable Artifact Registry vulnerability assessment with Security Command Center, Artifact Registry vulnerability assessment automatically writes high and critical findings to Security Command Center. If your container images have vulnerabilities categorized as medium or low, you can manage them in the Artifact Registry vulnerability assessment, but Security Command Center doesn't display them.
Artifact Registry vulnerability assessment only scans images that were pulled in the last 30 days. Artifact Registry vulnerability assessment continues to scan the image and create new findings until the image has not been pulled for more than 30 days.
After Artifact Registry vulnerability assessment findings are generated, they remain available for you to query up to 30 days after the last vulnerability finding update. For more information about Security Command Center data retention, see Data retention.
Enable Artifact Registry vulnerability assessment
For Artifact Registry vulnerability assessment to generate findings in Security Command Center for deployed container images stored in Artifact Registry, the Container Scanning API must be enabled for your project and Security Command Center must be activated at the organization level.
If you haven't enabled the Container Scanning API, do the following:
In the Google Cloud console, go to the Container Scanning API page.
Select the project you want to enable the Container Scanning API for.
Click Enable.
Security Command Center displays findings for scanned vulnerable container images that are actively deployed to the applicable runtime assets. However, the detection service behaves differently depending on when you enabled Security Command Center and when you enabled the Container Scanning API.
| Enablement scenario | Detection service behavior |
|---|---|
|
You enabled Security Command Center after you enabled the Container Scanning API and deployed a container image. |
Artifact Registry vulnerability assessment generates findings for existing vulnerabilities found with previous Artifact Registry scans within 24 hours of enablement. |
|
You enabled Security Command Center and deployed a container image before you enabled the Container Scanning API. |
Artifact Registry vulnerability assessment doesn't automatically generate vulnerability findings for container images you deployed before enabling the API until a new scan is triggered. To manually trigger a new scan, redeploy the container image to the same runtime resource. Artifact Registry vulnerability assessment immediately generates findings if any vulnerabilities are detected during the scan. |
|
You enabled Security Command Center and the Container Scanning API before you deployed a container image. |
The newly deployed container image is immediately scanned in Artifact Registry and Artifact Registry vulnerability assessment generates findings if any vulnerabilities are detected by the scan. |
Disable Artifact Registry vulnerability assessment
To disable Artifact Registry vulnerability assessment, do the following:
In the Google Cloud console, go to the API/Service Details page for the Container Scanning API.
Select the project you want to disable the Container Scanning API for.
Click Disable API.
Security Command Center doesn't display findings for vulnerabilities detected in future container image scans. Security Command Center keeps Artifact Registry vulnerability assessment findings active for 30 days after the last vulnerability finding update. The findings are then deactivated, and they're deleted 7 days after deactivation. For more information about Security Command Center data retention, see Data retention.
You can also disable Artifact Registry vulnerability assessment by disabling the Vulnerability Assessment source ID in the Security Command Center settings. However, we don't recommend this. Disabling the Vulnerability Assessment source ID will disable all the detection services classified under the Vulnerability Assessment source ID. Therefore, we recommend disabling the Container Scanning API with the preceding procedure.
View Artifact Registry vulnerability assessment findings in the console
-
In the Google Cloud console, go to the Findings page of Security Command Center.
- Select your Google Cloud project or organization.
- In the Quick filters section, in the Source display name subsection, select Vulnerability Assessment. The findings query results are updated to show only the findings from this source.
- To view the details of a specific finding, click the finding name in the Category column. The details panel for the finding opens and displays the Summary tab.
- On the Summary tab, review the details of the finding, including information about what was detected, the affected resource, and—if available—steps that you can take to remediate the finding.
- Optional: To view the full JSON definition of the finding, click the JSON tab.