Notebook Security Scanner helps you detect and resolve vulnerabilities in Python
packages within Colab Enterprise notebooks (.ipynb files). After you
enable the scanner through Security Command Center in the Google Cloud console, it scans
notebooks every 24 hours and publishes findings to the Security Command Center
Findings page.
Notebook Security Scanner supports Colab Enterprise notebooks in the
us-central1, us-east4, us-west1, and europe-west4 regions. You manage
this feature through the Google Cloud console; the Notebook Security Scanner API
(notebooksecurityscanner.googleapis.com) isn't intended for direct use.
Enable Notebook Security Scanner
You can enable Notebook Security Scanner at the organization level or project level.
The way you enable Notebook Security Scanner depends on whether Security Command Center needs to be activated for your organization or project, or on the 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 Enterprise tier
If your organization doesn't have Security Command Center, then activate Security Command Center Enterprise tier for your organization, and enable Notebook Security Scanner.
Review and resolve package vulnerability findings
After you enable Notebook Security Scanner, Notebook Security Scanner
scans the Colab Enterprise notebooks (files with the ipynb filename extension)
in your project or organization every 24 hours to detect vulnerabilities in
Python packages and publishes these findings to the Security Command Center
Findings page. For a newly created Colab Enterprise
notebook, the package vulnerability findings might take a maximum of four hours
to appear in the Security Command Center Findings page.
To review package vulnerability findings in Security Command Center, follow these steps:
In the Google Cloud console, go to the Security Command Center Findings page.
In the resource selector, select your organization or project.
In the Quick filters section, go to the Source display name subsection, and then select Notebook Security Scanner.
The Findings query results panel shows only the package vulnerability findings of Notebook Security Scanner.
To view details of a specific finding, click the finding name in the Category column. The finding details panel expands to display a summary of the finding details.
To resolve a package vulnerability finding, follow the steps mentioned in the Next 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.