Skip to content

Commit 024062e

Browse files
authored
Merge pull request #191 from Pithus/feat/malware-categ
improve malware categorisation
2 parents 0215c0d + b89ad65 commit 024062e

2 files changed

Lines changed: 27 additions & 4 deletions

File tree

‎bazaar/templates/front/report/m_malware_bazaar.html‎

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,22 @@ <h3>VirusTotal</h3>
122122
<td class="">Score</td>
123123
<td class=""><span class="badge badge-danger">{{ d.vt.malicious }}/{{ d.vt.total }}</span></td>
124124
</tr>
125+
{% if d.vt_report.attributes.popular_threat_classification.popular_threat_category %}
126+
<tr>
127+
<td class="">Category</td>
128+
<td class="">
129+
{% for category in d.vt_report.attributes.popular_threat_classification.popular_threat_category %}
130+
<span class="badge badge-info">{{ category.value }}</span>
131+
{% endfor %}
132+
</td>
133+
</tr>
134+
{% endif %}
135+
{% if d.vt_report.attributes.popular_threat_classification.suggested_threat_label %}
136+
<tr>
137+
<td class="">Threat Name</td>
138+
<td class=""><span class="badge badge-danger">{{ d.vt_report.attributes.popular_threat_classification.suggested_threat_label }}</span></td>
139+
</tr>
140+
{% endif %}
125141
<tr>
126142
<td class="">Report</td>
127143
<td class="">
@@ -140,7 +156,7 @@ <h4>Most Popular AV Detections</h4>
140156
<table class="table table-condensed table-sm">
141157
{% for i in d.vt_report.attributes.popular_threat_classification.popular_threat_name %}
142158
<tr>
143-
<td class="">Threat name: {{i.value}}
159+
<td class="">Detected as: {{i.value}}
144160
<a class="btn btn-sm btn-link p-0 text-decoration-none"
145161
href="{% url 'front:home' %}?q=threat_name:*{{ i.value }}*" data-toggle="tooltip" data-placement="top"
146162
title="Find similar samples">

‎bazaar/templates/front/report/m_threat_level.html‎

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,18 @@
22
{% if result.vt %}
33
<p>
44
{%if result.vt.malicious > 1 %}
5-
<span class="text-danger h4">Malicious<br>{{ result.vt.malicious }}</span>
6-
<span class="text-muted">/{{ result.vt.total }}</span>
5+
<span class="text-danger h4">
6+
Malicious<br>
7+
{{ result.vt.malicious }}
8+
</span>
9+
<span class="text-muted">/{{ result.vt.total }}</span><br>
10+
{% if result.vt_report.attributes.popular_threat_classification.suggested_threat_label %}
11+
<span class="text-danger">{{ result.vt_report.attributes.popular_threat_classification.suggested_threat_label }}</span>
12+
{% endif %}
713
{% else %}
8-
<span class="text-info h4">{{ result.vt.malicious }}</span><span class="text-muted">/{{ result.vt.total }}</span>
14+
<span class="text-info h4">{{ result.vt.malicious }}</span><span class="text-muted">/{{ result.vt.total }}</span><br>
915
{% endif %}
16+
</p>
1017
<p class="small text-muted">Threat <i class="fa fa-info-circle small" data-toggle="tooltip" data-placement="top"
1118
title="Provided by VirusTotal"></i></p>
1219
{% elif result.malware_bazaar.vendor_intel.ReversingLabs.threat_name %}

0 commit comments

Comments
 (0)