sap_ftp_allowlist_empty_or_wildcarded


Description

The SAP FTP server allowlist was empty or populated with wildcard entries

Query · yara_l

events:
    $e.metadata.log_type = "SAP_SECURITY_AUDIT"
    $e.additional.fields["msg_1"] = /DU1|DU2/
    $e.principal.user.userid != ""

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

  match:
    $system_id, $user over 30m

  outcome:
    $instance = array_distinct($e.target.resource.name)
    $client_id = array_distinct($e.target.resource.attribute.labels["slgmand_1"])
    $terminal_ip = array_distinct($e.principal.ip)
    $host = array_distinct($e.principal.hostname)
    $email = array_distinct($e.additional.fields["smtp_addr_1"])
    $reason = array_distinct($e.metadata.description)
    $risk_score = 60

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

  meta:
    author = "Google Cloud Security"
    description = "The SAP FTP server allowlist was empty or populated with wildcard entries"
    severity = "medium"
    tactic = "TA0005"
    technique = "T1562.004"

  events:
    $e.metadata.log_type = "SAP_SECURITY_AUDIT"
    $e.additional.fields["msg_1"] = /DU1|DU2/
    $e.principal.user.userid != ""

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

  match:
    $system_id, $user over 30m

  outcome:
    $instance = array_distinct($e.target.resource.name)
    $client_id = array_distinct($e.target.resource.attribute.labels["slgmand_1"])
    $terminal_ip = array_distinct($e.principal.ip)
    $host = array_distinct($e.principal.hostname)
    $email = array_distinct($e.additional.fields["smtp_addr_1"])
    $reason = array_distinct($e.metadata.description)
    $risk_score = 60

  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.