Open Harmedox opened 1 year ago
The significant challenges with this mapping are:
email.attachments
is an array of objects. email.attachments
array means that "is_multipart": true, "content_type": "multipart/mixed"...must be set in the STIX bundle.email.attachments.file.name
and email.attachments.file.mime_type
has to be transformed to form email-message.body_multiparts. content_type
and email-message.body_multiparts. content_disposition
Anyone with ideas on how to handle (1) and (2) above? I fixed (3) using a transformer.
@mdazam1942 @delliott90 ^^^ any thoughts?
In this case, the only way to set is_multipart
and content_type
is inside stix_shifter_modules/elastic_ecs/stix_transmission/connector.py
as part of results processing.
there are few connectors that does the same. For example: https://github.com/opencybersecurityalliance/stix-shifter/blob/705881737ee698277a7fcb3245042a733c3065f8/stix_shifter_modules/gcp_chronicle/stix_transmission/results_connector.py#L381 https://github.com/opencybersecurityalliance/stix-shifter/blob/705881737ee698277a7fcb3245042a733c3065f8/stix_shifter_modules/proofpoint/stix_transmission/results_connector.py#L41
@mdazam1942 just to confirm, does it mean patching the STIX bundle in the transmission module to add additional fields in the raw data in order for the translation module to pick them up and translate?
Correct. add additional fields in the raw data and map those fields in to_stix. Results translator class should automatically pick them up while translating to stix observable.
Elastic Email Object is currently not mapped to STIX. As an example, an Email Object
should be represented in the STIX bundle as: