def rule(event):
    if all(
        [
            event.deep_get("Image", default="").endswith("\\nxc.exe"),
            any(
                [
                    " ftp " in event.deep_get("CommandLine", default=""),
                    " ldap " in event.deep_get("CommandLine", default=""),
                    " mssql " in event.deep_get("CommandLine", default=""),
                    " nfs " in event.deep_get("CommandLine", default=""),
                    " rdp " in event.deep_get("CommandLine", default=""),
                    " smb " in event.deep_get("CommandLine", default=""),
                    " ssh " in event.deep_get("CommandLine", default=""),
                    " vnc " in event.deep_get("CommandLine", default=""),
                    " winrm " in event.deep_get("CommandLine", default=""),
                    " wmi " in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
