Skip to content

Commit b1bf892

Browse files
authored
Merge pull request #5 from iSecNG/alex-is-in-list-modifier
Add CustomSigmaInListModifier 3
2 parents 900d38b + 572a5d5 commit b1bf892

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

sigma/modifiers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,8 @@ def modify(self, val: SigmaString) -> SigmaString:
519519
identifier = (
520520
"<iSecNG><is-in-list-modifier>1758064836.781846<is-in-list-modifier><iSecNG>"
521521
)
522+
if self.detection_item.field == identifier:
523+
return val
522524
val = f"{self.detection_item.field} IN " + val + identifier
523525
self.detection_item.field = identifier
524526
else:
13 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)