From 5336ad7b7e1afae51620ef5d1d1368a7e791b630 Mon Sep 17 00:00:00 2001 From: Richard van den Berg Date: Mon, 8 Feb 2016 17:42:24 +0100 Subject: [PATCH] Set conditions for simple observables --- app/files/scripts/misp2cybox.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/files/scripts/misp2cybox.py b/app/files/scripts/misp2cybox.py index 137b4a484..0a9d772ee 100644 --- a/app/files/scripts/misp2cybox.py +++ b/app/files/scripts/misp2cybox.py @@ -160,6 +160,7 @@ def generateSimpleObservable(indicator, attribute): indicator.add_indicator_type(indicatorType) new_object = constructor() setattr(new_object, cybox_name_attribute[cyboxName], attribute["value"]) + setattr(getattr(new_object, cybox_name_attribute[cyboxName]), "condition", "Equals") return new_object def generateTM(indicator, attribute):