diff --git a/tools/sigmac/hayabusa.py b/tools/sigmac/hayabusa.py index 3e56ed9e..3d9684bf 100644 --- a/tools/sigmac/hayabusa.py +++ b/tools/sigmac/hayabusa.py @@ -271,15 +271,15 @@ class HayabusaBackend(SingleTextQueryBackend): bs.write("ruletype: Sigma\n") del parsed_yaml["title"] - # detectionの部分をクリアする前にtimeflameだけ確保しておく。 - timeflame = None - if "timeflame" in parsed_yaml["detection"]: - timeflame = parsed_yaml["detection"]["timeflame"] + # detectionの部分をクリアする前にtimeframeだけ確保しておく。 + timeframe = None + if "timeframe" in parsed_yaml["detection"]: + timeframe = parsed_yaml["detection"]["timeframe"] # detectionの部分だけ変更して出力する。 parsed_yaml["detection"] = {} - if timeflame is not None and len(timeflame) != 0: - parsed_yaml["detection"]["timeflame"] = timeflame + if timeframe is not None and len(timeframe) != 0: + parsed_yaml["detection"]["timeframe"] = timeframe parsed_yaml["detection"]["condition"] = result for key, values in self.name_2_selection.items(): # fieldnameの有無を確認している