> [!NOTE]
> Standard, Premium, and Enterprise (Deprecated) [service tiers](https://docs.cloud.google.com/security-command-center/docs/service-tiers.md.txt)

> [!CAUTION]
> The Security Command Center Enterprise service tier will shut down on May 21, 2027. If your organization uses the Enterprise service tier, then the organization will automatically move to the Premium service tier on or after May 21, 2027. Contact your account representative or a [Google Cloud sales specialist](https://cloud.google.com/contact) if you have questions.

Vulnerability Assessment for Google Cloud lets you discover software vulnerabilities and exposed secrets
in Google Cloud resources without installing agents. Vulnerability Assessment for Google Cloud
scans running Compute Engine VM instances, nodes in
[GKE Standard](https://docs.cloud.google.com/kubernetes-engine/docs/resources/autopilot-standard-feature-comparison.md.txt)
clusters, containers running in GKE Standard and
GKE Autopilot clusters, and containers running in
Cloud Run workloads ([Preview](https://cloud.google.com/products/#product-launch-stages)).

## How Vulnerability Assessment for Google Cloud works

The types of resources scanned depend on the Security Command Center service tier, and
include the following:

- Running Compute Engine VM instances
- Nodes in [GKE Standard](https://docs.cloud.google.com/kubernetes-engine/docs/resources/autopilot-standard-feature-comparison.md.txt) clusters
- Containers running in GKE Standard and GKE Autopilot clusters.
- Containers running in Cloud Run services, active revisions, jobs, and worker pools ([Preview](https://cloud.google.com/products/#product-launch-stages)).

For VM instances and GKE clusters, Vulnerability Assessment for Google Cloud works by
cloning your VM instance disks, mounting them in another secure VM instance, and
scanning them with [SCALIBR](https://github.com/google/osv-scalibr). The VM
instance clone has the following properties:

- It's created in the same region as the source VM instance.
- It's created in a Google-owned project, so it doesn't add to your costs.

To help you identify vulnerabilities in Cloud Run resources,
Vulnerability Assessment for Google Cloud correlates data from the following sources for
Cloud Run workloads ([Preview](https://cloud.google.com/products/#product-launch-stages)):

- Scan occurrences for container vulnerabilities and secrets from Artifact Analysis.
- Information about active Cloud Run resources from [Cloud Asset Inventory](https://docs.cloud.google.com/asset-inventory/docs/overview).

The generated findings are attached directly to the active Cloud Run
service, job, or worker pool.

### Capability differences between service tiers

The following Vulnerability Assessment for Google Cloud capabilities vary depending on the
service tier:

- The scanning frequency
- The severity of findings that are created
- Which findings are enriched with Mandiant CVE assessment data
- The time until a finding is marked `INACTIVE`

See [Findings generated by Vulnerability Assessment for Google Cloud](https://docs.cloud.google.com/security-command-center/docs/vulnerability-assessment-google-cloud.md.txt#findings) for more information
about these differences.

### Limitations

Consider the following limitations when you identify resources that you want to
scan:

#### Compute Engine and disks

- The [Security Command Center service agents](https://docs.cloud.google.com/security-command-center/docs/vulnerability-assessment-google-cloud.md.txt#service-permissions) must be able to list
  project VM instances and clone their disks to Google-owned projects. Make sure
  that security and policy configurations, such as
  [organization policy constraints](https://docs.cloud.google.com/resource-manager/docs/organization-policy/org-policy-constraints),
  don't interfere with the service agent's ability to access and scan these
  resources.


  As a solution, we recommend adding the `google.com` organization,
  using the organization ID `433637338589`, to the allowlist
  policies. The following is an example of how to allowlist the organization:

  ```yaml
  name: organizations/Org-A/policies/compute.storageResourceUseRestrictions
  spec:
    rules:
    -- values:
      allowedValues:
      - under:organizations/433637338589
  ```

  For more information, see [Organization Policy overview](https://docs.cloud.google.com/organization-policy/overview.md.txt#organization_policy).

  <br />

- When scanning VM instances with persistent disks that are encrypted with
  [customer-managed encryption keys (CMEK)](https://docs.cloud.google.com/kms/docs/cmek.md.txt), the key must be stored
  in the same region as the disk. This is either the global location or the same geographical location as the disk when using multi-regional keys.

- Vulnerability Assessment for Google Cloud doesn't support scanning disks that are encrypted with
  CMEK and that are within VPC Service Controls perimeters.

- Vulnerability Assessment for Google Cloud doesn't support VM instances with persistent disks that are
  encrypted with [customer-supplied encryption keys (CSEK)](https://docs.cloud.google.com/docs/security/encryption/customer-supplied-encryption-keys.md.txt).

- Vulnerability Assessment for Google Cloud scans VFAT, EXT2, EXT4, XFS, and NTFS disk partitions only.

- Vulnerability Assessment for Google Cloud doesn't scan Confidential Computing virtual machines.

#### Google Kubernetes Engine

Vulnerability Assessment for Google Cloud doesn't do the following:

- Support scanning containers on GKE nodes that are configured to
  use Local SSD disks for ephemeral storage. The scanner relies on cloning
  persistent disks. Because Compute Engine can't snapshot physically attached
  Local SSDs, container images stored on Local SSDs aren't scanned.

- Include cluster labels in findings when scanning GKE clusters.

- Scan Confidential Google Kubernetes Engine Nodes.

#### Cloud Run


> [!WARNING]
>
> **Preview**
>
>
> This feature is
>
> subject to the "Pre-GA Offerings Terms" in the General Service Terms section of the
> [Service Specific
> Terms](https://docs.cloud.google.com/terms/service-terms#1).
>
> Pre-GA features are available "as is" and might have limited support.
>
> For more information, see the
> [launch stage descriptions](https://cloud.google.com/products/#product-launch-stages).

<br />

- For Cloud Run workloads, Vulnerability Assessment for Google Cloud evaluates scan
  results for container images rather than scanning the workloads
  directly. Vulnerability Assessment for Google Cloud generates findings only if the container image
  is stored in an Artifact Registry repository that belongs to the same
  Google Cloud organization as the Cloud Run service, job,
  or worker pool, with exceptions for verified Google public container mirrors.

- For Cloud Run jobs, Vulnerability Assessment for Google Cloud evaluates images only
  from executions that started successfully in the last 14 days. Unexecuted or
  failed runs are skipped.

- If a Cloud Run service or worker pool runs for over
  30 days without a deployment, image pull, or cold
  start, continuous
  [Common Vulnerabilities and Exposures (CVE)](https://wikipedia.org/wiki/Common_Vulnerabilities_and_Exposures)
  scanning pauses until a new pull or deployment occurs. After a new image pull
  or deployment, findings can take up to 24 hours to reflect newly published
  CVEs. Existing findings remain active in Security Command Center and are
  subject to [data retention policies for
  findings](https://docs.cloud.google.com/security-command-center/docs/concepts-data-security-overview#data_retention).

- Findings only appear when Artifact Analysis scans or
  re-analyzes the image. Deploying a previously pushed image doesn't trigger a
  scan, so findings appear after the next re-analysis. If you deploy a
  Cloud Run service, job, or worker pool with an image that was
  pushed to Artifact Registry earlier, findings for that workload typically appear
  within about 4 hours.

## Considerations when upgrading and downgrading service tiers

When you switch service tiers, Vulnerability Assessment for Google Cloud capabilities
change to those supported in the active service tier.

Findings generated by the previous activation will remain active for the time
defined by the previous service tier. When downgrading from Premium to Standard tier,
for example, findings generated on the Premium tier remain active for 72 hours (3 days).
New findings generated on the Standard tier remain active for 195 hours.

## Before you begin

If you have [VPC Service Controls perimeters](https://docs.cloud.google.com/vpc-service-controls/docs/overview.md.txt)
set up,
[create the required egress and ingress rules](https://docs.cloud.google.com/security-command-center/docs/vulnerability-assessment-google-cloud-vpcsc.md.txt).

### Permissions to enable Vulnerability Assessment for Google Cloud

The required permissions depend on the Security Command Center activation level.
For information about permissions required for Premium tier activations, see
[Activate Security Command Center Premium tier for an organization](https://docs.cloud.google.com/security-command-center/docs/activate-premium-tier.md.txt#required-roles).

#### Organization-level activations of the Standard tier

To enable Vulnerability Assessment for Google Cloud with a Standard tier activation at the
organization level, you need the following IAM roles:

- Security Center Admin (`roles/securitycenter.admin`)
- One of the following roles:

  - Security Admin (`roles/iam.securityAdmin`)
  - Organization Admin (`roles/resourcemanager.organizationAdmin`)

#### Project-level activations of the Premium or Standard tier

To enable Vulnerability Assessment for Google Cloud on a project when Security Command Center is activated
at the project level only, you need the following IAM roles:

- Security Center Admin (`roles/securitycenter.admin`)
- Security Admin (`roles/iam.securityAdmin`)

### Service agents to scan disks

The Vulnerability Assessment for Google Cloud service uses Security Command Center service agents for
identity and permission to access Google Cloud resources.

For organization-level activations of Security Command Center, Vulnerability Assessment for Google Cloud uses
the following [service agent](https://docs.cloud.google.com/security-command-center/docs/access-control-org.md.txt#service-agent):

    service-org-ORGANIZATION_ID@security-center-api.iam.gserviceaccount.com

For project-level activations of Security Command Center, Vulnerability Assessment for Google Cloud uses the
following [service agent](https://docs.cloud.google.com/security-command-center/docs/access-control-project.md.txt#service-agent):

    service-project-PROJECT_NUMBER@security-center-api.iam.gserviceaccount.com

## Enable or disable Vulnerability Assessment for Google Cloud

On the Premium and Enterprise tiers, Vulnerability Assessment for Google Cloud is automatically
enabled for all VM instances where possible.

On the Standard tier, you must manually enable Vulnerability Assessment for Google Cloud at the
organization, folder, or project level.

To change Vulnerability Assessment for Google Cloud settings, do the following:

1. In the Google Cloud console, go to the **Risk Overview** page:

   [Go to Risk Overview](https://console.cloud.google.com/security/command-center/overview)
2. Select an organization in which to enable Vulnerability Assessment for Google Cloud.

3. Click **Settings**.

4. In the **Vulnerability Assessment** section, click **Manage settings**.

5. In the **Google Cloud** tab, enable or disable Vulnerability Assessment for Google Cloud at the
   organization, folder, or project level from the
   **Agentless Vulnerability Assessment** column. Lower levels can inherit the
   value from higher levels.

## Scan disks encrypted with CMEK

To allow Vulnerability Assessment for Google Cloud to scan disks encrypted with CMEK, you must grant
the Cloud KMS CryptoKey Encrypter/Decrypter
(`roles/cloudkms.cryptoKeyEncrypterDecrypter`) role to the following
[service agents](https://docs.cloud.google.com/security-command-center/docs/access-control-org.md.txt#service-agent):

    service-org-ORGANIZATION_ID@security-center-api.iam.gserviceaccount.com

    service-PROJECT_ID@compute-system.iam.gserviceaccount.com

If you have the following service agent, you must also grant the role to that
service agent:

    service-org-ORGANIZATION_ID@ctd-ia-org-sa-prod.iam.gserviceaccount.com

### Configure key-level permissions

1. Navigate to the **Security \> Key Management** page.
2. Select the key ring containing the key.
3. Select the key.
4. In the info panel, click **Permissions**.
5. Enter the service agent name that you entered in the **New principals** field.
6. In the **Select a role** menu, select **Cloud KMS CryptoKey Encrypter/Decrypter**.
7. Click **Save**.

### Configure project-level key permissions

1. Go to **IAM \& Admin \> IAM**.
2. Click **Grant access**.
3. Enter the service agent name that you entered in the **New principals** field.
4. In the **Select a role** menu, select **Cloud KMS CryptoKey Encrypter/Decrypter**.

> [!NOTE]
> **Note:** Vulnerability Assessment for Google Cloud for disks encrypted using CMEK only works with projects that are outside VPC Service Controls perimeters.

For the scans to run correctly, the key must be in the same region as the disk.
Vulnerability Assessment for Google Cloud attempts to scan disks encrypted using CMEK. If you don't grant
the required permissions, Google Cloud generates the following error in the
audit log: `Cloud KMS error when using key`.

## Findings generated by Vulnerability Assessment for Google Cloud

The Vulnerability Assessment for Google Cloud service generates a finding in Security Command Center when
it detects the following:

- Software vulnerabilities on a Compute Engine VM instance.
- Software vulnerabilities on nodes in a GKE cluster or containers running on GKE.
- Software vulnerabilities and exposed secrets on Cloud Run services, revisions, jobs, and worker pools ([Preview](https://cloud.google.com/products/#product-launch-stages)).
- Container image vulnerabilities on the following resources:

  - GKE Pods
  - App Engine services
  - Cloud Run services and jobs

### Scan frequency

The frequency of scans varies by service tier:

| Standard tier | Premium and Enterprise tiers |
|---|---|
| One time a week | Approximately every 12 hours |

### Severity of findings that are created

Vulnerability Assessment for Google Cloud publishes findings with the following severities, which varies
by service tier:

| Standard tier | Premium and Enterprise tiers |
|---|---|
| `Critical` severity findings | `Critical` and `High` severity findings |

### Findings lifecycle

When Vulnerability Assessment for Google Cloud creates a finding, it remains in `ACTIVE` state for the
following *active state* period, which varies by service tier:

| Standard tier | Premium and Enterprise tiers |
|---|---|
| 195 hours | 72 hours (3 days) |

If Vulnerability Assessment for Google Cloud detects the finding again within the *active state* period
(based on the service tier), the counter resets, and the finding stays in
the `ACTIVE` state for another *active state* period. For more information
about how long findings are retained, see
[Data retention for findings](https://docs.cloud.google.com/security-command-center/docs/concepts-data-security-overview.md.txt#data_retention).

If Vulnerability Assessment for Google Cloud doesn't detect the finding again within the *active state*
period (based on the service tier), Vulnerability Assessment for Google Cloud sets the finding to
`INACTIVE`. Vulnerability Assessment for Google Cloud won't detect the finding under the following conditions:

- The condition that caused the finding is fixed.
- The VM instance is stopped.
- The VM instance or project is deleted.

For more information about updates to findings when a resource is deleted, see
[Overview of the finding lifecycle](https://docs.cloud.google.com/security-command-center/docs/finding-lifecycle-overview.md.txt).

### Information available in findings

Findings contain the following common information:

- A description of the vulnerability, including the following information:
  - The software package containing the vulnerability and its [location](https://docs.cloud.google.com/security-command-center/docs/vulnerability-assessment-google-cloud.md.txt#package-location)
  - Information from the associated CVE record
  - An assessment from Security Command Center of the severity of the vulnerability
- If available, steps to fix the issue, including the patch or version upgrade to resolve the vulnerability
- The following property values:

  - Class: `Vulnerability` or `Secret`
  - Cloud service provider: `Google Cloud`
  - Source: `Vulnerability Assessment`
  - Category: One of the following values:
    - `Container Image Vulnerability`
    - `OS vulnerability`
    - `Software vulnerability`
    - `Secrets in Cloud Run`

Certain findings, which vary by service tier, are enriched with information
about the impact and exploitability of a CVE using Mandiant CVE assessments.

| Standard tier | Premium and Enterprise tiers |
|---|---|
| CVEs that have a Critical severity include Mandiant assessment information | CVEs that have a Critical or High severity include Mandiant assessment information |

Findings generated on the Premium and Enterprise service tiers include
the following information:

- An attack exposure score that helps you prioritize remediation.
- A visual representation of the path an attacker might take to high-value resources exposed by the vulnerability.

### Findings for detected software vulnerabilities

Findings for detected software vulnerabilities contain the following additional
information:

- The full resource name of the affected VM instance or GKE cluster.
- Information about the affected object when the finding relates to a GKE workload, for example:

  - `CronJob`
  - `DaemonSet`
  - `Deployment`
  - `Job`
  - `Pod`
  - `ReplicationController`
  - `ReplicaSet`
  - `StatefulSet`

Because Vulnerability Assessment for Google Cloud can identify the same vulnerability in multiple
containers, Vulnerability Assessment for Google Cloud aggregates vulnerabilities at the
GKE workload level or Pod level. In a finding, you might see
multiple values in a single field, for example in the `files.elem.path` field.

### Findings for detected container image vulnerabilities

Findings for detected container image vulnerabilities contain the following
additional information:

- The full resource name of the container image
- If the vulnerable image is running on any of the following services, the finding includes a count of the affected runtime resources:
  - GKE Pod
  - App Engine
  - Cloud Run Service and Revision
  - Cloud Run Job and Execution

### Findings for detected Cloud Run vulnerabilities and secrets


> [!WARNING]
>
> **Preview**
>
>
> This feature is
>
> subject to the "Pre-GA Offerings Terms" in the General Service Terms section of the
> [Service Specific
> Terms](https://docs.cloud.google.com/terms/service-terms#1).
>
> Pre-GA features are available "as is" and might have limited support.
>
> For more information, see the
> [launch stage descriptions](https://cloud.google.com/products/#product-launch-stages).

<br />

Findings for Cloud Run services, jobs, and worker pools contain the
following additional information:

- **Resource name:** The full resource name of the affected Cloud Run service (`//run.googleapis.com/projects/.../locations/.../services/...`), job (`//run.googleapis.com/projects/.../locations/.../jobs/...`), or worker pool (`//run.googleapis.com/projects/.../locations/.../workerPools/...`).
- **Active revisions:** For Cloud Run services, the finding lists the resource names of up to five active revisions that mount the vulnerable container image and serve traffic. For worker pools, the finding lists the resource names of active revisions that run instances.
- **Container sidecars:** In multi-container services, jobs, and worker pools, the finding specifies the exact container name and resolved container image digest containing the package vulnerability or exposed secret.

### Findings lifecycle and retention for Cloud Run

For Cloud Run workloads, a finding remains `ACTIVE` as long as an
active revision or executed job references the vulnerable container image. When
a new revision with a clean image replaces the vulnerable revision or when
traffic or instance allocation to the vulnerable revision drops to 0%, the
finding automatically transitions to `INACTIVE`.

For information about how long findings are retained, see
[Data retention for findings](https://docs.cloud.google.com/security-command-center/docs/concepts-data-security-overview.md.txt#data_retention).

### Package location

The file location of a vulnerability in a finding refers to either the
binary or package metadata files. This information depends on the
[SCALIBR extractor](https://github.com/google/osv-scalibr/blob/main/docs/new_extractor.md)
that Vulnerability Assessment for Google Cloud uses. For vulnerabilities that Vulnerability Assessment for Google Cloud
finds in a container, this is the path inside the container.

The following table shows examples of vulnerability locations for
various SCALIBR extractors.

| SCALIBR extractor | Package location |
|---|---|
| Debian package (`dpkg`) | `/var/lib/dpkg/status` |
| Go binary | `/usr/bin/google_osconfig_agent` |
| Java archive | `/opt/datadog-agent/embedded/lib/python3.9/site-packages/org.jpype.jar` |
| PHP | `/var/www/html/vkumark/backend_api/composer.lock` |
| Python | `/usr/lib/google-cloud-sdk/platform/bundledpythonunix/lib/python3.11/site-packages/cryptography-42.0.5.dist-info/METADATA` |
| Ruby | `/usr/lib/ruby/gems/2.7.0/specifications/default/benchmark-0.1.0.gemspec` |

## Review findings in the console

You can view Vulnerability Assessment for Google Cloud findings in the Google Cloud console. Before
doing so, make sure you have the
[appropriate roles](https://docs.cloud.google.com/security-command-center/docs/review-manage-findings.md.txt#cloud_console_roles).

To review Vulnerability Assessment for Google Cloud findings in Google Cloud console, follow these
steps:

1. In the Google Cloud console, go to the **Findings** page of Security Command Center.

   [Go to Findings](https://console.cloud.google.com/security/command-center/findingsv2)
2. Select your Google Cloud project or organization.
3. 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.
4. 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.
5. 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.
6. Optional: To view the full JSON definition of the finding, click the **JSON** tab.

<br />