diff --git a/lib/cuckoo/common/demux.py b/lib/cuckoo/common/demux.py index e2cb00abd9b..acaf0b93445 100644 --- a/lib/cuckoo/common/demux.py +++ b/lib/cuckoo/common/demux.py @@ -230,7 +230,7 @@ def demux_sflock(filename: bytes, options: str, check_shellcode: bool = True): retlist.append(tmp_child) except Exception as e: log.error(e, exc_info=True) - return list(filter(None, retlist)), "" + return retlist, "" def demux_sample(filename: bytes, package: str, options: str, use_sflock: bool = True, platform: str = ""): # -> tuple[bytes, str]: diff --git a/lib/cuckoo/common/objects.py b/lib/cuckoo/common/objects.py index 18ac7698eea..d905ce42008 100644 --- a/lib/cuckoo/common/objects.py +++ b/lib/cuckoo/common/objects.py @@ -460,6 +460,8 @@ def init_yara(self, raise_exception: bool = False): continue for category_root, _, filenames in os.walk(category_root, followlinks=True): + if category_root.endswith("deprecated"): + continue for filename in filenames: if not filename.endswith((".yar", ".yara")): continue diff --git a/web/templates/analysis/generic/_file_info.html b/web/templates/analysis/generic/_file_info.html index e3cf68f941b..b8b07fa371e 100644 --- a/web/templates/analysis/generic/_file_info.html +++ b/web/templates/analysis/generic/_file_info.html @@ -16,6 +16,12 @@ {% endif %} + {% if file.note %} + + Note + {{file.note}} + + {% endif %} {% if file.cape_type %} Type diff --git a/web/templates/analysis/generic/_subfile_info.html b/web/templates/analysis/generic/_subfile_info.html index 7baf2f19288..7d78a92d340 100644 --- a/web/templates/analysis/generic/_subfile_info.html +++ b/web/templates/analysis/generic/_subfile_info.html @@ -2,6 +2,12 @@ {% load key_tags %}
+ {% if subfile.note %} + + + + + {% endif %} {% if sub_file.cape_type %}
Note{{subfile.note}}
Type