Skip to content

Commit

Permalink
#270 - fix bugs in ThreatCrowd reports
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromeleonard committed Jun 5, 2018
1 parent 054a277 commit 8df1165
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion analyzers/Threatcrowd/threatcrowd_analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down
2 changes: 1 addition & 1 deletion thehive-templates/Threatcrowd_1_0/long.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Threatcrowd analysis for
<strong>{{artifact.data}}</strong>
</div>
<div class="panel-body" ng-if="content">
<div class="panel-body" ng-if="content.permalink">
<h4 class="dl-horizontal">
Votes : <strong>{{content.votes}}</strong>
<br/>
Expand Down

0 comments on commit 8df1165

Please sign in to comment.