Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/processing/similarity.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def run(self):
for cand in unique:
matches = output["by_sha256"].get(cand["sha256"])
if matches and isinstance(cand.get("artifact"), dict):
cand["artifact"]["similarity_matches"] = matches
cand["artifact"]["code_similarity_matches"] = matches

if update_malfamily:
self._apply_family_classifications(output, malfamily_min_sim, malfamily_mode)
Expand Down
4 changes: 2 additions & 2 deletions web/templates/analysis/generic/_file_info.html
Original file line number Diff line number Diff line change
Expand Up @@ -233,12 +233,12 @@ <h5 class="mb-0 text-white"><i class="fas fa-file-alt me-2 text-info"></i> File
{% endif %}

{# similarity-inline-rows BEGIN #}
{% if file.similarity_matches %}
{% if file.code_similarity_matches %}
<tr>
<th class="text-end text-info" style="width: 15%;">Code Similarity</th>
<td>
<ul class="list-unstyled mb-0">
{% for m in file.similarity_matches %}
{% for m in file.code_similarity_matches %}
<li class="mb-1">
{% if m.family %}
<span class="badge bg-danger me-1">{{ m.family }}</span>
Expand Down
Loading