Skip to main content

Adoption Guide: Google SecOps Unified Data Model (UDM) Downstream

  • Oct 15, 2026 11:28 AM UTC
  • 0 replies
  • 33 views

cyberdarren
Staff
Forum|alt.badge.img+3

 

Author: Darren Davis, Senior Technical Solutions Consultant

 

Part 2: Entity Normalization, Enrichment & Relationship GraphingPart 2: Entity Normalization, Enrichment & Relationship Graphing
 

By completing this guide, you should have a thorough, functional understanding of how the Google SecOps Unified Data Model (UDM) Entity model standardizes contextual data downstream. Designed specifically for security analysts, threat hunters, and detection engineers, this document explains how to systematically query, alert, and report on normalized Entity profiles across UDM Search, YARA-L detection rules, and  dashboards.

This guide explores the UDM Entity model from a downstream consumer's perspective, unpacking core nouns, prefix pathing, stitching mechanisms, null value handling, and applied rules to elevate your security operations.

 

Section 1: What is a UDM Entity?
 

If you completed Part 1, you know how point-in-time security telemetry maps to UDM Events. However, event logs only tell us half the story. To understand if a successful login or a process launch is actually a threat, we need context. That is where UDM Entities come in.
 

State-in-Time Contextual Profiles
 

A UDM Entity represents a state-in-time contextual profile of an asset, user, group, resource, or indicator of compromise (IOC). Examples include Active Directory user details, CMDB asset criticality, department mappings, or threat intelligence threat lists.

While UDM Events track fleeting activities (the "what happened"), UDM Entities track the state and attributes of the participants involved (the "who or what did it").
 

Downstream Enrichment and Operational Efficiency
 

Traditional SIEM solutions require you to run expensive database joins or execute on-the-fly API lookups when a rule triggers. This introduces severe latency and slows down investigations.

Google SecOps resolves this through continuous entity enrichment. The platform ingests contextual data from Active Directory, CMDBs, and cloud assets, standardizing it into UDM Entities. Downstream, when security events are ingested, Google SecOps automatically correlates and enriches point-in-time Events with these state-in-time Entity attributes. When you write a query or evaluate a rule, key attributes like department, job title, manager, or CMDB asset criticality are already compiled. This eliminates manual lookups and accelerates response times.

 

Section 2: Deep Dive into Entity Blocks and Categories
 

The UDM Entity schema organizes contextual profiles into six fundamental categories. Understanding these blocks is essential for constructing accurate correlation queries downstream.
 

The 6 Fundamental Entity Categories

  1. Metadata: Captures details about the entity record itself, including the ingestion timestamp, state history, vendor name, product name, and entity type (e.g. USER, ASSET).

  2. Entity: The identity metadata block containing core attributes of the participant. For users, this contains Active Directory details like username, email, department, title, and employee ID. For assets, it holds CMDB parameters like hostname, MAC address, IP address, operating system, and asset owner.

  3. Relations: Maps relationships between distinct entities to construct the relationship graph. Examples include User -> Device, User -> Manager, Group -> Member, or Host -> IP. This is the foundation of relationship graphing downstream.

  4. risk_score: Holds normalized risk scores (usually 0 to 100) assigned by security products or identity directories to rank threat posture.

  5. Metric: Captures numerical counts or metrics associated with the entity (e.g., login counts, total file transfers, or state metrics).

  6. Additional: A flexible bucket reserved for custom vendor-specific attributes that do not map directly to standard UDM fields.

 

Darren's Downstream Discovery: Textproto Representations
 

To see how these categories align in practice, let us examine two operational downstream representations.
 

1. User Entity (Active Directory Context)
 

This textproto example shows a standard user profile containing identity details and group relationships:

 

