Skip to content

Commit

Permalink
#599 #600 #697 Update short report to avoid being too long, remove in…
Browse files Browse the repository at this point in the history
…put in short reports, add templates folders, improve long report to see both complete input and output
  • Loading branch information
jeromeleonard committed Apr 24, 2020
1 parent 8f3a8b6 commit 689eb9b
Show file tree
Hide file tree
Showing 11 changed files with 119 additions and 22 deletions.
File renamed without changes.
8 changes: 2 additions & 6 deletions analyzers/CyberChef/cyberchef.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,10 @@ def summary(self, raw):
taxonomies = []
level = 'info'
namespace = 'CyberChef'

# Set predicate for input
predicate = 'input_data'
taxonomies.append(self.build_taxonomy(level, namespace, predicate, raw['input_data']))

# Set predicate for output_data
predicate = 'output_data'
taxonomies.append(self.build_taxonomy(level, namespace, predicate, raw['output_data']))
predicate = self.service
taxonomies.append(self.build_taxonomy(level, namespace, predicate, "baked!"))

return {"taxonomies": taxonomies}

Expand Down
16 changes: 0 additions & 16 deletions analyzers/CyberChef/long.html

This file was deleted.

37 changes: 37 additions & 0 deletions thehive-templates/CyberChef_FromBase64_1_0/long.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<style>
pre.input {
color: #a94442;
border: none;
font-size: 10px;
//word-wrap: break-word;
//word-break: break-all;
white-space: pre-wrap;
background-color: #f9f1f1;
}
pre.output {
//color: #367fa9;
border: none;
font-size: 10px;
word-wrap: break-word;
word-break: break-all;
white-space: pre-wrap;
background-color: black;
}
</style>

<div class="panel panel-info">
<div class="panel-heading">
CyberChef Data Conversion
</div>
<div class="panel-body">
<table class="table">
<tr>
<th>Input</th>
<th>Output</th>
</tr>
<td width="40%"><pre class="input">{{content.input_data }}</pre></td>
<td><pre class="output">{{content.output_data}}</pre></td>
</tr>
</table>
</div>
</div>
File renamed without changes.
37 changes: 37 additions & 0 deletions thehive-templates/CyberChef_FromCharCode_1_0/long.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<style>
pre.input {
color: #a94442;
border: none;
font-size: 10px;
//word-wrap: break-word;
//word-break: break-all;
white-space: pre-wrap;
background-color: #f9f1f1;
}
pre.output {
//color: #367fa9;
border: none;
font-size: 10px;
word-wrap: break-word;
word-break: break-all;
white-space: pre-wrap;
background-color: black;
}
</style>

<div class="panel panel-info">
<div class="panel-heading">
CyberChef Data Conversion
</div>
<div class="panel-body">
<table class="table">
<tr>
<th>Input</th>
<th>Output</th>
</tr>
<td width="40%"><pre class="input">{{content.input_data }}</pre></td>
<td><pre class="output">{{content.output_data}}</pre></td>
</tr>
</table>
</div>
</div>
3 changes: 3 additions & 0 deletions thehive-templates/CyberChef_FromCharCode_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>
37 changes: 37 additions & 0 deletions thehive-templates/CyberChef_FromHex_1_0/long.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<style>
pre.input {
color: #a94442;
border: none;
font-size: 10px;
//word-wrap: break-word;
//word-break: break-all;
white-space: pre-wrap;
background-color: #f9f1f1;
}
pre.output {
//color: #367fa9;
border: none;
font-size: 10px;
word-wrap: break-word;
word-break: break-all;
white-space: pre-wrap;
background-color: black;
}
</style>

<div class="panel panel-info">
<div class="panel-heading">
CyberChef Data Conversion
</div>
<div class="panel-body">
<table class="table">
<tr>
<th>Input</th>
<th>Output</th>
</tr>
<td width="40%"><pre class="input">{{content.input_data }}</pre></td>
<td><pre class="output">{{content.output_data}}</pre></td>
</tr>
</table>
</div>
</div>
3 changes: 3 additions & 0 deletions thehive-templates/CyberChef_FromHex_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 689eb9b

Please sign in to comment.