def rule(event):
    if all(
        [
            event.deep_get("EventID", default="") == 4698,
            event.deep_get("TaskName", default="") in ["SC Scheduled Scan", "UpdatMachine"],
        ]
    ):
        return True
    return False
