OpenCTI-Platform / connectors

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

[Mandiant] Remove empty report imported with Indicator #2170

Closed Lhorus6 closed 3 months ago

Lhorus6 commented 4 months ago

Description

Currently, the connector imports with empty old report indicators. These reports are imported when the connector looks to see if a report is attached to the indicator it's importing (here). The problems with importing these reports are as follows:

@helene-nguyen and I worked out how to retrieve the report with all the context, but it doesn't make sense. The preferred solution would be not to import these reports. Here's why:

Proposed Solution

In terms of workload, this seems very limited. From what we've seen with @helene-nguyen, all we need to do is delete this loop and we're done : https://github.com/OpenCTI-Platform/connectors/blob/777e71a9b7a8271c5be55421cec96fdb04ff44a4/external-import/mandiant/src/connector/indicators.py#L163