def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\msiexec.exe"),
                    event.deep_get("OriginalFileName", default="") == "msiexec.exe",
                ]
            ),
            any(
                [
                    any(
                        [
                            "-i" in event.deep_get("CommandLine", default=""),
                            "/i" in event.deep_get("CommandLine", default=""),
                            "–i" in event.deep_get("CommandLine", default=""),
                            "—i" in event.deep_get("CommandLine", default=""),
                            "―i" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    any(
                        [
                            "-package" in event.deep_get("CommandLine", default=""),
                            "/package" in event.deep_get("CommandLine", default=""),
                            "–package" in event.deep_get("CommandLine", default=""),
                            "—package" in event.deep_get("CommandLine", default=""),
                            "―package" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    any(
                        [
                            "-a" in event.deep_get("CommandLine", default=""),
                            "/a" in event.deep_get("CommandLine", default=""),
                            "–a" in event.deep_get("CommandLine", default=""),
                            "—a" in event.deep_get("CommandLine", default=""),
                            "―a" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    any(
                        [
                            "-j" in event.deep_get("CommandLine", default=""),
                            "/j" in event.deep_get("CommandLine", default=""),
                            "–j" in event.deep_get("CommandLine", default=""),
                            "—j" in event.deep_get("CommandLine", default=""),
                            "―j" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                ]
            ),
            any(
                [
                    "-q" in event.deep_get("CommandLine", default=""),
                    "/q" in event.deep_get("CommandLine", default=""),
                    "–q" in event.deep_get("CommandLine", default=""),
                    "—q" in event.deep_get("CommandLine", default=""),
                    "―q" in event.deep_get("CommandLine", default=""),
                ]
            ),
            any(
                [
                    "http" in event.deep_get("CommandLine", default=""),
                    "\\\\" in event.deep_get("CommandLine", default=""),
                ]
            ),
            not all(
                [
                    "\\AppData\\Local\\Temp\\OpenOffice"
                    in event.deep_get("CommandLine", default=""),
                    "Installation Files\\openoffice" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
