From 89a4d9327450a0cd65b665cf949afc4acafe2fd9 Mon Sep 17 00:00:00 2001 From: Fabien Bloume <15647296+nusantara-self@users.noreply.github.com> Date: Fri, 28 Feb 2025 20:02:02 +0900 Subject: [PATCH] Update yara_analyzer.py - offset fix --- analyzers/Yara/yara_analyzer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/analyzers/Yara/yara_analyzer.py b/analyzers/Yara/yara_analyzer.py index a630bc3c5..06b6bcdc1 100755 --- a/analyzers/Yara/yara_analyzer.py +++ b/analyzers/Yara/yara_analyzer.py @@ -255,7 +255,7 @@ def check(self, file_path): decoded_xor = is_xor_static_key(matched_text) decoded_strings.append({ - "offset": s[0], + "offset": s.offset, "matched": matched_text, "base64_decoded": decoded_b64 if decoded_b64 else "N/A", "hex_decoded": decoded_hex if decoded_hex else "N/A",