def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\bcdedit.exe"),
                    event.deep_get("OriginalFileName", default="") == "bcdedit.exe",
                ]
            ),
            "set" in event.deep_get("CommandLine", default=""),
            any(
                [
                    all(
                        [
                            "bootstatuspolicy" in event.deep_get("CommandLine", default=""),
                            "ignoreallfailures" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    all(
                        [
                            "recoveryenabled" in event.deep_get("CommandLine", default=""),
                            "no" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
