Detection rules › YARA-L

sap suspected data exfiltration

Severity
medium
Time window
5m
Match by
user
Author
Google Cloud Security
Source
github.com/chronicle/detection-rules

Detects high-volume data downloads (AUY) from SAP to a local frontend file, potentially indicating exfiltration.

MITRE ATT&CK coverage

TacticTechniques
Exfiltration

Rule body

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

rule sap_suspected_data_exfiltration {

  meta:
    author = "Google Cloud Security"
    description = "Detects high-volume data downloads (AUY) from SAP to a local frontend file, potentially indicating exfiltration."
    severity = "Medium"
    tactic = "TA0010"
    technique = "T1041"

  events:
    $e.metadata.product_name = "SAP security audit"

    $e.additional.fields["msg_1"] = "AUY"

    $user = $e.principal.user.userid

  match:
    $user over 5m

  outcome:
    $event_count = count($e.metadata.product_log_id)
    $report_used = array_distinct($e.principal.process.file.names)
    $file_paths = array_distinct($e.additional.fields["param3_1"])
    $total_bytes_approx = array_distinct($e.additional.fields["param1_1"])
    $terminal_ip = array_distinct($e.principal.ip)
    $system_id = array_distinct($e.target.application)

  condition:
    $e and $event_count >= 10
}

YARA-L rule structure

Condition

Fires when at least one $e event in the 5m window and $event_count ≥ 10.

Events

$e

  • additional.fields["msg_1"] = "AUY"

Match and correlation

Match key
$user
Within
5m

Outcome

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

FieldExpression
event_countcount($e.metadata.product_log_id)
report_usedarray_distinct($e.principal.process.file.names)
file_pathsarray_distinct($e.additional.fields["param3_1"])
total_bytes_approxarray_distinct($e.additional.fields["param1_1"])
terminal_iparray_distinct($e.principal.ip)
system_idarray_distinct($e.target.application)