metadata: {
entity_type: USER
vendor_name: "Microsoft"
product_name: "Active Directory"
source_type: ENTITY
}
entity: {
user: {
userid: "jdoe"
email_addresses: "jdoe@company.com"
first_name: "John"
last_name: "Doe"
department: "Finance"
title: "Senior Accountant"
employee_id: "EMP-10294"
}
}
relations: {
relationship: MEMBER_OF
entity_type: USER_GROUP
entity: {
group: {
domain_name: "Domain Admins"
}
}
}

 

2. Asset Entity (CMDB Context)
 

This textproto example details a critical server with its host identifiers, owner, and associated risk score:

 

metadata: {
entity_type: ASSET
vendor_name: "ServiceNow"
product_name: "CMDB"
source_type: ENTITY
}
entity: {
asset: {
hostname: "finance-db-prod"
ip_addresses: "192.168.12.45"
mac_addresses: "00:50:56:AB:CD:12"
platform: WINDOWS
platform_version: "2022"
owner: {
userid: "db_admin_ops"
}
}
}
risk_score: {
score: 85
}

 

Section 3: Navigating Entity Prefixes Downstream
 

As you pivot across Search, Rules, and Parsing, the path prefix for UDM Entity fields changes. Failing to align your paths to the correct platform interface will cause queries to fail.

The Prefix Shift

  • In Search: Directly query using the entity. prefix.

  • In Rules (YARA-L): Prefix entity fields with $entity.graph.. For example, a hostname is mapped as $entity.graph.entity.asset.hostname.

  • In Parsing: CBN (Configuration-Based Normalizer) parsers write to $var.entity.category, whereas downstream systems access the unified graph using $var.graph.category.


Quick-Reference Prefix Map
 

Platform Stage

Operational Component

Path Prefix

Downstream Example

In Search & Dashboards

UDM Search Interface

entity.

entity.metadata.entity_type = "USER"

In Rules

YARA-L Detection Engine

$entity.graph.

$entity.graph.entity.user.userid = $user

In BigQuery

BigQuery SQL Engine

Standard columns

entity.metadata.entity_type

In Parsing

Configuration-Based Normalizer (CBN)

entity.

entity.idm.read_only_udm

 

Section 4: Stitching Entities to Events (Downstream Integration)
 

The ultimate power of the UDM model lies in its ability to automatically stitch state-in-time contextual profiles to incoming point-in-time Events. This correlation occurs downstream on the backend, ensuring that your threat hunting and alerting remain seamless.
 

The Stitching Nouns
 

To successfully bind entity records to event logs, Google SecOps matches identifier fields across both datasets. The critical "Stitching Nouns" include:

  • IP Address: Maps principal.ip or target.ip in firewall or web logs to the entity's IP network address.

  • MAC Address: Maps MACs between system logs and asset directories.

  • Hostname: Binds machine events directly to CMDB asset profiles.

  • Windows SID: Resolves Windows security identifiers to directory accounts.

  • Email: Uniquely binds authentication, cloud administrative events, and SaaS activity to user directory profiles.

  • Domain-Qualified Username: Connects system-specific logon names (e.g. domain\user) to standard directory identities.


Section 5: Enrichment & Correlation Rules in YARA-L
 

Let us apply this architectural knowledge to three complete, functional YARA-L detection rules. These examples demonstrate how to utilize contextual identity and asset profiles downstream.
 

Use Case 1: User Context and Active Directory Enrichment
 

This rule detects successful user logins on critical hosts where the user is a member of the high-privilege "Domain Admins" Active Directory group.
 

rule successful_login_vip_user {
meta:
author = "Darren Davis"
description = "Detects successful logins by members of the Domain Admins group"
severity = "HIGH"

events:
$event.metadata.event_type = "USER_LOGIN"
$event.security_result.action = "ALLOW"
$event.target.user.userid = $user

$entity.graph.entity.user.userid = $user
$entity.graph.relations.relationship = "MEMBER_OF"
$entity.graph.relations.entity.group.domain_name = "Domain Admins"

match:
$user over 1h

condition:
$event and $entity
}

 


