Skip to main content

More Info:

Ensure that the Integrity Monitoring feature is enabled for your Vertex AI notebook instances

Risk Level

Medium

Address

Monitoring

Compliance Standards

  • CIS GCP

Triage and Remediation

Remediation

Using Console

Below are the GCP Console steps to ensure Integrity Monitoring is enabled for Vertex AI notebook instances (which run on Compute Engine VMs).

1. Identify the Notebook VM

  1. Go to Google Cloud Console: https://console.cloud.google.com
  2. In the left menu, go to Vertex AIWorkbench (or Notebooks, depending on UI version).
  3. Locate the notebook instance you want to fix.
  4. Note its type:
    • User-managed notebook → directly backed by a Compute Engine VM.
    • Managed notebook → some settings are controlled by Vertex AI; Shielded VM options may not be editable after creation.
If it is a user-managed notebook, continue with the steps below. If it’s managed and you don’t see Shielded VM options, you’ll need to recreate it with Integrity Monitoring enabled at creation time.

2. Stop the Notebook Instance

  1. In Vertex AI → Workbench, find your notebook instance.
  2. Click the three dots (⋮) on the right of the instance row.
  3. Click Stop.
  4. Wait until the status changes to Stopped.

3. Open the Backing VM in Compute Engine

  1. Still on the notebook details (or the row), click on the instance name to open its details.
  2. In the details panel, locate the VM name (often similar to the notebook name).
  3. Click the VM name link (this takes you to Compute Engine → VM instances for that VM).

4. Enable Integrity Monitoring (Shielded VM Option)

  1. In the VM instances page for that VM, click Edit (top of the page).
  2. Scroll down to the Security or Shielded VM section (name may vary slightly).
  3. Under Shielded VM options, ensure:
    • Turn on Integrity monitoring is checked.
    • Optionally, also enable Turn on virtual trusted platform module (vTPM) and Secure boot if your policy requires full Shielded VM protections.
  4. Click Save at the bottom.

5. Restart the Notebook Instance

  1. Go back to Vertex AI → Workbench.
  2. On your notebook instance, click the three dots (⋮).
  3. Click Start.
  4. Wait until the status becomes Running.

6. Verify Integrity Monitoring Is Enabled

  1. Go again to Compute Engine → VM instances, open the VM for the notebook.
  2. In the Details page, under Shielded VM or Security, confirm that Integrity monitoring is shown as On / enabled.
Repeat these steps for each relevant notebook VM. For managed notebooks where Shielded VM settings can’t be edited, recreate the notebook and ensure Shielded VM / Integrity Monitoring is enabled during creation (look for “Security” or “Shielded VM” options in the creation wizard).
Below are concise, CLI-based steps to ensure Integrity Monitoring is enabled for Vertex AI Notebook instances (Workbench / Notebooks) in GCP.

1. Prerequisites

Set your defaults (optional):

2. Identify the underlying VM for a Vertex AI Notebook

Managed and user-managed notebooks both run on Compute Engine VMs. You must enable Shielded VM integrity monitoring on that VM.List notebook instances:
Take note of the name and location of the notebook instance you want to fix.Describe the notebook to find the underlying VM:
Look for a field such as:
  • proxyUri – often contains the Compute Engine instance name, or
  • gceInstanceId / gceInstance – the actual GCE VM name (depending on notebook type).
If unclear, you can locate the instance via labels:
Note the NAME and ZONE of the VM instance.

3. Check current Shielded VM integrity monitoring setting

If it returns False or is empty, you need to enable it.

4. Enable Integrity Monitoring on the VM

This turns on Shielded VM integrity monitoring for that notebook’s VM.

5. Verify Integrity Monitoring is enabled

You should now see:

6. Enforce for new Vertex AI notebook instances (optional)

When creating new user-managed notebook instances (directly via Compute Engine), specify Shielded VM flags:
Then attach this VM as the backend for your notebook or use it as the base for a Vertex AI Workbench instance, depending on your setup.For managed Vertex AI Workbench notebooks, ensure your organization policy does not disable Shielded VM, and follow steps 2–5 after creation to verify/enable integrity monitoring on the underlying VM.
Below is a minimal, practical way to enable Integrity Monitoring on Vertex AI / AI Platform notebook instances using Python and the Notebooks API.

1. Prerequisites

  1. You have gcloud configured and are authenticated:
  2. Install the Notebooks client library:

2. Enabling Integrity Monitoring when creating a notebook instance


3. Enabling Integrity Monitoring on an existing notebook instance

For existing instances, patch the shielded_instance_config:

4. Verifying Integrity Monitoring is enabled

You can verify via Python:
These steps ensure Integrity Monitoring is enabled for your Vertex AI / AI Platform notebook instances programmatically in GCP using Python.
terraform plan should show an update (or replacement, depending on current state) to the google_workbench_instance that sets shielded_instance_config.enable_integrity_monitoring from false (or unset) to true.