mirror of https://github.com/MISP/misp-modules
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 MISPpull/304/head
parent
f900cb7c68
commit
c886247a64
|
@ -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', ' ']
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue