mirror of https://github.com/MISP/MISP
add: [stix import] Importing STIX header description as comment attribute
parent
fa462f5db5
commit
60548dc184
|
@ -202,6 +202,9 @@ class StixParser():
|
|||
def buildExternalDict(self):
|
||||
self.dictTimestampAndDate()
|
||||
self.eventInfo()
|
||||
if hasattr(self.event.stix_header, 'description'):
|
||||
self.misp_event.add_attribute(**{'type': 'comment', 'value': self.event.stix_header.description.value,
|
||||
'comment': 'Imported from STIX header description'})
|
||||
if self.event.indicators:
|
||||
self.parse_external_indicators(self.event.indicators)
|
||||
if self.event.observables:
|
||||
|
|
Loading…
Reference in New Issue