connectors icon indicating copy to clipboard operation
connectors copied to clipboard

[threatmatch] missing 'description' field

Open raugier opened this issue 8 months ago • 1 comments

Description

When starting the ThreatMatch connector, it complains about missing a "description" field. Nothing gets imported

Environment

  1. OS (where OpenCTI server runs): Official container image
  2. OpenCTI version: 6.6.14
  3. OpenCTI client: python
  4. Other environment details:

Reproducible Steps

Steps to create the smallest reproducible scenario:

  1. Start the connector
  2. { e.g. Click ... }
  3. { e.g. Error ... }

Expected Output

Actual Output

{
  "timestamp": "2025-06-05T14:59:45.784602Z",
  "level": "ERROR",
  "name": "ThreatMatch",
  "message": "'description'",
  "exc_info": "Traceback (most recent call last):\n  File \"/opt/opencti-connector-threatmatch/threatmatch.py\", line 196, in run\n    self._process_list(\n  File \"/opt/opencti-connector-threatmatch/threatmatch.py\", line 115, in _process_list\n    bundle = self._get_item(token, type, item)\n  File \"/opt/opencti-connector-threatmatch/threatmatch.py\", line 104, in _get_item\n    object[\"description\"], \"html.parser\"\nKeyError: 'description'"
}

Additional information

Screenshots (optional)

raugier avatar Jun 05 '25 15:06 raugier

This issue is fixed in this PR: https://github.com/OpenCTI-Platform/connectors/pull/4074

pietrocapece avatar Jun 09 '25 08:06 pietrocapece