def rule(event):
    if all(
        [
            event.deep_get("EventID", default="") == 4720,
            "ANONYMOUS" in event.deep_get("SamAccountName", default=""),
            "LOGON" in event.deep_get("SamAccountName", default=""),
        ]
    ):
        return True
    return False
