From d0f42c1772cdef93e3bb260e99b4cd0b930e1772 Mon Sep 17 00:00:00 2001 From: Sebdraven Date: Wed, 20 Jun 2018 15:07:55 +0200 Subject: [PATCH] add comment of attributes --- misp_modules/modules/expansion/onyphe_full.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/misp_modules/modules/expansion/onyphe_full.py b/misp_modules/modules/expansion/onyphe_full.py index eaf7a37..ba27e11 100644 --- a/misp_modules/modules/expansion/onyphe_full.py +++ b/misp_modules/modules/expansion/onyphe_full.py @@ -197,11 +197,13 @@ def expand_pastries(api, misperror, **kwargs): if 'hostname' in item: domains.extend(item['hostname']) - r.append({'types': ['url'], 'values': urls_pasties, - 'categories': ['External analysis']}) + r.append({'types': ['url'], + 'values': urls_pasties, + 'categories': ['External analysis'], + 'comment':'URLs of pasties where %s has found' % ip}) r.append({'types': ['domain'], 'values': list(set(domains)), 'categories': ['Network activity'], - 'comment': 'domains found in pasties of Onyphe'}) + 'comment': 'Domains found in pasties of Onyphe'}) r.append({'types': ['ip-dst'], 'values': list(set(ips)), 'categories': ['Network activity'],