Enable and use Notebook Security Scanner Stay organized with collections Save and categorize content based on your preferences.
Preview
This feature is subject to the "Pre-GA Offerings Terms" in the General Service Terms section of theService Specific Terms. Pre-GA features are available "as is" and might have limited support. For more information, see thelaunch stage descriptions.
Note: This feature is available with either theEnterprise or Premium tier of Security Command Center.
You can enable and use Notebook Security Scannerto detect vulnerabilities in Python packages that are used inColab Enterprise notebooks (files with theipynb filename extension)and resolve those package vulnerability findings.
After you enable Notebook Security Scanner, it scans Colab Enterprisenotebooks once in every 24 hours and publishes the package vulnerability findingsto the Security Command CenterFindings page.
You can use Notebook Security Scanner for Colab Enterprise notebooksthat are created in the following regions:us-central1,us-east4,us-west1,andeurope-west4.
Enable Notebook Security Scanner
You can enable Notebook Security Scanner at the organization levelor project level.
The way you enable Notebook Security Scanner depends on whetherSecurity Command Center needs to be activated for your organization or project, or onthe Security Command Center tier that is activated for your organization or project.Depending on your use case, follow the instructions in the appropriate section:
New activation Premium tier
If your organization doesn't have Security Command Center, then activate Security Command Center Premium tier for your organization or project, and enable Notebook Security Scanner.
In the Google Cloud console, go to the Security Command Center page.
- In the resource selector, select your organization or project.
- ClickGet Security Command Center.
- Select thePremium tier, and clickNext.
- ForNotebook Security Scanner, selectEnable from the list, and clickNext.
- SelectGrant roles automatically, and then clickGrant roles.
- After the service account is provisioned, clickNext.
- To complete the activation process, clickFinish.
New activation Enterprise tier
If your organization doesn't have Security Command Center, thenactivate Security Command Center Enterprise tier for your organization, and enable Notebook Security Scanner.
Existing Premium or Enterprise tier
If the Security Command Center Premium or Enterprise tier is activated for your organization or project, then enable Notebook Security Scanner.
In the Google Cloud console, go to the Security Command Center page.
- ClickSettings.
- In theNotebook Security Scanner card, clickManage settings.
- For your project, selectEnable from theNotebook Security Scanner column.
Review and resolve package vulnerability findings
After you enable Notebook Security Scanner, Notebook Security Scannerscans the Colab Enterprise notebooks (files with theipynb filename extension)in your project or organization every 24 hours to detect vulnerabilities inPython packages and publishes these findings to the Security Command CenterFindings page. For a newly created Colab Enterprisenotebook, the package vulnerability findings might take a maximum of four hoursto appear in the Security Command CenterFindings page.
To review package vulnerability findings in Security Command Center, follow thesesteps:
In the Google Cloud console, go to the Security Command CenterFindings page.
In the resource selector, select your organization or project.
In theQuick filters section, go to theSource display name subsection,and then selectNotebook Security Scanner.
TheFindings query results panel shows only thepackage vulnerability findings of Notebook Security Scanner.
To view details of a specific finding, click the finding name in theCategory column. The finding details panel expands to display a summaryof the finding details.
Note: There might be some vulnerabilities published with packages and versions which might not be present in the notebook. This is because, for the Python packages that are being installed without versions in unexecuted code cells, Notebook Security Scanner assumes the latest package version according to thePython Package Index (PyPI) and publishes any vulnerabilities.To resolve a package vulnerability finding, follow the steps mentioned in theNext steps section of the finding.
In some cases, a fix for a package vulnerability might not be available.In such cases, we recommend that you use alternative Python packages.
What's next
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-15 UTC.