def rule(event):
    if all(
        [
            event.deep_get("EventID", default="") == 4624,
            event.deep_get("LogonType", default="") == 3,
            event.deep_get("ProcessName", default="").endswith("scrcons.exe"),
            not event.deep_get("TargetLogonId", default="") == "0x3e7",
        ]
    ):
        return True
    return False
