Skip to content

Commit

Permalink
chg: keep expand modifiers as-as
Browse files Browse the repository at this point in the history
  • Loading branch information
fukusuket committed Dec 26, 2024
1 parent ccd5aa2 commit 9244ab3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sigma-to-hayabusa-converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,7 @@ def build_out_path(base_dir: str, out_dir: str, sigma_path: str, sysmon: bool) -
new_path = new_path.replace('/rules-dfir', '/dfir')
new_path = new_path.replace('/rules-emerging-threats', '/emerging-threats')
new_path = new_path.replace('/rules-threat-hunting', '/threat-hunting')
new_path = new_path.replace('/rules-placeholder', '/placeholder')
new_path = new_path.replace('/rules', '')
if sysmon:
return out_dir + '/sysmon' + new_path
Expand Down Expand Up @@ -610,8 +611,6 @@ def find_windows_sigma_rule_files(root: str, rule_pattern: str):
filepath = os.path.join(dirpath, filename)
if not any(target in dirpath for target in ["rule", "deprecated", "unsupported"]):
continue # フォルダパスにrule/deprecated/unsupportedがつかないものは、Sigmaルールと関係ないため、除外
if any(target in dirpath for target in ["rules-placeholder"]):
continue # rules-placeholderはサポートしていないため、除外
try:
with open(filepath, encoding="utf-8") as f:
yaml = ruamel.yaml.YAML()
Expand Down

0 comments on commit 9244ab3

Please sign in to comment.