Detection rules › YARA-L

sap system or client configuration change

Severity
high
Time window
1h
Match by
user
Author
Google Cloud Security
Source
github.com/chronicle/detection-rules

Detects changes to either Global System Changeability (EU1) or Client-Specific Configuration (EU2/SCC4).

MITRE ATT&CK coverage

TacticTechniques
Defense Impairment

Rule body

// Copyright 2026 Google LLC. Licensed under Apache-2.0.

rule sap_system_or_client_configuration_change {
  meta:
    author = "Google Cloud Security"
    description = "Detects changes to either Global System Changeability (EU1) or Client-Specific Configuration (EU2/SCC4)."
    severity = "High"
    tactic = "TA0005"
    technique = "T1562.001"

  events:
    $e.metadata.log_type = "SAP_SECURITY_AUDIT"

        (
            $e.additional.fields["msg_1"] = "EU1" or
            $e.additional.fields["msg_1"] = "EU2"
        )


    $user = $e.principal.user.userid

  match:
    $user over 1h

  outcome:
    $risk_score = max(if($e.additional.fields["msg_1"] = "EU1", 95, 60))

    $client = array_distinct($e.target.resource.attribute.labels["slgmand"])
    $principal_user = array_distinct($user)
    $msg_id = array_distinct($e.additional.fields["msg_1"])
    $terminal_ip = array_distinct($e.principal.ip)
    $details = array_distinct($e.metadata.description)

  condition:
    $e
}

YARA-L rule structure

Condition

Fires when at least one $e event in the 1h window.

Events

$e

  • metadata.log_type = "SAP_SECURITY_AUDIT"
  • additional.fields["msg_1"] = "EU1" or "EU2"

Match and correlation

Match key
$user
Within
1h

Outcome

Outcome variables add context to a detection. When the rule generates an alert, $risk_score is displayed with it.

FieldExpression
risk_scoremax(if($e.additional.fields["msg_1"] = "EU1", 95, 60))
clientarray_distinct($e.target.resource.attribute.labels["slgmand"])
principal_userarray_distinct($user)
msg_idarray_distinct($e.additional.fields["msg_1"])
terminal_iparray_distinct($e.principal.ip)
detailsarray_distinct($e.metadata.description)