def rule(event):
    if all(
        [
            event.deep_get("EventID", default="") in [528, 529, 4624, 4625],
            event.deep_get("LogonType", default="") == 2,
            event.deep_get("ComputerName", default="")
            in ["%ServerSystems%", "%DomainControllers%"],
            not all(
                [
                    event.deep_get("LogonProcessName", default="") == "Advapi",
                    event.deep_get("ComputerName", default="") == "%Workstations%",
                ]
            ),
        ]
    ):
        return True
    return False
