def rule(event):
    if all(
        [
            event.deep_get("EventID", default="") == 4742,
            event.deep_get("SubjectUserName", default="") == "ANONYMOUS LOGON",
            event.deep_get("TargetUserName", default="") == "%DC-MACHINE-NAME%",
            not event.deep_get("PasswordLastSet", default="") == "-",
        ]
    ):
        return True
    return False
