def rule(event):
    if all(
        [
            event.deep_get("EventID", default="") == 4624,
            event.deep_get("LogonType", default="") == 3,
            event.deep_get("TargetUserName", default="") == "ANONYMOUS LOGON",
            event.deep_get("WorkstationName", default="") == "-",
            event.deep_get("IpAddress", default="") in ["127.0.0.1", "::1"],
        ]
    ):
        return True
    return False
