Skip to content

Commit

Permalink
Bitcoin Abuse template
Browse files Browse the repository at this point in the history
  • Loading branch information
pjuhas authored Jun 3, 2021
1 parent 8fda399 commit bed8be8
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
56 changes: 56 additions & 0 deletions thehive-templates/BitcoinAbuse_1_0/long.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<div class="panel panel-info" ng-if="::content.recent" ng-init="recent_limit = 20">
<div class="panel-heading">
<strong>Summary</strong>
<span class="pull-right" ng-show="::content.recent.length > 20">
<a href ng-show="recent_limit===20" ng-click="recent_limit = undefined">Show All ({{::content.recent.length}})</a>
<a href ng-show="!recent_limit" ng-click="recent_limit = 20">Show less</a>
</span>
</div>

<div class="panel-body">
<table class="table table-hover">
<tr>
<th>Description</th>
<th>Time</th>
</tr>
<tr ng-repeat="r in content.recent | limitTo:recent_limit | orderBy:'-created_at'">
<td>{{r.description | ellipsis:130}}</td>
<td>{{r.created_at}}</td>
</tr>
</table>
</div>
</div>
<div class="panel panel-info" ng-if="::content.recent">
<div class="panel-heading">
<strong>Other info</strong>
</div>
<div class="panel-body">
<table class="table table-hover">
<tr>
<td>URL</td>
<td>
<span>
<i class="fa fa-search"></i>
<a ng-href="https://www.bitcoinabuse.com/reports/{{content.address}}" target="_blank">View Full Report</a>
</span>
</td>
</tr>
</table>
</div>
</div>

<!-- General error -->
<div class="panel panel-danger" ng-if="!success">
<div class="panel-heading">
<strong>{{artifact.data | fang}}</strong>
</div>
<div class="panel-body">
<dl class="dl-horizontal" ng-if="content.errorMessage">
<dt>
<i class="fa fa-warning"></i> urlscan.io:
</dt>
<dd class="wrap">{{content.errorMessage}}</dd>
</dl>
</div>
</div>

3 changes: 3 additions & 0 deletions thehive-templates/BitcoinAbuse_1_0/short.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<span class="label" ng-repeat="t in content.taxonomies" ng-class="{'info': 'label-info', 'safe': 'label-success', 'suspicious': 'label-warning', 'malicious':'label-danger'}[t.level]">
{{t.namespace}}:{{t.predicate}}="{{t.value}}"
</span>

0 comments on commit bed8be8

Please sign in to comment.