Panther medium experimental python
ZIA Cloud Account Created
This rule detects when new cloud account was created.
Detection Logic
from panther_zscaler_helpers import zia_alert_context, zia_success
def rule(event):
if not zia_success(event):
return False
action = event.deep_get("event", "action", default="ACTION_NOT_FOUND")
category = event.deep_get("event", "category", default="CATEGORY_NOT_FOUND")
role_name = event.deep_get(
"event", "postaction", "role", "name", default="<ROLE_NAME_NOT_FOUND>"
).lower()
if (
action == "CREATE"
and category == "ADMINISTRATOR_MANAGEMENT"
and ("admin" in role_name or "audit" in role_name)
):
return True
return False
def title(event):
return (
f"[Zscaler.ZIA]: New admin role was created by admin with id "
f"[{event.deep_get('event', 'adminid', default='<ADMIN_ID_NOT_FOUND>')}]"
)
def alert_context(event):
return zia_alert_context(event) Field Validations
Loading…
Comments (0)
Loading comments...