def rule(event):
    if all(
        [
            event.deep_get("EventID", default="") in [4624, 4625],
            event.deep_get("LogonType", default="") == 3,
            event.deep_get("LogonProcessName", default="") == "NtLmSsp",
            event.deep_get("WorkstationName", default="") == "%Workstations%",
            event.deep_get("ComputerName", default="") == "%Workstations%",
            not event.deep_get("TargetUserName", default="") == "ANONYMOUS LOGON",
        ]
    ):
        return True
    return False
