cyfirma decyfir Modeling Rule

Modeling Rule

DeCYFIR

Details

IDcyfirma_decyfir_ModelingRule
From Version8.4.0

Rules (XIF)

[MODEL: dataset = "cyfirma_decyfir_raw"]
alter
    user = trim(coalesce(modified_by, principal, uid))
| alter
    user_parsed = if(user ~= "^\[",arrayindex(regextract(user, "^\[([^|]+)\|"), 0),user)
| alter
    xdm.event.original_event_type = coalesce(event_action, event_type),
    xdm.event.description = coalesce(name,asset_comments),
    xdm.source.user.username = user_parsed,
    xdm.source.user.identifier = uid,
    xdm.source.ipv4 = if(is_ipv4(ip),ip,null),
    xdm.source.ipv6 = if(is_ipv6(ip),ip,null),
    xdm.target.resource.name = asset_name,
    xdm.target.resource.type = asset_type,
    xdm.target.application.publisher = vendor,
    xdm.target.application.version = version,
    xdm.event.outcome = if(event_type ~= "SUCCESS", XDM_CONST.OUTCOME_SUCCESS,event_type ~= "FAILED",XDM_CONST.OUTCOME_FAILED, event_type ~= "AUTHENTICATION_ATTEMPT",XDM_CONST.OUTCOME_UNKNOWN,event_type),
    xdm.source.user.upn = if(user_parsed ~= "@",user_parsed,null),
    xdm.event.operation = if(event_action ~= "create", XDM_CONST.OPERATION_TYPE_CREATE, event_action ~= "delete", XDM_CONST.OPERATION_TYPE_DELETE, event_action ~= "update" or event_action ~= "modify", XDM_CONST.OPERATION_TYPE_UPDATE, event_action),
    xdm.event.type = source_log_type;

Schema

cyfirma_decyfir_raw

Field Type Array?
asset_comments string
asset_name string
asset_type string
event_action string
event_type string
ip string
modified_by string
name string
principal string
source_log_type string
uid string
vendor string
version string
Raw JSON
{
    "cyfirma_decyfir_raw": {
        "principal": {
            "type": "string",
            "is_array": false
        },
        "uid": {
            "type": "string",
            "is_array": false
        },
        "event_type": {
            "type": "string",
            "is_array": false
        },
        "ip": {
            "type": "string",
            "is_array": false
        },
        "name": {
            "type": "string",
            "is_array": false
        },
        "asset_comments": {
            "type": "string",
            "is_array": false
        },
        "event_action": {
            "type": "string",
            "is_array": false
        },
        "asset_name": {
            "type": "string",
            "is_array": false
        },
        "vendor": {
            "type": "string",
            "is_array": false
        },
        "modified_by": {
            "type": "string",
            "is_array": false
        },
        "version": {
            "type": "string",
            "is_array": false
        },
        "asset_type": {
            "type": "string",
            "is_array": false
        },
        "source_log_type": {
            "type": "string",
            "is_array": false
        }
    }
}