diff --git a/analyzers/Cyberprotect/CyberprotectAnalyzer.py b/analyzers/Cyberprotect/CyberprotectAnalyzer.py index fbb9b0009..5314329c7 100755 --- a/analyzers/Cyberprotect/CyberprotectAnalyzer.py +++ b/analyzers/Cyberprotect/CyberprotectAnalyzer.py @@ -16,12 +16,12 @@ def summary(self, raw): taxonomies = [] namespace = "Cyberprotect" if self.service == 'ThreatScore': - level = 'info'; + level = 'info' value = 'not in database' - if(raw.get('data') and raw.get('scores') and len(raw.get('scores')) > 0): + if raw.get('data') and raw.get('scores') and len(raw.get('scores')) > 0: value = 'not analyzed yet' - if(raw['scores'][0].get('score')): - level = 'safe'; + if raw['scores'][0].get('score'): + level = 'safe' value = raw['scores'][0]['score'] if value >= 0.5: level = 'malicious' @@ -35,7 +35,7 @@ def run(self): if self.service == 'ThreatScore' and (self.data_type == 'domain' or self.data_type == 'ip'): try: response = requests.get("{}{}".format(self.URI, self.get_data())) - self.report(response.json()) + self.report({'result': response.json()}) except Exception as e: self.unexpectedError(e) else: diff --git a/thehive-templates/Cyberprotect_ThreatScore/long.html b/thehive-templates/Cyberprotect_ThreatScore_1_0/long.html similarity index 69% rename from thehive-templates/Cyberprotect_ThreatScore/long.html rename to thehive-templates/Cyberprotect_ThreatScore_1_0/long.html index 18a087557..714978715 100755 --- a/thehive-templates/Cyberprotect_ThreatScore/long.html +++ b/thehive-templates/Cyberprotect_ThreatScore_1_0/long.html @@ -1,23 +1,23 @@
- threatscore.cyberprotect.fr Cyberprotect threat scoring system + Cyberprotect threat scoring system
Report for {{artifact.data}}
-
+

{{content.scores.length}} scores found.

- +
Date Score
{{score.date}} {{score.score}}
-
+
No results found
diff --git a/thehive-templates/Cyberprotect_ThreatScore/short.html b/thehive-templates/Cyberprotect_ThreatScore_1_0/short.html similarity index 100% rename from thehive-templates/Cyberprotect_ThreatScore/short.html rename to thehive-templates/Cyberprotect_ThreatScore_1_0/short.html