Skip to content

Commit 59375f1

Browse files
committed
#599 #600 #697 Update short report to avoid being too long, remove input in short reports, add templates folders, improve long report to see both complete input and output
1 parent 9c1fda3 commit 59375f1

File tree

11 files changed

+119
-22
lines changed

11 files changed

+119
-22
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.

analyzers/CyberChef/cyberchef.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,10 @@ def summary(self, raw):
1616
taxonomies = []
1717
level = 'info'
1818
namespace = 'CyberChef'
19-
20-
# Set predicate for input
21-
predicate = 'input_data'
22-
taxonomies.append(self.build_taxonomy(level, namespace, predicate, raw['input_data']))
2319

2420
# Set predicate for output_data
25-
predicate = 'output_data'
26-
taxonomies.append(self.build_taxonomy(level, namespace, predicate, raw['output_data']))
21+
predicate = self.service
22+
taxonomies.append(self.build_taxonomy(level, namespace, predicate, "baked!"))
2723

2824
return {"taxonomies": taxonomies}
2925

analyzers/CyberChef/long.html

Lines changed: 0 additions & 16 deletions
This file was deleted.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<style>
2+
pre.input {
3+
color: #a94442;
4+
border: none;
5+
font-size: 10px;
6+
//word-wrap: break-word;
7+
//word-break: break-all;
8+
white-space: pre-wrap;
9+
background-color: #f9f1f1;
10+
}
11+
pre.output {
12+
//color: #367fa9;
13+
border: none;
14+
font-size: 10px;
15+
word-wrap: break-word;
16+
word-break: break-all;
17+
white-space: pre-wrap;
18+
background-color: black;
19+
}
20+
</style>
21+
22+
<div class="panel panel-info">
23+
<div class="panel-heading">
24+
CyberChef Data Conversion
25+
</div>
26+
<div class="panel-body">
27+
<table class="table">
28+
<tr>
29+
<th>Input</th>
30+
<th>Output</th>
31+
</tr>
32+
<td width="40%"><pre class="input">{{content.input_data }}</pre></td>
33+
<td><pre class="output">{{content.output_data}}</pre></td>
34+
</tr>
35+
</table>
36+
</div>
37+
</div>

analyzers/CyberChef/short.html renamed to thehive-templates/CyberChef_FromBase64_1_0/short.html

File renamed without changes.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<style>
2+
pre.input {
3+
color: #a94442;
4+
border: none;
5+
font-size: 10px;
6+
//word-wrap: break-word;
7+
//word-break: break-all;
8+
white-space: pre-wrap;
9+
background-color: #f9f1f1;
10+
}
11+
pre.output {
12+
//color: #367fa9;
13+
border: none;
14+
font-size: 10px;
15+
word-wrap: break-word;
16+
word-break: break-all;
17+
white-space: pre-wrap;
18+
background-color: black;
19+
}
20+
</style>
21+
22+
<div class="panel panel-info">
23+
<div class="panel-heading">
24+
CyberChef Data Conversion
25+
</div>
26+
<div class="panel-body">
27+
<table class="table">
28+
<tr>
29+
<th>Input</th>
30+
<th>Output</th>
31+
</tr>
32+
<td width="40%"><pre class="input">{{content.input_data }}</pre></td>
33+
<td><pre class="output">{{content.output_data}}</pre></td>
34+
</tr>
35+
</table>
36+
</div>
37+
</div>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<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]">
2+
{{t.namespace}}:{{t.predicate}}="{{t.value}}"
3+
</span>
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<style>
2+
pre.input {
3+
color: #a94442;
4+
border: none;
5+
font-size: 10px;
6+
//word-wrap: break-word;
7+
//word-break: break-all;
8+
white-space: pre-wrap;
9+
background-color: #f9f1f1;
10+
}
11+
pre.output {
12+
//color: #367fa9;
13+
border: none;
14+
font-size: 10px;
15+
word-wrap: break-word;
16+
word-break: break-all;
17+
white-space: pre-wrap;
18+
background-color: black;
19+
}
20+
</style>
21+
22+
<div class="panel panel-info">
23+
<div class="panel-heading">
24+
CyberChef Data Conversion
25+
</div>
26+
<div class="panel-body">
27+
<table class="table">
28+
<tr>
29+
<th>Input</th>
30+
<th>Output</th>
31+
</tr>
32+
<td width="40%"><pre class="input">{{content.input_data }}</pre></td>
33+
<td><pre class="output">{{content.output_data}}</pre></td>
34+
</tr>
35+
</table>
36+
</div>
37+
</div>

0 commit comments

Comments
 (0)