Detection rules › YARA-L

sap gateway ufo table access

Severity
high
Time window
30m
Match by
source_ip, user
Author
Google Cloud Security
Source
github.com/chronicle/detection-rules

Detects external RFC calls to generic table-read modules via the SAP Gateway.

MITRE ATT&CK coverage

TacticTechniques
Discovery

Rule body

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

rule sap_gateway_ufo_table_access {

  meta:
    author = "Google Cloud Security"
    description = "Detects external RFC calls to generic table-read modules via the SAP Gateway."
    severity = "High"
    tactic = "TA0007"
    technique = "T1082"

  events:
    $e.metadata.product_name = "SAP_GATEWAY"

    (
      $e.security_result.summary = /RFC_READ_TABLE|BBP_RFC_READ_TABLE|RFC_GET_TABLE_ENTRIES/ nocase or
      $e.metadata.description = /RFC_READ_TABLE/ nocase
    )

    $user = $e.principal.user.userid
    $source_ip = $e.principal.ip
    $external_tp = $e.target.process.file.full_path

    not $user in %sap_service_accounts.name

  match:
    $user, $source_ip over 30m

  outcome:
    $risk_score = 40
    $calling_program = array_distinct($external_tp)
    $target_function = array_distinct($e.security_result.summary)
    $gateway_action = array_distinct($e.security_result.action)

  condition:
    $e
}

YARA-L rule structure

Condition

Fires when at least one $e event in the 30m window.

Events

$e

  • security_result.summary matches "RFC_READ_TABLE|BBP_RFC_READ_TABLE|RFC_GET_TABLE_ENTRIES"
  • metadata.description matches "RFC_READ_TABLE"
  • principal.user.userid in "%sap_service_accounts.name"

Match and correlation

Match key
$source_ip, $user
Within
30m

Outcome

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

FieldExpression
risk_score40
calling_programarray_distinct($external_tp)
target_functionarray_distinct($e.security_result.summary)
gateway_actionarray_distinct($e.security_result.action)