From 3cf5e8a4aea596fb2013d06632296b37c7518708 Mon Sep 17 00:00:00 2001 From: Nick Moore Date: Wed, 28 Jun 2023 10:45:38 +0100 Subject: [PATCH] Ensure a copy of the state is made Otherwise the ConversionState will share the same underlying processing_state. --- sigma/conversion/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sigma/conversion/base.py b/sigma/conversion/base.py index fd512e72..9adfe148 100644 --- a/sigma/conversion/base.py +++ b/sigma/conversion/base.py @@ -114,7 +114,7 @@ def convert_rule(self, rule : SigmaRule, output_format : Optional[str] = None) - # 2. Convert conditions error_state = "converting" states = [ - ConversionState(processing_state=self.last_processing_pipeline.state) + ConversionState(processing_state=dict(self.last_processing_pipeline.state)) for _ in rule.detection.parsed_condition ] queries = [