Detection rules › YARA-L

sap function module testing detected

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

Detects direct execution and testing of SAP Function Modules via SE37 test frame. This identifies correlation between a transaction start (AU7) and a function module call (BU4) in close succession

MITRE ATT&CK coverage

TacticTechniques
Execution

Rule body

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

rule sap_function_module_testing_detected {

  meta:
    author = "Google Cloud Security"
    description = "Detects direct execution and testing of SAP Function Modules via SE37 test frame. This identifies correlation between a transaction start (AU7) and a function module call (BU4) in close succession"
    severity = "Medium"
    tactic = "TA0002"
    technique = "T1129"

  events:
    $e.security_result.detection_fields["slgtc_1"] = /^SE37$|^SE80$|^SEU_INT$/
    $e.principal.process.file.names = "RS_TESTFRAME_CALL"

    $user = $e.principal.user.userid

  match:
    $user over 1h

  outcome:
    $resource_accessed = array_distinct($e.additional.fields["param1_1"])
    $event_name = array_distinct($e.security_result.summary)
    $description = array_distinct($e.metadata.description)
    $msg = array_distinct($e.additional.fields["msg_1"])
    $src_ip = array_distinct($e.principal.ip)

  condition:
    $e
}

YARA-L rule structure

Condition

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

Events

$e

  • security_result.detection_fields["slgtc_1"] matches "^SE37$|^SE80$|^SEU_INT$"
  • principal.process.file.names = "RS_TESTFRAME_CALL"

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
resource_accessedarray_distinct($e.additional.fields["param1_1"])
event_namearray_distinct($e.security_result.summary)
descriptionarray_distinct($e.metadata.description)
msgarray_distinct($e.additional.fields["msg_1"])
src_iparray_distinct($e.principal.ip)