From d31ec7a73c8ff8bde29d21cc830011e79852c3db Mon Sep 17 00:00:00 2001 From: Jessy Campos Date: Tue, 26 Jul 2016 13:13:29 -0400 Subject: [PATCH] Add a method to add a textual detection name under the 'Antivirus detection' category --- pymisp/api.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pymisp/api.py b/pymisp/api.py index 3ae0d12..266fb35 100644 --- a/pymisp/api.py +++ b/pymisp/api.py @@ -451,6 +451,11 @@ class PyMISP(object): attributes.append(self._prepare_full_attribute(category, 'link', link, to_ids, comment, distribution)) return self._send_attributes(event, attributes, proposal) + def add_detection_name(self, event, name, category='Antivirus detection', to_ids=False, comment=None, distribution=None, proposal=False): + attributes = [] + attributes.append(self._prepare_full_attribute(category, 'text', name, to_ids, comment, distribution)) + return self._send_attributes(event, attributes, proposal) + def add_filename(self, event, filename, category='Artifacts dropped', to_ids=False, comment=None, distribution=None, proposal=False): attributes = [] attributes.append(self._prepare_full_attribute(category, 'filename', filename, to_ids, comment, distribution))