From 8df0a98ae0df1d471e73235cc1e0a57ea83c2d95 Mon Sep 17 00:00:00 2001 From: enzo <7831008+enzok@users.noreply.github.com> Date: Tue, 14 Nov 2023 09:31:17 -0500 Subject: [PATCH] Fix signature data --- modules/signatures/decoy_image.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/signatures/decoy_image.py b/modules/signatures/decoy_image.py index a9fb98dd..19b33cbb 100644 --- a/modules/signatures/decoy_image.py +++ b/modules/signatures/decoy_image.py @@ -34,7 +34,7 @@ def on_call(self, call, process): path = self.get_argument(call, "FilePath") if path: if path.lower().endswith((".jpg", ".jpeg", ".png", ".bmp", ".tiff")): - self.data.append(path) + self.data.append({"path": path}) if self.pid: self.mark_call() @@ -46,7 +46,7 @@ def on_complete(self): if "image data," in filetype or "PC bitmap," in filetype: for filepath in dropped.get("guest_paths", []) or []: for decoy in self.data: - if filepath == decoy: + if filepath in decoy.get("path", ""): return True return False