Skip to content

Commit

Permalink
#290 fix short report pb with IBM Xforce in observables list
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromeleonard committed Jun 23, 2018
1 parent dde5fba commit ec5a163
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions analyzers/Abuse_Finder/abusefinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ def summary(self, raw):
if raw['abuse_finder'] and raw['abuse_finder'].get('abuse'):
for abuse in raw['abuse_finder']['abuse']:
taxonomies.append(self.build_taxonomy("info", "Abuse_Finder", "Address", abuse))
else:
taxonomies.append(self.build_taxonomy("info", "Abuse_Finder", "Address", "None"))
return {"taxonomies": taxonomies}

return {}
Expand Down
4 changes: 3 additions & 1 deletion analyzers/IBMXForce/ibmxforce_lookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,9 @@ def summary(self, raw):
elif score_value >= 7 or score_value == 'high':
level = "malicious"

taxonomies.append(self.build_taxonomy(level, namespace, predicate, score))
#taxonomies.append(self.build_taxonomy(level, namespace, predicate, "\"{}\"".format(score)))
taxonomies.append(self.build_taxonomy(level, namespace, predicate, "{}".format(score)))


return {"taxonomies": taxonomies}

Expand Down

0 comments on commit ec5a163

Please sign in to comment.