From 7ab16de941bcd3751826ad376ce5a6015ea24319 Mon Sep 17 00:00:00 2001 From: cccs-mog <117194682+cccs-mog@users.noreply.github.com> Date: Wed, 11 Sep 2024 16:25:57 -0400 Subject: [PATCH] Logging to fix the issue with importing rules --- cape/cape_main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cape/cape_main.py b/cape/cape_main.py index 6dbbe19..ded69db 100644 --- a/cape/cape_main.py +++ b/cape/cape_main.py @@ -409,6 +409,7 @@ def _load_rules(self): externals.update(YARA_EXTERNALS) rules, indexed = {}, [] + self.yara_loaded_signature_name.append(yara_root) for yara_root, _, filenames in os.walk(yara_root, followlinks=True): for filename in filenames: self.yara_loaded_signature_name.append(filename)