Triage and Remediation
- Remediation
Remediation
Using Console
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
- Go to Google Cloud Console: https://console.cloud.google.com
- In the left menu, go to Vertex AI → Workbench (or Notebooks, depending on UI version).
- Locate the notebook instance you want to fix.
- 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.
2. Stop the Notebook Instance
- In Vertex AI → Workbench, find your notebook instance.
- Click the three dots (⋮) on the right of the instance row.
- Click Stop.
- Wait until the status changes to Stopped.
3. Open the Backing VM in Compute Engine
- Still on the notebook details (or the row), click on the instance name to open its details.
- In the details panel, locate the VM name (often similar to the notebook name).
- Click the VM name link (this takes you to Compute Engine → VM instances for that VM).
4. Enable Integrity Monitoring (Shielded VM Option)
- In the VM instances page for that VM, click Edit (top of the page).
- Scroll down to the Security or Shielded VM section (name may vary slightly).
- 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.
- Click Save at the bottom.
5. Restart the Notebook Instance
- Go back to Vertex AI → Workbench.
- On your notebook instance, click the three dots (⋮).
- Click Start.
- Wait until the status becomes Running.
6. Verify Integrity Monitoring Is Enabled
- Go again to Compute Engine → VM instances, open the VM for the notebook.
- In the Details page, under Shielded VM or Security, confirm that Integrity monitoring is shown as On / enabled.
Using CLI
Using CLI
Below are concise, CLI-based steps to ensure Integrity Monitoring is enabled for Vertex AI Notebook instances (Workbench / Notebooks) in GCP.
Set your defaults (optional):
Take note of the Look for a field such as:Note the
If it returns
This turns on Shielded VM integrity monitoring for that notebook’s VM.
You should now see:
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.
1. Prerequisites
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:name and location of the notebook instance you want to fix.Describe the notebook to find the underlying VM:proxyUri– often contains the Compute Engine instance name, orgceInstanceId/gceInstance– the actual GCE VM name (depending on notebook type).
NAME and ZONE of the VM instance.3. Check current Shielded VM integrity monitoring setting
False or is empty, you need to enable it.4. Enable Integrity Monitoring on the VM
5. Verify Integrity Monitoring is enabled
6. Enforce for new Vertex AI notebook instances (optional)
When creating new user-managed notebook instances (directly via Compute Engine), specify Shielded VM flags:Using Python
Using Python
Below is a minimal, practical way to enable Integrity Monitoring on Vertex AI / AI Platform notebook instances using Python and the Notebooks API.
These steps ensure Integrity Monitoring is enabled for your Vertex AI / AI Platform notebook instances programmatically in GCP using Python.
1. Prerequisites
- You have
gcloudconfigured and are authenticated: - 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 theshielded_instance_config:4. Verifying Integrity Monitoring is enabled
You can verify via Python:Using Terraform
Using Terraform
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.
