However SigmaDetectionItem.from_mapping currently allows field to contain ':' .
Currently, SigmaDetectionItem.field allows keys such as field:modifier: without raising any errors.
Remark: ':' can also be a reserved char for some backends that work with key:value syntax.
That would be increasing the chance of errors in backend despite Sigma Validation.
-> The proposed solution simply check if field contains ':' and raise SigmaDetectionError.
Please feel free to accept merge request #224 or to implement your own checks.
According to https://yaml.org/spec/1.2.2/ : "colons separate key/value pairs"
However
SigmaDetectionItem.from_mapping
currently allows field to contain ':' . Currently, SigmaDetectionItem.field allows keys such asfield:modifier:
without raising any errors.Remark: ':' can also be a reserved char for some backends that work with
key:value
syntax. That would be increasing the chance of errors in backend despite Sigma Validation.-> The proposed solution simply check if
field
contains ':' and raise SigmaDetectionError.Please feel free to accept merge request #224 or to implement your own checks.