def rule(event):
    if any(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\nc.exe"),
                    event.deep_get("Image", default="").endswith("\\ncat.exe"),
                    event.deep_get("Image", default="").endswith("\\netcat.exe"),
                ]
            ),
            any(
                [
                    " -lvp " in event.deep_get("CommandLine", default=""),
                    " -lvnp" in event.deep_get("CommandLine", default=""),
                    " -l -v -p " in event.deep_get("CommandLine", default=""),
                    " -lv -p " in event.deep_get("CommandLine", default=""),
                    " -l --proxy-type http " in event.deep_get("CommandLine", default=""),
                    " -vnl --exec " in event.deep_get("CommandLine", default=""),
                    " -vnl -e " in event.deep_get("CommandLine", default=""),
                    " --lua-exec " in event.deep_get("CommandLine", default=""),
                    " --sh-exec " in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
