From 8df11654d679d54ee68dd4bf7b480cb08195a61b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Leonard?= Date: Tue, 5 Jun 2018 08:15:02 +0200 Subject: [PATCH] #270 - fix bugs in ThreatCrowd reports --- analyzers/Threatcrowd/threatcrowd_analyzer.py | 5 ++++- thehive-templates/Threatcrowd_1_0/long.html | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/analyzers/Threatcrowd/threatcrowd_analyzer.py b/analyzers/Threatcrowd/threatcrowd_analyzer.py index b6235c1e1..49cd0ef3d 100755 --- a/analyzers/Threatcrowd/threatcrowd_analyzer.py +++ b/analyzers/Threatcrowd/threatcrowd_analyzer.py @@ -24,8 +24,11 @@ def summary(self, raw): elif r == -1: level = "malicious" else: - value = "unknow" + value = "unknown" level = "info" + else: + value = "unknown" + level = "info" taxonomies.append(self.build_taxonomy(level, "Threatcrowd", "votes", value)) diff --git a/thehive-templates/Threatcrowd_1_0/long.html b/thehive-templates/Threatcrowd_1_0/long.html index f340bfca9..06bd166d5 100644 --- a/thehive-templates/Threatcrowd_1_0/long.html +++ b/thehive-templates/Threatcrowd_1_0/long.html @@ -3,7 +3,7 @@ Threatcrowd analysis for {{artifact.data}} -
+

Votes : {{content.votes}}