From c886247a649c3b6f70463a009d4d1960824378b8 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 1 May 2019 22:32:06 +0200 Subject: [PATCH] fix: Fixed standard MISP csv format header - The csv header we can find in data produced from MISP restSearch csv format is the one to use to recognize a csv file produced by MISP --- misp_modules/modules/import_mod/csvimport.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/misp_modules/modules/import_mod/csvimport.py b/misp_modules/modules/import_mod/csvimport.py index bb86014..ec55a10 100644 --- a/misp_modules/modules/import_mod/csvimport.py +++ b/misp_modules/modules/import_mod/csvimport.py @@ -24,11 +24,11 @@ mispattributes = {'userConfig': userConfig, 'inputSource': ['file'], 'format': ' duplicatedFields = {'mispType': {'mispComment': 'comment'}, 'attrField': {'attrComment': 'comment'}} attributesFields = ['type', 'value', 'category', 'to_ids', 'comment', 'distribution'] -misp_standard_csv_header = ['uuid','event_id','category','type','value','comment','to_ids','date', - 'object_relation','object_uuid','object_name','object_meta_category'] +misp_standard_csv_header = ['uuid', 'event_id', 'category', 'type', 'value', 'comment', 'to_ids', 'date', + 'object_relation', 'attribute_tag', 'object_uuid', 'object_name', 'object_meta_category'] misp_context_additional_fields = ['event_info','event_member_org','event_source_org','event_distribution', 'event_threat_level_id','event_analysis','event_date','event_tag'] -misp_extended_csv_header = misp_standard_csv_header[:9] + ['attribute_tag'] + misp_standard_csv_header[9:] + misp_context_additional_fields +misp_extended_csv_header = misp_standard_csv_header + misp_context_additional_fields delimiters = [',', ';', '|', '/', '\t', ' ']