From c34f847d3e23c177212607770de5c8125c75eb88 Mon Sep 17 00:00:00 2001 From: doomedraven Date: Tue, 25 Nov 2025 13:59:18 +0100 Subject: [PATCH] Prevent on_complete execution for matched signatures (#2758) --- lib/cuckoo/core/plugins.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/cuckoo/core/plugins.py b/lib/cuckoo/core/plugins.py index f510bac78a5..330765b147a 100644 --- a/lib/cuckoo/core/plugins.py +++ b/lib/cuckoo/core/plugins.py @@ -683,6 +683,8 @@ def run(self, test_signature: str = False): result = False if result: + if hasattr(sig, "on_complete"): + log.debug("Signature: %s is matched! on_complete won't be executed!", sig.name) sig.matched = True # Call the stop method on all remaining instances.