Google Chronicle high experimental yara-l
sap_privileged_account_master_record_modified
A privileged SAP account's user master record or authorizations were modified
Detection Logic
/*
* Copyright 2026 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES
OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
rule sap_privileged_account_master_record_modified {
meta:
author = "Google Cloud Security"
description = "A privileged SAP account's user master record or authorizations were modified"
severity = "high"
tactic = "TA0003"
technique = "T1098"
events:
$e.metadata.log_type = "SAP_SECURITY_AUDIT"
(
$e.additional.fields["msg"] = /^(AU7
| AU8
| AU9
| AUA
| AUB
| AUD
| BU2)$/ or
$e.additional.fields["msg_1"] = /^(AU7
| AU8
| AU9
| AUA
| AUB
| AUD
| BU2)$/
)
not $e.principal.user.userid in %SAP_ChangeUserMasterDataExcludedUsers.userid
$target_user = $e.additional.fields["param1"]
$target_user_1 = $e.additional.fields["param1_1"]
(
$target_user in %SAP_PrivilegedUsers.userid or
$target_user_1 in %SAP_PrivilegedUsers.userid
)
$user = strings.coalesce($e.additional.fields["param1_1"], $e.additional.fields["param1"])
match:
$user over 30m
outcome:
$risk_score = 65
$changed_user = array_distinct($target_user)
$changed_user_1 = array_distinct($target_user_1)
$sap_instance = array_distinct($e.target.resource.name)
$system_id = array_distinct($e.target.application)
$ip = array_distinct($e.principal.ip)
$host = array_distinct($e.principal.hostname)
condition:
$e
} Field Validations
Loading…
Comments (0)
Loading comments...