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