Panther high experimental python

Wiz Service Account Change

This rule detects creations, updates and deletions of service accounts.

View Source

Detection Logic

from panther_wiz_helpers import wiz_actor, wiz_alert_context, wiz_success

SUSPICIOUS_ACTIONS = [
    "CreateServiceAccount",
    "DeleteServiceAccount",
    "UpdateServiceAccount",
]


def rule(event):
    if not wiz_success(event):
        return False
    return event.get("action", "ACTION_NOT_FOUND") in SUSPICIOUS_ACTIONS


def title(event):
    actor = wiz_actor(event)

    return (
        f"[Wiz]: [{event.get('action', 'ACTION_NOT_FOUND')}] action "
        f"performed by {actor.get('type')} [{actor.get('name')}]"
    )


def dedup(event):
    return event.get("id")


def alert_context(event):
    return wiz_alert_context(event)

Field Validations

Loading…

Comments (0)

Loading comments...