Use Case 2: Asset Context and CMDB Criticality
 

This rule elevates alert severity to CRITICAL when a command-line utility executes on an endpoint designated with HIGH CMDB asset criticality.

 

rule suspicious_execution_on_critical_asset {
meta:
author = "Darren Davis"
description = "Elevates severity when cmd.exe executes on a highly critical CMDB asset"
severity = "CRITICAL"

events:
$event.metadata.event_type = "PROCESS_LAUNCH"
$event.target.process.file.full_path = "C:\\Windows\\System32\\cmd.exe"
$event.principal.hostname = $host

$entity.graph.entity.asset.hostname = $host
$entity.graph.entity.asset.criticality = "HIGH"

match:
$host over 5m

condition:
$event and $entity
}

 

Use Case 3: DLP and File Classification
 

This rule flags outbound network connections associated with files that carry restrictive DLP classifications.

 

rule dlp_restricted_file_exfiltration {
meta:
author = "Darren Davis"
description = "Detects outbound connections involving files classified as RESTRICTED"
severity = "HIGH"

events:
$event.metadata.event_type = "NETWORK_CONNECTION"
$event.network.direction = "OUTBOUND"
$event.target.file.sha256 = $file_hash

$entity.graph.entity.file.sha256 = $file_hash
$entity.graph.entity.file.classification = "RESTRICTED"

match:
$file_hash over 10m

condition:
$event and $entity
}

 

Section 6: Downstream Best Practices (Handling Null Values & Joins)
 

Writing correlation rules that combine events and entities requires a precise understanding of how the YARA-L engine evaluates unpopulated, null, or zero values. Small logical oversights here can cause critical alerts to fail silently.
 

1. The Comparison Trap with Unpopulated Fields
 

When writing inequality filters in YARA-L (such as $event.target.user.userid != "admin"), you must consider how the engine treats unpopulated (null) fields. If an incoming event lacks a value for target.user.userid, the inequality comparison does not evaluate to true. Instead, the comparison is ignored or evaluates to false, silently dropping the event. If your rule is designed to catch logins from non-admin accounts, it will fail to catch logs where the username is missing.
 

2. The coalesce Solution
 

To defend against the comparison trap, use the coalesce function. This function evaluates a list of arguments and returns the first non-null value, allowing you to establish a safe fallback. By modifying your filter to:

coalesce($event.target.user.userid, "") != "admin"

you ensure that if the username is null, it falls back to an empty string. The empty string is then successfully compared to "admin," evaluating to true and preserving the event for rule detection.
 

3. Defending Against "Inner Join" Dropouts
 

When you write a join condition between an event and an entity variable (for example, $event.principal.user.userid = $entity.graph.entity.user.userid), the YARA-L engine treats this join strictly. If an event is ingested for a user who does not have an active profile in your directory or entity graph, the join condition fails. As a result, the event is silently dropped from rule evaluation and cannot trigger the rule.

To prevent these inner-join dropouts, you must write defensive rules. Do not force strict joins on essential alerts. Instead, split your detections into two parts: an event-only rule that detects the threat globally, and a separate correlation rule that integrates the entity graph to add context or elevate severity.
 

4. Zero and Unpopulated Values in the Match Section
 

Understanding how unpopulated values behave in the match section is critical for high-performance correlation. By default, Google SecOps implicitly filters out zero and unpopulated values (empty strings "", 0 integers, false booleans, or unpopulated fields) for all placeholders used in the match section.

This default behavior is a vital safeguard. If a rule tracks brute force logins using match: $user over 5m, and the username placeholder is empty, Google SecOps will not group those unpopulated events together. Without this safeguard, millions of system logs missing user details would group under an empty string, triggering immediate, massive false positives.


Overriding with allow_zero_values
 

There are tactical situations where you explicitly want to correlate events even when the matching field is empty or unpopulated. To override the default safety rails, you can set the allow_zero_values option to true in the options: section of your YARA-L rule. This disables implicit filtering for the matching placeholder.
 

