Skip to content

Commit

Permalink
Configured ReplaceStringTransformation appropriately
Browse files Browse the repository at this point in the history
Reconfigured the `ReplaceStringTransformation`s to ignore special characters and to interpret special characters in replacements as required to fix issue #17
  • Loading branch information
thomaspatzke committed Oct 13, 2024
1 parent 9a4b97e commit 86f7bfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sigma/pipelines/crowdstrike/crowdstrike.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ def common_processing_items():
ProcessingItem(
identifier="cql_imagefilename_replace_disk_name",
transformation=ReplaceStringTransformation(
regex="[C-Z]:", replacement="\\\\Device\\\\HarddiskVolume?"
regex="[C-Z]:", replacement="\\\\Device\\\\HarddiskVolume?", skip_special=True, interpret_special=True
),
field_name_conditions=[
IncludeFieldCondition(fields=["ImageFileName"]),
Expand All @@ -450,7 +450,7 @@ def common_processing_items():
),
ProcessingItem(
identifier="cql_imagefilename_replace_disk_name",
transformation=ReplaceStringTransformation(regex=":", replacement=""),
transformation=ReplaceStringTransformation(regex=":", replacement="", skip_special=True),
field_name_conditions=[
IncludeFieldCondition(fields=["ImageFileName"]),
IncludeFieldCondition(fields=["TargetImageFileName"]),
Expand Down

0 comments on commit 86f7bfc

Please sign in to comment.