Skip to content

Commit

Permalink
Merge pull request #150 from wbadart/main
Browse files Browse the repository at this point in the history
Quick fix to rule `falsepositives` validation in `from_dict`
  • Loading branch information
thomaspatzke authored Oct 27, 2023
2 parents 81ce963 + e9c22b0 commit 3dd8cd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sigma/rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ def from_dict(

# validate falsepositives
rule_falsepositives = rule.get("falsepositives")
if rule_falsepositives is not None and not isinstance(rule_fields, list):
if rule_falsepositives is not None and not isinstance(rule_falsepositives, list):
errors.append(
sigma_exceptions.SigmaFalsePositivesError(
"Sigma rule falsepositives must be a list",
Expand Down

0 comments on commit 3dd8cd6

Please sign in to comment.