> For the complete documentation index, see [llms.txt](https://herd-security.gitbook.io/herd-security-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://herd-security.gitbook.io/herd-security-docs/setup-and-integrations/settings/google-secops.md). Agents can also search and read this documentation through its [MCP server](https://herd-security.gitbook.io/herd-security-docs/~gitbook/mcp).

# Connect Google SecOps

Connect Google SecOps (Chronicle) to Herd in both directions: send SecOps detections to Herd as human-risk signals, and send Herd's security events into your Chronicle instance.

Herd's Google SecOps (Chronicle) integration runs in two directions. You can use either or both.

* **Inbound: SecOps alerts into Herd.** SecOps posts rule detections to Herd. Each detection about a person can raise their risk score and assign them a corrective training.
* **Outbound: Herd events into SecOps.** Herd sends its own security and risk events to your Chronicle instance through the ingestion API, so your SOC sees them next to everything else.

***

## What you need

* A Google SecOps (Chronicle) instance. For outbound, its region and customer ID.
* For outbound, a Google Cloud service account whose JSON key has the Chronicle ingestion role.
* For inbound, the ability to set up a webhook notification for your detection rules in SecOps.
* In Herd, the **integrations** permission.

***

## Inbound: SecOps alerts into Herd

### 1. Get the webhook URL and secret

1. In **Settings → Integrations**, open **Google SecOps** (in the **Security & SIEM** section). Under **Inbound: SecOps Alerts into Herd** the card shows your organization's webhook URL. Use the copy button.
2. SecOps authenticates with the bearer secret from **SIEM & DLP Webhooks**. If none exists yet, the card says so. Open [SIEM / DLP Webhooks](https://herd-security.gitbook.io/herd-security-docs/setup-and-integrations/settings/siem-dlp-webhooks.md), select **Generate**, and copy the secret when it's shown. Herd shows it only once.

This is the same URL and secret your other security tools use. Herd accepts SecOps detection payloads on it directly, so no reformatting is needed.

### 2. Point SecOps at Herd

In SecOps, set up a webhook notification for the rules you want and give it the URL above. Send the secret in the `Authorization` header as `Bearer <secret>`. The exact menus are in Google's SecOps documentation.

### 3. Decide which detections count

A detection raises a person's risk score. It assigns training only when its alert type is mapped.

In **SIEM & DLP Webhooks**, add an alert mapping for each rule you want to act on. The **Alert Type** is the rule name exactly as SecOps sends it, and **Source** is `google-secops`. See [Alert-to-training mappings](https://herd-security.gitbook.io/herd-security-docs/setup-and-integrations/settings/siem-dlp-webhooks.md#alert-to-training-mappings).

### What Herd reads from each detection

| Herd needs       | Where Herd looks                                                                                                                                                                                                         |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| The person       | An email address in the detection's references, checking the `principal`, `target`, `src` and `about` users in that order (`emailAddresses`, then `userid`). Failing that, `userEmail` or `user_email` on the detection. |
| Alert type       | `ruleName` (or `rule_name`). If it's missing, `secops_detection`.                                                                                                                                                        |
| Severity         | The detection's severity, or a `severity` rule label. Read as `critical`, `high` or `medium`. Anything else counts as low.                                                                                               |
| Event ID         | The detection `id`. If it's missing, Herd builds a stable one, so a redelivered notification is counted once.                                                                                                            |
| When it happened | `detectionTime`, then `createdTime`.                                                                                                                                                                                     |

A notification can hold up to 100 detections. Herd processes none of a notification that holds more.

A detection with no email address is skipped. Herd doesn't guess a person from a hostname or an account name.

***

## Outbound: Herd events into SecOps

### 1. Create a service account in Google Cloud

Create a service account for Herd and grant it the Chronicle ingestion role. Create a JSON key for it and keep the file for step 2. Herd uses the key to get a token for the Chronicle ingestion API.

### 2. Connect in Herd

1. In **Settings → Integrations → Google SecOps**, open **Google SecOps Configuration Settings**.
2. Fill in the form:
   * **Region**: the regional Chronicle deployment your SecOps instance runs in. The choices are United States, Europe (multi-region), Europe (London), Asia (Singapore), Australia (Sydney) and Middle East (Tel Aviv).
   * **Customer ID**: your Chronicle customer ID, a GUID. You find it in SecOps under **Settings > Profile**.
   * **Log Type**: the Chronicle log type Herd events are ingested under, in UPPER\_SNAKE\_CASE and at most 64 characters. The default is `HERD_SECURITY_EVENTS`.
   * **Service Account Key (JSON)**: paste the whole JSON key. Herd stores it encrypted. When you edit the settings later, leave the masked value as it is to keep the current key.
   * **Event Selection**: tick the event sources to send. Leave all of them unticked to send everything.
3. Select **Connect Google SecOps** (**Save Configuration** once connected).
4. If the card offers **Enable delivery**, select it. Then select **Send test event**, which works only while delivery is enabled. Herd sends a test entry to your instance right away and reports whether it was ingested.

### Event Selection

The sources you can choose from are:

* Phishing simulations
* Smishing simulations
* Training outcomes
* Compliance attestations
* Okta posture findings
* AI findings
* Ingested SIEM alerts
* Google Workspace / Microsoft 365 security alerts
* Google Workspace app-access posture
* GitHub code-security findings

AI findings are sent when they are created, except findings held for triage (lower-confidence findings awaiting an admin's decision). A held finding is sent only once an admin triages or remediates it, or a later higher-confidence hit confirms it. A finding dismissed as a false positive is never sent.

### What Herd sends

Each event goes out as one log entry in your chosen log type, a JSON object with these fields:

* `type`: always `security_event`
* `eventId`, `source`, `eventType`, `severity` and `outcome`
* `occurredAt`: an ISO 8601 time. SecOps uses it as the entry's timestamp.
* `actorUserId`: the person's Herd user ID, or null. It isn't an email address or a name.
* `actorEmail`: the person's email address, or null. SecOps can use it as the person on the event. It is null when the event has no person, and for Herd staff in your organization.

### Delivery health

The card shows **Active**, **Degraded** or **Disabled**, the time of the **Last successful delivery**, and a count of consecutive failures with the last error.

* Herd tries to send each event up to five times. Retries wait 1, 2, 4 and 8 minutes, and a rejection that can't succeed on retry (such as a rejected key) stops sooner. An event that runs out of attempts is marked **DEAD**.
* After three failures in a row, Herd pauses delivery for 15 minutes. The card says when delivery resumes.
* **Show recent deliveries** lists the latest deliveries with their status (**DELIVERED**, **DEAD** or still waiting).
* **Disable delivery** stops sending and keeps your settings. **Enable delivery** starts again.

***

## Stop the integration

* To stop **inbound**, remove the webhook notification in SecOps, or rotate the webhook secret in **SIEM & DLP Webhooks**.
* To stop **outbound**, select **Disable delivery**.
* To remove the connection, select **Disconnect** and confirm. Herd stops pushing events, drops queued deliveries and deletes the stored service account key. To reconnect, upload the key again. You can also delete the key in Google Cloud.
