def rule(event):
    if any(
        [
            any(
                [
                    any(
                        [
                            event.deep_get("Image", default="").endswith("\\NirCmd.exe"),
                            event.deep_get("OriginalFileName", default="") == "NirCmd.exe",
                        ]
                    ),
                    any(
                        [
                            " execmd " in event.deep_get("CommandLine", default=""),
                            ".exe script " in event.deep_get("CommandLine", default=""),
                            ".exe shexec " in event.deep_get("CommandLine", default=""),
                            " runinteractive " in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                ]
            ),
            all(
                [
                    any(
                        [
                            " exec " in event.deep_get("CommandLine", default=""),
                            " exec2 " in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    any(
                        [
                            " show " in event.deep_get("CommandLine", default=""),
                            " hide " in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
