def rule(event):
    if all(
        [
            event.deep_get("EventID", default="") == 4699,
            not any(
                [
                    event.deep_get("TaskName", default="")
                    == "\\Microsoft\\Windows\\RemovalTools\\MRT_ERROR_HB",
                    "\\Mozilla\\Firefox Default Browser Agent "
                    in event.deep_get("TaskName", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
