Who is this for? Workspace Owners and Security Engineers who manage a workspace that uses Google Security Operations (Google SecOps). This guide walks you through preparing Google Cloud and Google SecOps, configuring the module in ContraForce, and what the integration can and cannot do.
Before You Begin
What This Module Does
The Google SecOps Detection module connects a ContraForce workspace to a Google SecOps instance through the Chronicle API:Incidents
Cases become incidents
- Checks Google SecOps for new cases about every 2 minutes
- Creates a ContraForce incident for each case, with its alerts, entities and case wall
- Closes and reopens the case in Google SecOps when you close or reopen the incident
- Posts comments to the case and writes agent verdicts onto it
Rules and search
Detection content and events
- Lists, edits and retrohunts YARA-L detection rules on the Google SecOps Rules tab
- Manages the alert grouping rules that decide how alerts become cases
- Shows the events behind a case on the incident Logs tab
- Lets Security Delivery Agents run UDM searches during an investigation
What Syncs and What Stays in ContraForce
Google SecOps has no “in progress” state, so New and Active are kept in ContraForce and the case stays open in Google SecOps. A ContraForce analyst is not a Google SecOps user, so the incident owner is kept in ContraForce and the case’s assignee in Google SecOps doesn’t change.
Prerequisites
1
SOAR migration Stage 1
Your Google SecOps instance has completed Stage 1 of the SOAR migration to Google Cloud. Google serves cases through the Chronicle API only after Stage 1. In Google SecOps, go to Settings > Administration > SOAR License Management. Stage 1 is complete when Google.com appears next to the system version.
2
Chronicle API enabled
The Chronicle API is enabled in the Google Cloud project your Google SecOps instance is bound to.
3
Google Cloud access
Permission in that project to create service accounts, create service account keys and grant IAM roles.
4
Google SecOps administrator access
Access to Group Mapping in the Google SecOps settings.
5
ContraForce workspace
A ContraForce workspace with the Google SecOps detection module added, and your account assigned the workspace Owner role.
What to Collect
Step 1: Enable the Chronicle API
- In the Google Cloud console, select the project your Google SecOps instance is bound to
- Go to APIs & Services and click Enable APIs and Services
- Search for Chronicle API and click Enable
Step 2: Create a Service Account and a JSON Key
- In the Google Cloud console, go to IAM & Admin > Service Accounts in the same project
- Click Create service account and name it, for example
contraforce - Open the service account, select the Keys tab, and click Add key > Create new key
- Select JSON and click Create. Google downloads the key file
roles/iam.serviceAccountKeyAdmin) to create the key. A new key can take a minute or more before Google accepts it.
If Your Organization Blocks Key Creation
Google Cloud organizations can block service account keys with theiam.disableServiceAccountKeyCreation or iam.managed.disableServiceAccountKeyCreation organization policy. Google enforces it by default for organizations created on or after May 3, 2024. If Create new key fails, ask your organization policy administrator to allow key creation for this project only. Google describes the steps in Allow service account key creation.
The module needs a service account key. It doesn’t support keyless sign-in such as Workload Identity Federation.
Step 3: Grant the Service Account a Role
Grant the role on the project your Google SecOps instance is bound to. You have two options. Option 1: Predefined role. Grant Chronicle API Editor (roles/chronicle.editor). It covers everything the module does except alert grouping rules. To manage alert grouping rules from ContraForce too, also grant a custom role with the three chronicle.alertGroupingRules permissions below.
Option 2: Least privilege. Create a custom role with the required permissions, and add the optional ones for the features you want.
Required Permissions
These let ContraForce read cases, post comments, and close and reopen cases.Optional Permissions
Without an optional permission, everything else keeps working, and the feature shows a message naming the permission it needs.
Step 4: Add the Service Account to SOAR Group Mapping
A service account needs a Group Mapping in Google SecOps as well as its IAM role. Without the mapping, Google refuses every case request, whatever role the service account has.- In Google SecOps, go to Settings > Access Management > Group Mapping. On a SOAR-only platform, go to Settings > Advanced > Group Mappings
- Click Add
- In IdP / User group, enter the service account’s full email address, for example
contraforce@acme-secops-prod.iam.gserviceaccount.com - Select a permission group and a SOC role
- Select the environments the workspace should read. For a workspace connected to the whole instance, select every environment
- Save the mapping
Step 5: Configure the Module in ContraForce
- In the ContraForce portal, go to Workspaces > your workspace > Modules
- Find the Google SecOps card and click its settings (gear) icon, Configure Google SecOps
- Fill in these fields:
- Click Test connection. The button changes to Connection verified, and ContraForce shows which service account Google accepted
- Click Configure and save. ContraForce tests the connection again and saves only if it passes
The environment name is matched exactly, including upper and lower case. A workspace connected to one environment sees only that environment’s cases. Cases from other environments are never shown, and a case moved to another environment stops updating in ContraForce.
Step 6: Verify End to End
1
Wait for the first check
ContraForce checks Google SecOps about every 2 minutes. On the first check it brings in the cases created in the last 24 hours, and new cases appear within a few minutes after that.
2
Open an incident
Open a Google SecOps incident. Its number starts with GSO-. The Summary tab shows the case’s alerts, the Entities tab its entities, and the Comments tab its comments and case wall.
3
Check the events
On the Logs tab, the Related events section shows the events in Google SecOps that involve the case’s entities.
4
Check the rules
Open Detection Rules for the workspace and select the Google SecOps Rules tab. Your instance’s rules should be listed.
How Cases Map to Incidents
Priority
Status and Classification
When you close an incident, ContraForce closes the case with the close reason that matches the classification, the first root cause your instance defines for that reason, and your closing comment. When a case is closed in Google SecOps, the incident takes the matching classification.
Reopening an incident reopens the case with the comment “Reopened in ContraForce by” and your name. The case’s stage and tags are shown in the incident description.
Comments and Agent Verdicts
Comments you add in ContraForce are posted to the case in Google SecOps. Google shows them under the workspace’s service account, and ContraForce adds a last line, “Posted from ContraForce by” and your name. ContraForce hides that line when it shows the comment and names you as the author. The Comments tab also shows the case wall, such as merges, tag and SLA changes and playbook activity, as read-only entries. When a Security Delivery Agent finishes an investigation, ContraForce writes its verdict to the case as case properties:contraforce-verdict, contraforce-verdict-reason, contraforce-malicious-score, contraforce-summary, contraforce-agent, contraforce-run-id and contraforce-verdict-time. A later investigation updates the same properties. If Google refuses the write, the investigation still completes and its result says the verdict was not written.
Manage Detection Rules
The Google SecOps Rules tab on the workspace Detection Rules page lists your instance’s YARA-L rules with their type, severity, last save and status. Open a rule to see its text, how often it runs, its revisions and its retrohunts. Users with the workspace Owner or Content Admin role can:- Create and edit rules in the YARA-L 2.0 editor, and Check a rule before saving. A rule is saved only if it compiles
- Enable or disable a rule, and turn alerting on or off
- Archive a disabled rule, or restore an archived one
- Delete a rule that has no detections or retrohunts
- Run a retrohunt over past days and follow its progress
Manage Alert Grouping Rules
The Alert grouping rules card on the Google SecOps module page shows how your instance groups alerts into cases. Each rule applies to all alerts or to chosen alert types, products or data sources, and groups by shared entities, by the source grouping identifier, or not at all. Users with the workspace Owner role can add, edit and delete rules. Grouping rules apply to the whole instance, so a change regroups cases for every environment.Related Events and UDM Search
The Related events section of the incident Logs tab searches Google SecOps for events that involve the case’s hosts, IP addresses, users, file hashes, domains and URLs. It searches from the first alert’s start to the last alert’s end, with 15 minutes added on each side. The events are fetched from Google SecOps each time you open the tab and are not stored in ContraForce. Security Delivery Agents can run their own UDM searches during an investigation. They write queries in YARA-L 2.0 syntax over Unified Data Model fields, not KQL.Limitations
Setup
- Service account key required: the module signs in with a JSON service account key. Organizations that block key creation need an exception for the project, and keyless sign-in such as Workload Identity Federation is not supported
- SOAR migration: cases are available only after SOAR migration Stage 1, and the service account needs a SOAR Group Mapping as well as its IAM role
- Changing the configuration: the key is never shown again, so changing any field, such as the environment, means choosing the key file again
- Environment name: matched exactly, including upper and lower case
Cases and Incidents
- Polling delay: cases arrive by polling about every 2 minutes, so a new case can take a few minutes to appear
- Earlier cases: the first check brings in cases created in the last 24 hours. Older cases are not imported. Changing the project, region, instance or environment starts over the same way
- Very busy instances: one check reads up to about 2,000 new cases. If more are created between two checks, the oldest of them are skipped
- Closures made in Google SecOps: ContraForce reads up to 50 open cases again on each check to find closures and merges, so with many open cases a closure can take several checks to show. Only the 1,000 most recent open cases are followed; a closure of an older open case is not picked up
- Critical priority is shown as High
- Merged cases are shown as Closed
- Alerts per case: Google SecOps holds at most 90 alerts in a case and moves further alerts into another case, which comes into ContraForce as its own incident
- Entities: up to 2,000 entities are shown for a case, flagged entities first
- Fields you can change: ContraForce changes only a case’s status. Its stage, priority, tags and assignee are changed in Google SecOps
- No “in progress” in Google SecOps: New and Active are kept in ContraForce, and the case stays open in Google SecOps
- Owner: kept in ContraForce. The case’s assignee in Google SecOps, a Google SecOps user or SOC role, doesn’t change
- Closing a case: ContraForce sends the first root cause your instance defines for the close reason. If your instance defines none for that reason, the close is refused until you add one in Google SecOps
- Link to Google SecOps: an incident has no link that opens the case in Google SecOps. Alerts show the alert, rule and source system links Google provides
- Related incidents: the entity search for related incidents is not available for Google SecOps incidents
- Entity insights: sign-in logs, audit logs, device timelines and the other entity insights are not available for Google SecOps entities
- Incident email notifications: ContraForce doesn’t send email notifications for new Google SecOps incidents. Gamebook activity notifications are sent as for any module
Comments
- Add and read only: comments can be added and read, not edited or deleted, from ContraForce
- Author: comments are posted under the workspace’s service account, with your name in the comment text
- Deleted comments: comments deleted in Google SecOps are not shown
- How many: the Comments tab shows up to 200 comments and 200 case wall entries for a case
Agent Verdicts
- Best effort: if the verdict can’t be written, the investigation still completes and its result says so
- Case properties: nothing is written to a case that already holds more than 1,000 case properties
Detection Rules and Alert Grouping Rules
- Whole instance only: detection rules and alert grouping rules belong to the whole instance. A workspace connected to one environment shows them but can’t change them
- Revisions: revisions can be read, not compared side by side
- Run frequency: shown, not changed, from ContraForce
- Delete: a rule with detections or retrohunts can’t be deleted; archive it instead
- Rule count: up to 2,000 rules are listed. Search Google SecOps for the rest
- Retrohunts: cover whole days in UTC, the last day stopping at the current time, and only past events
- Grouping rules: rule order, the grouping time window and the number of alerts per case can’t be set, because the Chronicle API doesn’t offer them
Search
- Whole instance only: event search reads the whole instance, so a workspace connected to one environment can’t search, on the Logs tab or by an agent
- Log Search page: the portal’s Log Search page doesn’t query Google SecOps
- Related events: the search covers up to 20 of the case’s entities, shows up to 200 events and spans at most 30 days. When more events match, the section says so and shows the first ones
- Agent searches: return up to 100 events and span at most 30 days
- Search allowance: each workspace can run 10 searches in a row, then one more each minute
- Google’s limits: Google returns at most 10,000 events per search, and events past your instance’s retention aren’t found
Response Actions
- Endpoint actions: Gamebook actions that act on a device, such as isolating a device, releasing it, running an antivirus scan or quarantining a file, can’t run on a Google SecOps incident. The run is refused with a message that endpoint Gamebook permissions are not consented
- Other actions: user, email and IP blocking actions run through the workspace’s Microsoft Entra ID, Microsoft 365 and Azure network connections, and Defender indicator actions through Defender for Endpoint, when those are set up. Google SecOps itself runs no response actions for ContraForce
Rate Limits
- Shared quota: Google applies its quota to the Google Cloud project. When Google answers that the project is over its quota, ContraForce pauses every call for that project, for every workspace that uses it, for up to 15 minutes
Rotate the Service Account Key
- In the Google Cloud console, create a new JSON key for the service account, as in Step 2
- In ContraForce, open Configure Google SecOps, click Choose key file and select the new key
- Click Test connection, then Configure and save
- In the Google Cloud console, delete the old key
Troubleshooting
Related Documentation
Incident Management
Triage and resolve incidents in ContraForce
Roles and Permissions
Detailed role reference for ContraForce users
Questions about connecting Google SecOps to ContraForce? Contact us at support@contraforce.com.