sap_abap_debugger_session_activity


Description

A user started or interacted with the ABAP debugger on a production system

Query · yara_l

events:
    $e.metadata.log_type = "SAP_SECURITY_AUDIT"

    $e.target.application = $sid
    $e.principal.user.userid = $user

    %SAP_Systems_Debug_Test.SystemID = $sid
    %SAP_Systems_Debug_Test.SystemRole = "Production"

    (
      $e.additional.fields["msg_1"] =
        /^(CUK|CUL|CUM|CUN|CUO|CUP)$/
      or
      $e.principal.process.file.names = "RSTPDAMAIN"
    )

  match:
    $sid, $user over 5m

  outcome:
    $risk_score = 80
    $instances = array_distinct($e.target.resource.name)
    $message_ids = array_distinct($e.additional.fields["msg_1"])
    $message_texts = array_distinct($e.metadata.description)
    $abap_programs = array_distinct($e.principal.process.file.names)
    $transaction_codes = array_distinct($e.security_result.detection_fields["slgtc_1"])
    $client_ids = array_distinct($e.target.resource.attribute.labels["slgmand_1"])
    $terminal_ips = array_distinct($e.principal.ip)
    $hosts = array_distinct($e.principal.hostname)

  condition:
    $e
Raw source sap_abap_debugger_session_activity · YARA-L
Esc
Published by chronicle/detection-rules ↗, licensed under Apache 2.0 ↗. Reproduced here unmodified.
rule sap_abap_debugger_session_activity {

  meta:
    author = "Google Cloud Security"
    description = "A user started or interacted with the ABAP debugger on a production system"
    severity = "High"
    tactic = "TA0004"
    technique = "T1055"

  events:
    $e.metadata.log_type = "SAP_SECURITY_AUDIT"

    $e.target.application = $sid
    $e.principal.user.userid = $user

    %SAP_Systems_Debug_Test.SystemID = $sid
    %SAP_Systems_Debug_Test.SystemRole = "Production"

    (
      $e.additional.fields["msg_1"] =
        /^(CUK|CUL|CUM|CUN|CUO|CUP)$/
      or
      $e.principal.process.file.names = "RSTPDAMAIN"
    )

  match:
    $sid, $user over 5m

  outcome:
    $risk_score = 80
    $instances = array_distinct($e.target.resource.name)
    $message_ids = array_distinct($e.additional.fields["msg_1"])
    $message_texts = array_distinct($e.metadata.description)
    $abap_programs = array_distinct($e.principal.process.file.names)
    $transaction_codes = array_distinct($e.security_result.detection_fields["slgtc_1"])
    $client_ids = array_distinct($e.target.resource.attribute.labels["slgmand_1"])
    $terminal_ips = array_distinct($e.principal.ip)
    $hosts = array_distinct($e.principal.hostname)

  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.