OpenCTI-Platform / connectors

OpenCTI Connectors
https://www.opencti.io
Apache License 2.0
383 stars 415 forks source link

[Mandiant] Unexpected properties for stix2 Note #2983

Closed Megafredo closed 4 days ago

Megafredo commented 4 days ago

Description

An error is encountered when creating a stix Note in Report :

{"timestamp": "2024-11-17T05:48:28.506752Z", "level": "ERROR", "name": 
"Mandiant Threat Intelligence - Up to date", "message": "Could not 
process Report", "exc_info": "Traceback (most recent call last):\n  File
\"/opt/connector/reports.py\", line 50, in process\n    bundle = 
report.generate()\n             ^^^^^^^^^^^^^^^^^\n  File 
\"/opt/connector/reports.py\", line 90, in generate\n    
self.create_note()\n  File \"/opt/connector/reports.py\", line 286, in 
create_note\n    note = stix2.Note(\n           ^^^^^^^^^^^\n  File 
\"/usr/local/lib/python3.12/site-packages/stix2/base.py\", line 157, in 
__init__\n    raise ExtraPropertiesError(cls, 
custom_kwargs)\nstix2.exceptions.ExtraPropertiesError: Unexpected 
properties for Note: (note_types).", "taskName": null, "attributes": 
{"report_id": "24-10071352"}}

Environment

  1. OS (where OpenCTI server runs): { e.g. Mac OS 10, Windows 10, Ubuntu 16.4, etc. }
  2. OpenCTI version: { e.g. OpenCTI 1.0.2 }
  3. OpenCTI client: { e.g. frontend or python }
  4. Other environment details:

Reproducible Steps

Steps to create the smallest reproducible scenario:

  1. { e.g. Run ... }
  2. { e.g. Click ... }
  3. { e.g. Error ... }

Expected Output

Actual Output

Additional information

Screenshots (optional)