Skip to content

Commit

Permalink
Fixes #269: Added first GreyNoise template.
Browse files Browse the repository at this point in the history
  • Loading branch information
3c7 committed Jun 4, 2018
1 parent 735b770 commit 6093ce5
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
38 changes: 38 additions & 0 deletions thehive-templates/GreyNoise_2_3/long.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<div class="panel panel-info" ng-if="success">
<div class="panel-heading">
GreyNoise results for <strong>{{artifact.data}}</strong>
</div>
<div class="panel-body">
<table class="table" ng-if="content.records">
<thead>
<th>Category</th>
<th>Confidence</th>
<th>Last update</th>
<th>Name</th>
<th>Tags</th>
<th>Metadata</th>
</thead>
<tbody ng-repeat="record in content.records | orderBy:'-last_updated'">
<tr>
<td>{{record.category}}</td>
<td><span class="label" ng-class="{'high': 'label-success', 'low': 'label-warning'}[record.confidence]">{{record.confidence}}</span></td>
<td>{{record.last_updated}}</td>
<td>{{record.name}}</td>
<td><span class="label label-warning" ng-if="content.metadata.tor">Tor-Node</span></td>
<td><pre>{{record.metadata}}</pre></td>
</tr>
</tbody>
</table>
<p ng-ig="!content.records">No records found for {{artifact.data}}.</p>
</div>
</div>

<!-- General error -->
<div class="panel panel-danger" ng-if="!success">
<div class="panel-heading">
<strong>{{(artifact.data || artifact.attachment.name) | fang}}</strong>
</div>
<div class="panel-body">
{{content.errorMessage}}
</div>
</div>
3 changes: 3 additions & 0 deletions thehive-templates/GreyNoise_2_3/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 6093ce5

Please sign in to comment.