Onboarding GCP Projects to Intelligence

You can use Intelligence to analyze the account activity of your Google Cloud Platform (GCPClosed Google® Cloud Platform - a suite of cloud computing services that runs on the same infrastructure that Google uses internally for its end-user products, such as Google Search, Gmail, Google Drive, and YouTube.) project. For this, onboard the project to Intelligence. This process creates a connection between Intelligence and the GCP project. You can do this after Onboarding Google Cloud Platform Projects to CloudGuard.

Note - The onboarding process is done separately for Activity Logs and for Flow Logs.

Prerequisites for Onboarding

  • For Intelligence Account Activity, enable Activity Logs on your GCP project.

  • For Intelligence Traffic Activity, enable VPC Flow Logs on your GCP project.

  • Make sure you have permissions to run the Google Cloud Shell.

  • Consider one of the options for the onboarding scope:

    • Standard - To onboard one GCP project.

    • Centralized - To onboard multiple projects through the centralized Pub/Sub configuration.

  • For the Standard scope, make sure that you have the Owner or Editor permissions.

  • For the Centralized scope, make sure you have these permissions:

Creating a Custom Role

If you do not want to use more permissive built-in roles, you can create and use a custom role. This lets you minimize and control specific required permissions.

To configure a custom role:

  1. Log in to the Google cloud console.

  2. From the navigation menu, go to IAM & Admin > Roles and click Create Role.

  3. Define mandatory permissions for the custom role, add specific permissions for the GCP services in use, and search & select permissions from the list below:

  4. Assign the custom role to the user. For this:

    1. From the navigation menu, go to IAM & Admin > IAM and click Grant Access.

    2. In Add principals, enter the email of the user assigned with the role.

    3. In Assign roles, search and select the custom role you created in step 3.

    4. Click Save.

Onboarding Account Activity to Intelligence with Activity Logs

  1. Navigate to the Assets > Environments page.

  2. Click Add Filter > Platform > GCP or use the search bar to show the project to onboard to Intelligence.

  3. In the project row and the Account Activity column, click Enable to start the Intelligence onboarding wizard.

    As an alternative, you can click and enter the GCP page. In the top right menu, click Add Intelligence and select Activity Logs.

  4. Follow the on-screen wizard instructions to complete onboarding for Intelligence.

    This involves:

    1. Selecting the onboarding scope: Standard or Centralized.

    2. Opening the Google Cloud Shell and authorizing it to run the script. The script is available on GitHub for review from the Welcome or Shell Script page of the onboarding wizard.

    3. Opening your Google Workspace.

    4. Copying a command from the CloudGuard wizard and pasting it in the Cloud Shell terminal. The command creates in the project necessary CloudGuard resources. When the process is done, the Cloud Shell terminal displays a confirmation message.

    5. Examining the deployment status with the Check Now button.

    6. When you see a message that the shell script process is finished, click Onboard.

  5. After you get a message that the project is successfully onboarded, click Finish to close the wizard. CloudGuard suggests you onboard a new environment or add alerts for this environment. For more information on adding alerts, see Getting Started with Intelligence Policy.

When you complete these steps, CloudGuard starts the onboarding process for Intelligence. It can take several minutes. All GCP environments with onboarded Activity Logs appear in Assets > Environments with Account activity enabled.

Afterward, you can see the account activity on the Logs page, when you navigate to Events > Cloud Logs > Account Activity, select the project name, and click Run.

Onboarding Traffic Activity to Intelligence with VPC Flow Logs

  1. Navigate to the Assets > Environments page.

  2. Click Add Filter > Platform > GCP or use the search bar to show the project that you want to onboard to Intelligence.

  3. In the project row and the Traffic Activity column, click Enable to start the Intelligence onboarding wizard.

    As an alternative, you can click and enter the GCP page. In the top right menu, click Add Intelligence and select Flow Logs.

  4. Follow the on-screen wizard instructions to complete onboarding for Intelligence.

    This involves:

    1. Enabling VPC Flow Logs on your project.

    2. Selecting the onboarding scope: Standard or Centralized.

    3. Opening a repository in Google Cloud Shell and authorizing Google Cloud Shell to run the script. The script is available on GitHub for review from the Welcome or Shell Script page of the onboarding wizard.

    4. Copying a command from the CloudGuard wizard and pasting it in the Cloud Shell terminal. The command creates in the project necessary CloudGuard resources.

      When the process is done, the Cloud Shell terminal displays a confirmation message.

    5. Examining the deployment status with the Check Now button.

  5. After you get a message that the project is successfully onboarded, click Finish to close the wizard. CloudGuard suggests you onboard a new environment or add alerts for this environment. For more information on adding alerts, see Getting Started with Intelligence Policy.

Error and Warning Messages

Warning / Error

Details

Corrective Actions

You do not currently have an active account selected.

You did not select the Trust repo when opened it in Cloud Shell.

  1. Click the Session information icon in Cloud Shell and select Return to default Cloud Shell.

  2. Close the Cloud Shell window and click this link to run again the script. The onboarding wizard provides the link in step 2 of the Create Resources page.

You do not appear to have access to project [project_ID] or it does not exist.

Are you sure you wish to set property [core/project] to project_ID?

You copied an incorrect project_ID.

Follow the instructions in the onboarding wizard and copy the correct project_ID.

When you complete these steps, CloudGuard starts the onboarding process for Intelligence. It can take about 30 minutes. All GCP environments with onboarded Traffic Logs appear in Assets > Environments with Traffic activity enabled.

Afterword, you can see the traffic activity on the Logs page, when you navigate to Events > Cloud Logs > Network Traffic, select the project name, and click Run.