From 1dfdb5a2a297da9d36ed4631e15a0b59f6c03208 Mon Sep 17 00:00:00 2001 From: Sebdraven Date: Fri, 19 Mar 2021 11:29:57 +0100 Subject: [PATCH] Update yeti.py change type attr and relation --- misp_modules/modules/expansion/yeti.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/misp_modules/modules/expansion/yeti.py b/misp_modules/modules/expansion/yeti.py index ceafca0..5792c8b 100644 --- a/misp_modules/modules/expansion/yeti.py +++ b/misp_modules/modules/expansion/yeti.py @@ -92,11 +92,14 @@ class Yeti(): def __get_attribute(self, obj_yeti): typ_attribute = self.misp_mapping[obj_yeti['type']] - attr_misp = {'type':typ_attribute, 'value': obj_yeti['value']} + attr_misp = {'type': typ_attribute, 'value': obj_yeti['value']} if typ_attribute == 'ip-src' or typ_attribute == 'ip-dst': attr_misp['object_relation'] = 'ip' elif 'domain' == typ_attribute: attr_misp['object_relation'] = 'domain' + elif 'hostname' == typ_attribute: + attr_misp['object_relation'] = 'domain' + attr_misp['type'] = 'domain' else: attr_misp['object_relation'] = None print('Attribute %s' % attr_misp)