Skip to content

Commit

Permalink
Fixed: Error should not create taxonomies
Browse files Browse the repository at this point in the history
  • Loading branch information
dadokkio committed Oct 23, 2017
1 parent 8a50139 commit db7f8ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions analyzers/EmergingThreats/emergingthreats_analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def summary(self, raw):
namespace = "ET"
predicate = self.service

if predicate in ['domain-info', 'ip-info'] and raw['reputation'] != "-":
if predicate in ['domain-info', 'ip-info'] and raw['reputation'] not in ["-", "Error"]:
for x in raw["reputation"]:
value = "%s=%d" % (x['category'], x['score'])
if x['category'] in RED_CATEGORIES and x['score'] >= 70:
Expand All @@ -50,7 +50,7 @@ def summary(self, raw):
else:
level = "safe"
taxonomies.append(self.build_taxonomy(level, namespace, predicate, value))
elif predicate == 'malware-info' and raw['events'] != "-":
elif predicate == 'malware-info' and raw['events'] not in ["-", "Error"]:
value = str(len(raw['events'])) + " signatures"
taxonomies.append(self.build_taxonomy("malicious", namespace, predicate, value))

Expand Down

0 comments on commit db7f8ce

Please sign in to comment.