From f2c6a3ee07762dbe92a0878876515c776bfeed49 Mon Sep 17 00:00:00 2001 From: doomedraven Date: Wed, 21 Jan 2026 10:28:31 +0100 Subject: [PATCH] Improve table header styling and button colors (#2855) Updated table headers in file info templates to use right-aligned, info-colored text for better readability. Sorted payloads by size in descending order. Changed certain button colors in the analysis overview for improved UI consistency. --- data/html/sections/payloads.html | 2 +- .../analysis/generic/_file_info.html | 58 +++++++++---------- .../analysis/generic/_subfile_info.html | 56 +++++++++--------- web/templates/analysis/overview/_info.html | 6 +- 4 files changed, 61 insertions(+), 61 deletions(-) diff --git a/data/html/sections/payloads.html b/data/html/sections/payloads.html index 6e9a73efff9..b97703ad18d 100644 --- a/data/html/sections/payloads.html +++ b/data/html/sections/payloads.html @@ -4,7 +4,7 @@

Payloads

{% if "CAPE" in results and results.CAPE.payloads %}
- {% for file in results.CAPE.payloads %} + {% for file in results.CAPE.payloads|sort(attribute='size', reverse=True) %}
diff --git a/web/templates/analysis/generic/_file_info.html b/web/templates/analysis/generic/_file_info.html index 7bd5e102965..3d33da6e063 100644 --- a/web/templates/analysis/generic/_file_info.html +++ b/web/templates/analysis/generic/_file_info.html @@ -23,27 +23,27 @@
Fi {% if source_url %} - + {% endif %} {% if file.note %} - + {% endif %} {% if file.cape_type %} - + {% endif %} - + - + {% endif %} {% if file.guest_paths and tab_name == "dropped" %} - + - + {% if file.module_path and file.process_path != file.module_path %} - + {% endif %} @@ -84,43 +84,43 @@
Fi {% if file.cape_type_code == 8 or file.cape_type_code == 9 %}
- + {% endif %} {% if file.cape_type_code == 5 %} - + {% endif %} {% if file.cape_type_code == 3 or file.cape_type_code == 4 %} - + - + - + - + {% else %} {% if file.process_name %} - + {% endif %} {% if file.process_path %} - + {% endif %} @@ -128,15 +128,15 @@
Fi
- + - + - + {% if file.sha3_384 %} - + {% endif %} {% if file.rh_hash %} - + {% endif %} - + {% if file.tlsh %} - + {% endif %} - + {% if file.clamav %} - + - - - + - +
Downloaded FromDownloaded From {{source_url|escape}}
NoteNote {{file.note}}
TypeType {{file.cape_type}}
File NameFile Name {% for name in file.name|str2list %}
{{name|safe}}
@@ -53,14 +53,14 @@
Fi {% if file.type %}
File TypeFile Type {{file.type}}
Associated FilenamesAssociated Filenames {% for path in file.guest_paths|str2list %}
{{path}}
@@ -70,13 +70,13 @@
Fi {% endif %}
File SizeFile Size {{file.size}} bytes
Module PathModule Path {{file.module_path}}
Virtual AddressVirtual Address {{file.virtual_address}}
Section HandleSection Handle {{file.section_handle}}
Target ProcessTarget Process {{file.target_process}} (PID: {{file.target_pid}})
Target PathTarget Path {{file.target_path}}
Injecting ProcessInjecting Process {{file.process_name}} (PID: {{file.pid}})
PathPath {{file.process_path}}
ProcessProcess {{file.process_name}} {% if file.pid %}(PID: {{file.pid}}){% endif %}
PathPath {{file.process_path}}
MD5MD5 {{file.md5}}
SHA1SHA1 {{file.sha1}}
SHA256SHA256 {{file.sha256}} @@ -148,35 +148,35 @@
Fi
SHA3-384SHA3-384 {{file.sha3_384}}
RichHeader HashRichHeader Hash {{file.rh_hash}}
CRC32CRC32 {{file.crc32}}
TLSHTLSH {{file.tlsh}}
SsdeepSsdeep {{file.ssdeep}}
ClamAVClamAV
    {% for sign in file.clamav %} @@ -189,7 +189,7 @@
    Fi {% if file.yara %}
+ {% if config.yara_detail %} Yara {% else %} @@ -212,7 +212,7 @@
Fi {% if file.cape_yara %}
+ {% if config.yara_detail %} CAPE Yara {% else %} @@ -234,7 +234,7 @@
Fi {% if file.trid %}
TriDTriD
    {% for str in file.trid %}
  • {{str}}
  • {% endfor %} @@ -245,7 +245,7 @@
    Fi {% if file.die %}
Detect It EasyDetect It Easy
    {% for str in file.die %}
  • {{str}}
  • {% endfor %} diff --git a/web/templates/analysis/generic/_subfile_info.html b/web/templates/analysis/generic/_subfile_info.html index ae638ab934a..031701607f9 100644 --- a/web/templates/analysis/generic/_subfile_info.html +++ b/web/templates/analysis/generic/_subfile_info.html @@ -32,20 +32,20 @@
    S {% if sub_file.note %} - + {% endif %} {% if sub_file.cape_type %} - + {% endif %} - + - + {% endif %} {% if sub_file.guest_paths %} - + - + {% if sub_file.module_path and sub_file.process_path != sub_file.module_path %} - + {% endif %} {% if sub_file.cape_type_code == 8 or sub_file.cape_type_code == 9 %} - + {% endif %} {% if sub_file.cape_type_code == 5 %} - + {% endif %} {% if sub_file.cape_type_code == 3 or sub_file.cape_type_code == 4 %} - + - + - + - + {% else %} {% if sub_file.process_name %} - + {% endif %} {% if sub_file.process_path %} - + {% endif %} {% endif %} - + - + - + {% if sub_file.sha3_384 %} - + {% endif %} {% if sub_file.rh_hash %} - + {% endif %} - + {% if sub_file.tlsh %} - + {% endif %} - + {% if sub_file.clamav %} - + - - - + - + {% if analysis.info.options %} - + {% endif %} {% if user.is_staff and analysis.distributed %} @@ -72,10 +72,10 @@
    NoteNote {{sub_file.note}}
    TypeType {{sub_file.cape_type}}
    FilenameFilename {% for name in sub_file.name|str2list %}
    {{name|safe}}
    @@ -55,14 +55,14 @@
    S {% if sub_file.type %}
    File TypeFile Type {{sub_file.type}}
    Associated FilenamesAssociated Filenames {% for path in sub_file.guest_paths|str2list %}
    {{path}}
    @@ -72,71 +72,71 @@
    S {% endif %}
    File SizeFile Size {{sub_file.size}} bytes
    Module PathModule Path {{sub_file.module_path}}
    Virtual AddressVirtual Address {{sub_file.virtual_address}}
    Section HandleSection Handle {{sub_file.section_handle}}
    Target ProcessTarget Process {{sub_file.target_process}} (PID: {{sub_file.target_pid}})
    Target PathTarget Path {{sub_file.target_path}}
    Injecting ProcessInjecting Process {{sub_file.process_name}} (PID: {{sub_file.pid}})
    PathPath {{sub_file.process_path}}
    ProcessProcess {{sub_file.process_name}} {% if sub_file.pid %}(PID: {{sub_file.pid}}){% endif %}
    PathPath {{sub_file.process_path}}
    MD5MD5 {{sub_file.md5}}
    SHA1SHA1 {{sub_file.sha1}}
    SHA256SHA256 {{sub_file.sha256}} @@ -148,34 +148,34 @@
    S
    SHA3-384SHA3-384 {{sub_file.sha3_384}}
    RichHeader HashRichHeader Hash {{sub_file.rh_hash}}
    CRC32CRC32 {{sub_file.crc32}}
    TLSHTLSH {{sub_file.tlsh}}
    SsdeepSsdeep {{sub_file.ssdeep}}
    ClamAVClamAV
      {% for sign in sub_file.clamav %} @@ -188,7 +188,7 @@
      S {% if sub_file.yara %}
    + {% if config.yara_detail %} Yara {% else %} @@ -211,7 +211,7 @@
    S {% if sub_file.cape_yara %}
    + {% if config.yara_detail %} CAPE Yara {% else %} @@ -233,7 +233,7 @@
    S {% if sub_file.trid %}
    TriDTriD
      {% for str in sub_file.trid %}
    • {{str}}
    • {% endfor %} @@ -244,7 +244,7 @@
      S {% if sub_file.die %}
    Detect It EasyDetect It Easy
      {% for str in sub_file.die %}
    • {{str}}
    • {% endfor %} diff --git a/web/templates/analysis/overview/_info.html b/web/templates/analysis/overview/_info.html index bf72db209b5..dd29cff6873 100644 --- a/web/templates/analysis/overview/_info.html +++ b/web/templates/analysis/overview/_info.html @@ -63,7 +63,7 @@
    {{analysis.info.ended}} {{analysis.info.duration}}s{{analysis.distributed.name}} ({{analysis.distributed.task_id}})
    {% if analysis.debug.log %} - + {% endif %} {% if analysis.process_log %} - + {% endif %}