def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\cmd.exe"),
                    event.deep_get("OriginalFileName", default="") == "Cmd.Exe",
                ]
            ),
            "ping" in event.deep_get("CommandLine", default=""),
            "copy " in event.deep_get("CommandLine", default=""),
            any(
                [
                    " -n " in event.deep_get("CommandLine", default=""),
                    " /n " in event.deep_get("CommandLine", default=""),
                    " –n " in event.deep_get("CommandLine", default=""),
                    " —n " in event.deep_get("CommandLine", default=""),
                    " ―n " in event.deep_get("CommandLine", default=""),
                ]
            ),
            any(
                [
                    " -y " in event.deep_get("CommandLine", default=""),
                    " /y " in event.deep_get("CommandLine", default=""),
                    " –y " in event.deep_get("CommandLine", default=""),
                    " —y " in event.deep_get("CommandLine", default=""),
                    " ―y " in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
