From 7df34550cf55140165fa6f86d19d5befe103bb48 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 24 Jan 2026 16:33:17 +0000 Subject: [PATCH] [Feature] Store matched fuzzy hashes in Redis history Add fuzzy_hashes array to history entries by retrieving matched hashes from task mempool in history_redis plugin. --- src/plugins/lua/history_redis.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/plugins/lua/history_redis.lua b/src/plugins/lua/history_redis.lua index a15ec0fdc1..7eec2dc03d 100644 --- a/src/plugins/lua/history_redis.lua +++ b/src/plugins/lua/history_redis.lua @@ -139,6 +139,12 @@ local function normalise_results(tbl, task) end tbl.user = task:get_user() or 'unknown' + + -- Retrieve fuzzy hashes that matched during scanning + local fuzzy_hashes = task:get_mempool():get_variable('fuzzy_hashes', 'fstrings') + if fuzzy_hashes and #fuzzy_hashes > 0 then + tbl.fuzzy_hashes = fuzzy_hashes + end end local function history_save(task) -- 2.47.3