fix: Added missing add_attribute function

pull/322/head v2.4.110
chrisr3d 3 years ago
parent 6b59963a7f
commit 181e6383a3
No known key found for this signature in database
GPG Key ID: 6BBED1B63A6D639F
  1. 1
      misp_modules/lib/joe_parser.py

@ -259,6 +259,7 @@ class JoeParser():
else:
attribute = MISPAttribute()
attribute.from_dict(**{'type': 'domain', 'value': domain['@name']})
self.misp_event.add_attribute(**attribute)
reference = {'idref': attribute.uuid, 'relationship': 'contacts'}
self.add_process_reference(domain['@targetid'], domain['@currentpath'], reference)
ipinfo = self.data['ipinfo']

Loading…
Cancel
Save