Panther medium experimental python
Google Workspace Apps Marketplace Allowlist
Google Workspace Marketplace application allowlist settings were modified.
Detection Logic
def rule(event):
# Return True to match the log event and trigger an alert.
setting_name = event.deep_get("parameters", "SETTING_NAME", default="<NO_SETTING_NAME>")
old_val = event.deep_get("parameters", "OLD_VALUE", default="<NO_OLD_VALUE_FOUND>")
new_val = event.deep_get("parameters", "NEW_VALUE", default="<NO_NEW_VALUE_FOUND>")
return setting_name == "ENABLE_G_SUITE_MARKETPLACE" and old_val != new_val
def title(event):
# (Optional) Return a string which will be shown as the alert title.
# If no 'dedup' function is defined, the return value of this
# method will act as deduplication string.
value_dict = {
"DEFAULT": "DEFAULT",
"1": "Don't allow users to install and run apps from the Marketplace",
"2": "Allow users to install and run any app from the Marketplace",
"3": "Allow users to install and run only selected apps from the Marketplace",
}
old_val = event.deep_get("parameters", "OLD_VALUE", default="<NO_OLD_VALUE_FOUND>")
new_val = event.deep_get("parameters", "NEW_VALUE", default="<NO_NEW_VALUE_FOUND>")
actor = event.deep_get("actor", "email", default="<NO_EMAIL_FOUND>")
return (
f"Google Workspace User [{actor}] "
f"made an application allowlist setting change from [{value_dict.get(str(old_val))}] "
f"to [{value_dict.get(str(new_val))}]"
) Field Validations
Loading…
Comments (0)
Loading comments...