def rule(event):
    if all(
        [
            event.deep_get("ParentImage", default="").endswith("\\cmd.exe"),
            any(
                [
                    event.deep_get("Image", default="").endswith("\\cool.exe"),
                    event.deep_get("Image", default="").endswith("\\zero.exe"),
                ]
            ),
            "Administrator" in event.deep_get("CommandLine", default=""),
            "-c" in event.deep_get("CommandLine", default=""),
            any(
                [
                    all(
                        [
                            "taskkill" in event.deep_get("CommandLine", default=""),
                            "/f" in event.deep_get("CommandLine", default=""),
                            "/im" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    "powershell" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
