Skip to content

Commit

Permalink
Update ibmxforce_lookup.py (TheHive-Project#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
Edward Gurnee authored and Vivian-Dsilva committed Sep 2, 2021
1 parent edb1adc commit a7aac84
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions analyzers/IBMXForce/ibmxforce_lookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def cleanup(self, ip_data={}, malware_data={}, dns_data={}, whois_data={}):
cats = ip_data.get('cats', [])
score = "%d [%d category(s)]" % (score_value, len(cats)) if len(cats) > 0 else score_value
families = []
detectionCoverage = []

elif self.data_type in ['domain', 'url']:
score_value = ip_data.get('result', {}).get('score', 0)
Expand All @@ -59,6 +60,7 @@ def cleanup(self, ip_data={}, malware_data={}, dns_data={}, whois_data={}):
cats = [x for x in cats.keys()]
score = "%d [%d category(s)]" % (score_value, len(cats)) if len(cats) > 0 else score_value
families = []
detectionCoverage = []

else:
score_value = malware_data.get('malware', {}).get('risk', 'low')
Expand Down

0 comments on commit a7aac84

Please sign in to comment.