Overview
Blumira integrates with the Google Workspace productivity suite to stream security event logs and alerts to Blumira for threat detection and actionable response.
Required: Google Workspace licensing above Free Tier and an Admin user account.
Configuring Google Workspace and gathering your credentials
Before you can configure the Blumira Cloud Connector, you must complete the following procedures:
Create a GCP project for your organization's workspace
- With Google Workspace Admin permissions, go to the GCP Console: https://console.cloud.google.com.
- Next to the Google Cloud Platform header, select New Project – Dropdown.
- Click New Project.
- In the New Project window, type a unique project name.
- Select the Organization you want to use (typically, the default is best).
- Enter the parent organization in the Location box if it is not pre-populated (usually matches the organization domain).
- Click Create.
Create a service account and gather the JSON key file
To create a GCP Service Account in the newly created project for fetching logs:
- In the Project dropdown menu, select the project you created.
- On the left toolbar, select IAM & Admin > Service Accounts.
- Select +Create Service Account at the top of the page.
- Type a unique service account name.
- Type a unique service account ID.
- Type a service description.
- Click Create and continue.
- Select the dropdown Select A Role, then choose Service Account in the left column and Service Account Token Creator in the right column.
- Click Continue.
- Click Done at the bottom.
- Select your new service account from the list.
- Click the KEYS tab.
- Click Add Key > Create New Key.
- Select JSON format for the key. The JSON file should automatically download from your browser.
Note: You will need the JSON file in later steps. - Open the JSON Key file on your local machine in a plain text editor (Notepad, Wordpad, Notepad++).
- Find the Client_ID and copy the number to use in Step 6 of Link APIs to the service account.
Enable Admin SDK and IAM APIs for the project
- Enable the Google Admin SDK API:
- From the GCP Main Console Page, select the project you created in the previous steps on the top left.
- Navigate to APIs & Services > Library.
- In the search bar, type Admin SDK.
- Select the Admin SDK API.
- Click Enable.
- Enable the Identity and Access Management (IAM) API:
- Return to the same API Library page as shown in the previous section.
- In the search bar, type IAM API.
- Select the Identity and Access Management (IAM) API.
- Click Enable.
Link APIs to the service account
- Log in to https://admin.google.com as a global admin.
- In the left side toolbar, go to Security > Access and data control > API Controls.
- Scroll to the bottom section called “Domain-Wide Delegation”.
- Click Manage Domain Wide Delegation.
- Click Add New.
- In the Add a new Client ID window, enter the Client_ID number saved from the JSON file in the previous steps.
- Copy and paste the following into the OAuth Scopes section: https://www.googleapis.com/auth/admin.reports.audit.readonly,https://www.googleapis.com/auth/iam
- Click Authorize.
Important: Per Google's Delegation of Authority documentation, “Only users with access to the Admin APIs can access the Admin SDK Reports API, therefore your service account needs to impersonate one of those users to access the Admin SDK Reports API.” In other words, you must provide the email address of one of your Workspace users with admin console access so the module can use the account to fetch your Google logs.
Configuring Blumira
After you obtain your integration's configuration parameters, enable Blumira to collect your logs by configuring either the sensor module or the cloud connector in the app.
Note: The Google Workspace Cloud Connector is currently in beta for paid editions only.
Using the sensor module
The sensor-based integration requires a Blumira sensor to be installed before you can complete the steps below. Ensure that you complete the steps in Building a Blumira sensor with Ubuntu before you continue.
To add a module on an existing sensor and provide credentials:
- In Blumira, click Settings.
- Click Sensors.
- Click the sensor on which you want to add a module.
- On the detail page for the sensor, scroll down and click Add Module.
- In the Add New Module window, select the relevant module.
- Enter the credentials that you gathered in previous steps.
- (Optional) Type a name for this log deployment in the Log Source Name box.
Note: Use alphanumeric characters, periods, and hyphens. Spaces and underscores are not allowed. This name will appear in the "device_address" column in the results of your event data queries. If you add more modules to collect logs for other integrations, this name will help you to identify them. - Click Install.
Beta: Google Workspace Cloud Connector
Cloud Connectors automate the configuration of your integrations without requiring you to use a sensor. After you obtain your integration's configuration parameters, you can then enable Blumira to collect your logs.
To configure your integration with Blumira Cloud Connector:
- In the Blumira app, navigate to Settings > Cloud Connectors.
- Click + Add Cloud Connector.
- In the Available Cloud Connectors window, click the connector that you want to add.
- If you want to change the name of the connector, type the new name in the Cloud Connector Name box.
- Enter the API credentials that you collected in the "Before you begin" section above.
- Click Connect.
- On the Cloud Connectors screen, under Current Status, you can view the configuration’s progress. When the configuration completes, the status changes to Online (green dot).
Important: If you previously deployed a sensor module for this integration, then you must remove it via the Sensors page (Settings > Sensors) to avoid log duplication.