For the complete documentation index, see llms.txt. This page is also available as Markdown.
Cortex XSIAM

Field structure

Define field structures in Cortex XSIAM Data Model Rules.

Prerequisite

When creating Data Model Rules, each field used in the MODEL and RULE sections is constructed using dot notation using the following format:

xdm.<context>.[<compound>].<field>
  • xdm.<context>.[<compound>].<field>

    Example 53.

    xdm.source.host.device_id
  • xdm.<context>.<field>

    Example 54.

    xdm.source.ipv4
Part
Description

<context>

This is a composition of fields (<field>), either simple or <compound>, that are grouped together to form a logically coherent unit.

<compound>

This is a set of simple fields that are grouped together to form a meaningful group. For example, subject and recipients are part of the <compound> field called email.

<field>

This is a field that represents a primitive data type, such as a string or number or an array, or an IP address.

Note

For more information on these data model fields, see XSIAM Data Model Schema.

Using ENUM fields

For fields of the ENUM type, you can map values from a predefined list of ENUMs. For example, the field xdm.network.ip_protocol is defined as Enum.IP_PROTOCOL, so you can assign it values such as XDM_CONST.IP_PROTOCOL_TCP. The full list can be found in the automatically suggested values for the relevant fields.

This syntax is not mandatory, and you can map any STRING value, but we recommend its use for consistency across all model mapping.

[RULE: common_ngfw_modeling]
alter xdm.source.ipv4 = json_extract_scalar(actor, "$.client_ip")
| alter xdm.network.ip_protocol = if( 
    proto = 6, XDM_CONST.IP_PROTOCOL_TCP, 
    proto = 11, XDM_CONST.IP_PROTOCOL_UDP, 
    proto
);

Last updated

Was this helpful?