def rule(event):
    if any(
        [
            all(
                [
                    event.deep_get("EventID", default="") == 4776,
                    event.deep_get("Workstation", default="") == "RULER",
                ]
            ),
            all(
                [
                    event.deep_get("EventID", default="") in [4624, 4625],
                    event.deep_get("WorkstationName", default="") == "RULER",
                ]
            ),
        ]
    ):
        return True
    return False
