def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\bcdedit.exe"),
                    event.deep_get("OriginalFileName", default="") == "bcdedit.exe",
                ]
            ),
            any(
                [
                    "delete" in event.deep_get("CommandLine", default=""),
                    "deletevalue" in event.deep_get("CommandLine", default=""),
                    "import" in event.deep_get("CommandLine", default=""),
                    "safeboot" in event.deep_get("CommandLine", default=""),
                    "network" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
