sap_gateway_ufo_table_access


Description

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

Query · yara_l

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
Raw source sap_gateway_ufo_table_access · YARA-L
Esc
Published by chronicle/detection-rules ↗, licensed under Apache 2.0 ↗. Reproduced here unmodified.
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
}

Detection rules belong to the projects that publish them and remain under their own licenses. This site indexes and links to them; it claims no rights in them.