Rule Example: Allowing Zero Values in Match
 

This rule demonstrates how to use the allow_zero_values option to correlate host activity even when hostname strings are unpopulated:
 

rule correlate_activity_including_empty_hosts {
meta:
author = "Darren Davis"
description = "Correlates authentication activity across hosts, allowing empty hostnames"
severity = "LOW"

events:
$login.metadata.event_type = "USER_LOGIN"
$login.principal.hostname = $host
$login.principal.ip = $ip

match:
$host over 10m

condition:
$login

options:
allow_zero_values = true
}

 

Section 7: Out-of-Band Context: Extending the Entity Graph with Data Tables
 

Ingesting contextual profiles through standard directory connectors is ideal for enterprise-wide resources. However, real-world security operations frequently encounter critical business data that remains completely disconnected from automated IT pipelines.
 

Gaps in Standard Ingestion
 

Standard connector feeds fall short in several operational scenarios:

  • The Spreadsheet CMDB: Organizations often track specialized asset mappings, such as retail store IP ranges or home office networks, in offline spreadsheets.

  • Active Incident Watchlists: During active threat response, analysts must rapidly monitor compromised systems without waiting days for directory group changes.

  • Administrative Scanner Allowed Lists: Keeping an up-to-date, automated registry of authorized vulnerability scanners remains challenging.

  • Zero-Day Scope Lists: Ingesting raw targets from newly disclosed vulnerabilities or ad-hoc indicators of compromise.


The Solution: Extending the Graph manually
 

John Stoner wrote this awesome community guide to help with this use case! He details how reference tables can bridge these gaps and integrate directly with your downstream correlation logic. Read his full, definitive guide on the Google Cloud Security Community blog:
New to Google SecOps: An Introduction to Extending the Entity Graph with Data Tables


The YARA-L setup Block
 

To apply these manual tables, detection engineers leverage the setup block, positioned after the meta section and before the events section. Within this block, three graph commands determine how the reference table interacts with the main Entity Graph:

  • graph_override: Instructs the engine to prioritize and use the table's data instead of any existing data in the entity graph.

  • graph_exclude: Compares values in the entity graph to the data table; if a match exists, those matched values are excluded from rule evaluation.

  • graph_append: Extends the existing entity graph by appending the contents of the data table.


Data Mapping Requirements
 

To bind your manual tables to the Entity Graph downstream, you must map at least one column to an entity graph path. To achieve this in the Google SecOps interface:

  1. Navigate to your loaded Data Table and enter Edit Mode.

  2. Change the target column's data type to Unspecified. This action unlocks the entity graph mapping dropdown.

  3. Map the column to a valid UDM Entity path (such as entity.user.userid or entity.asset.hostname).

 

Section 8: Summary & Conclusion
 

Standardizing security context under the UDM Entity model is a force multiplier for threat detection. By transforming passive, point-in-time Event telemetry into an enriched, relationship-mapped graph, Google SecOps enables security teams to run advanced correlation rules at lightning speeds.
 

Core Downstream Takeaways

  • SOC Mindset Shift: Pivot from writing complex, multi-layered joins on raw text strings to evaluating clean, pre-stitched, and normalized participant blocks.

  • Handle Nulls Defensively: Leverage the coalesce function to establish safe fallbacks for unpopulated fields and write defensive rule logic to protect against inner-join dropouts.

  • Protect against Brute Matching: Appreciate the default safety rails that exclude zero values from match groupings, and only use allow_zero_values with careful planning.

  • Bridge Ingestion Gaps: Utilize the setup block and Data Tables to extend your entity graph on-the-fly, allowing you to rapidly integrate tactical spreadsheets and incident watchlists out-of-band.

By mastering these downstream Entity mechanics, you can design highly resilient, high-performance detections that protect your enterprise from sophisticated threats.