fix: [MISP Export] fix Decoded objects export

This commit is contained in:
terrtia 2024-09-05 16:52:43 +02:00
parent 0cbcf28818
commit 7bc2b16fd9
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0

View file

@ -168,7 +168,7 @@ class Decoded(AbstractDaterangeObject):
obj_attrs.append(obj.add_attribute('sha1', value=self.id))
obj_attrs.append(obj.add_attribute('mimetype', value=self.get_mimetype()))
obj_attrs.append(obj.add_attribute('malware-sample', value=self.id, data=self.get_content()))
obj_attrs.append(obj.add_attribute('malware-sample', value=self.id, data=self.get_content(r_type='bytes')))
for obj_attr in obj_attrs:
for tag in self.get_tags():
obj_attr.add_tag(tag)