When running the connector, an error is thrown in the container log and no data is ingested
Environment
OS (where OpenCTI server runs): SLES
OpenCTI version: 6.4.0
OpenCTI client: frontend
Other environment details:
Reproducible Steps
Steps to create the smallest reproducible scenario:
Add Tenable to docker-compose.yml
Restart platform
Expected Output
Vulnerability data should be imported
Actual Output
Within container logs, errors are thrown:
{"timestamp": "2024-11-20T08:19:15.219265Z", "level": "ERROR", "name": "Tenable Vuln Management", "message": "Unexpected Tenable API response", "exc_info": "Traceback (most recent call last):\n File \"/opt/opencti-connector-tenable-vuln-management/tenable_vuln_management/connector.py\", line 166, in _process\n VulnerabilityFinding.from_api_response_body(\n File \"/opt/opencti-connector-tenable-vuln-management/tenable_vuln_management/models/tenable.py\", line 392, in from_api_response_body\n return [cls(**item) for item in joined_data]\n ^^^^^^^^^^^\n File \"/usr/local/lib/python3.12/site-packages/pydantic/main.py\", line 193, in __init__\n self.__pydantic_validator__.validate_python(data, self_instance=self)\npydantic_core._pydantic_core.ValidationError: 3 validation errors for VulnerabilityFinding\nasset.last_scan_target\n Extra inputs are not permitted [type=extra_forbidden, input_value='10.41.174.113', input_type=str]\n For further information visit [https://errors.pydantic.dev/2.8/v/extra_forbidden\nplugin.has_workaround\n](https://errors.pydantic.dev/2.8/v/extra_forbidden/nplugin.has_workaround/n) Extra inputs are not permitted [type=extra_forbidden, input_value=False, input_type=bool]\n For further information visit [https://errors.pydantic.dev/2.8/v/extra_forbidden\nscan.target\n](https://errors.pydantic.dev/2.8/v/extra_forbidden/nscan.target/n) Extra inputs are not permitted [type=extra_forbidden, input_value='10.10.10.10', input_type=str]\n For further information visit [https://errors.pydantic.dev/2.8/v/extra_forbidden"](https://errors.pydantic.dev/2.8/v/extra_forbidden%22), "taskName": null, "attributes": {"error": "3 validation errors for VulnerabilityFinding\nasset.last_scan_target\n Extra inputs are not permitted [type=extra_forbidden, input_value='10.10.10.10', input_type=str]\n For further information visit [https://errors.pydantic.dev/2.8/v/extra_forbidden\nplugin.has_workaround\n](https://errors.pydantic.dev/2.8/v/extra_forbidden/nplugin.has_workaround/n) Extra inputs are not permitted [type=extra_forbidden, input_value=False, input_type=bool]\n For further information visit [https://errors.pydantic.dev/2.8/v/extra_forbidden\nscan.target\n](https://errors.pydantic.dev/2.8/v/extra_forbidden/nscan.target/n) Extra inputs are not permitted [type=extra_forbidden, input_value='10.10.10.10', input_type=str]\n For further information visit [https://errors.pydantic.dev/2.8/v/extra_forbidden"}}](https://errors.pydantic.dev/2.8/v/extra_forbidden%22%7D%7D)
Description
When running the connector, an error is thrown in the container log and no data is ingested
Environment
Reproducible Steps
Steps to create the smallest reproducible scenario:
Expected Output
Vulnerability data should be imported
Actual Output
Within container logs, errors are thrown:
{"timestamp": "2024-11-20T08:19:15.219265Z", "level": "ERROR", "name": "Tenable Vuln Management", "message": "Unexpected Tenable API response", "exc_info": "Traceback (most recent call last):\n File \"/opt/opencti-connector-tenable-vuln-management/tenable_vuln_management/connector.py\", line 166, in _process\n VulnerabilityFinding.from_api_response_body(\n File \"/opt/opencti-connector-tenable-vuln-management/tenable_vuln_management/models/tenable.py\", line 392, in from_api_response_body\n return [cls(**item) for item in joined_data]\n ^^^^^^^^^^^\n File \"/usr/local/lib/python3.12/site-packages/pydantic/main.py\", line 193, in __init__\n self.__pydantic_validator__.validate_python(data, self_instance=self)\npydantic_core._pydantic_core.ValidationError: 3 validation errors for VulnerabilityFinding\nasset.last_scan_target\n Extra inputs are not permitted [type=extra_forbidden, input_value='10.41.174.113', input_type=str]\n For further information visit [https://errors.pydantic.dev/2.8/v/extra_forbidden\nplugin.has_workaround\n](https://errors.pydantic.dev/2.8/v/extra_forbidden/nplugin.has_workaround/n) Extra inputs are not permitted [type=extra_forbidden, input_value=False, input_type=bool]\n For further information visit [https://errors.pydantic.dev/2.8/v/extra_forbidden\nscan.target\n](https://errors.pydantic.dev/2.8/v/extra_forbidden/nscan.target/n) Extra inputs are not permitted [type=extra_forbidden, input_value='10.10.10.10', input_type=str]\n For further information visit [https://errors.pydantic.dev/2.8/v/extra_forbidden"](https://errors.pydantic.dev/2.8/v/extra_forbidden%22), "taskName": null, "attributes": {"error": "3 validation errors for VulnerabilityFinding\nasset.last_scan_target\n Extra inputs are not permitted [type=extra_forbidden, input_value='10.10.10.10', input_type=str]\n For further information visit [https://errors.pydantic.dev/2.8/v/extra_forbidden\nplugin.has_workaround\n](https://errors.pydantic.dev/2.8/v/extra_forbidden/nplugin.has_workaround/n) Extra inputs are not permitted [type=extra_forbidden, input_value=False, input_type=bool]\n For further information visit [https://errors.pydantic.dev/2.8/v/extra_forbidden\nscan.target\n](https://errors.pydantic.dev/2.8/v/extra_forbidden/nscan.target/n) Extra inputs are not permitted [type=extra_forbidden, input_value='10.10.10.10', input_type=str]\n For further information visit [https://errors.pydantic.dev/2.8/v/extra_forbidden"}}](https://errors.pydantic.dev/2.8/v/extra_forbidden%22%7D%7D)
Additional information
` connector-tenable-vuln-management: image: opencti/connector-tenable-vuln-management:6.4.0 environment:
Connector's generic execution parameters
`
Screenshots (optional)