def rule(event):
    if all(
        [
            event.deep_get("ParentImage", default="").endswith("\\cmd.exe"),
            "/r" in event.deep_get("ParentCommandLine", default=""),
            any(
                [
                    event.deep_get("ParentCommandLine", default="").endswith(".bin"),
                    event.deep_get("ParentCommandLine", default="").endswith(".ico"),
                    event.deep_get("ParentCommandLine", default="").endswith(".lnk"),
                    event.deep_get("ParentCommandLine", default="").endswith(".lo"),
                    event.deep_get("ParentCommandLine", default="").endswith(".sv"),
                    event.deep_get("ParentCommandLine", default="").endswith(".usb"),
                ]
            ),
            event.deep_get("Image", default="").endswith("\\msiexec.exe"),
            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=""),
                    "https:" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
