def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\taskkill.exe"),
                    event.deep_get("OriginalFileName", default="") == "taskkill.exe",
                ]
            ),
            any(
                [
                    any(
                        [
                            " -f " in event.deep_get("CommandLine", default=""),
                            " /f " in event.deep_get("CommandLine", default=""),
                            " –f " in event.deep_get("CommandLine", default=""),
                            " —f " in event.deep_get("CommandLine", default=""),
                            " ―f " in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    any(
                        [
                            event.deep_get("CommandLine", default="").endswith(" -f"),
                            event.deep_get("CommandLine", default="").endswith(" /f"),
                            event.deep_get("CommandLine", default="").endswith(" –f"),
                            event.deep_get("CommandLine", default="").endswith(" —f"),
                            event.deep_get("CommandLine", default="").endswith(" ―f"),
                        ]
                    ),
                ]
            ),
            any(
                [
                    any(
                        [
                            " -im " in event.deep_get("CommandLine", default=""),
                            " /im " in event.deep_get("CommandLine", default=""),
                            " –im " in event.deep_get("CommandLine", default=""),
                            " —im " in event.deep_get("CommandLine", default=""),
                            " ―im " in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    any(
                        [
                            " -pid " in event.deep_get("CommandLine", default=""),
                            " /pid " in event.deep_get("CommandLine", default=""),
                            " –pid " in event.deep_get("CommandLine", default=""),
                            " —pid " in event.deep_get("CommandLine", default=""),
                            " ―pid " in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                ]
            ),
            not all(
                [
                    any(
                        [
                            "\\AppData\\Local\\Temp\\" in event.deep_get("ParentImage", default=""),
                            ":\\Windows\\Temp" in event.deep_get("ParentImage", default=""),
                        ]
                    ),
                    event.deep_get("ParentImage", default="").endswith(".tmp"),
                ]
            ),
        ]
    ):
        return True
    return False
