cyberphor / pySigma-backend-powershell

Uses pySigma to convert Sigma rules into PowerShell queries.
MIT License
5 stars 2 forks source link

'SigmaDetection' object has no attribute 'field' #7

Closed jijiewu closed 2 weeks ago

jijiewu commented 7 months ago

Running sigma/pipelines/powershell/powershell.py may cause errors on lines 16 and 26. The error message is: 'SigmaDetection' object has no attribute 'field' (while applying processing pipeline on rule None). Checking if 'field' exists can avoid errors. if 'field' in detection_item.__dataclass_fields__:

cyberphor commented 1 month ago

thank you! i will try to resolve this issue this weekend.

cyberphor commented 2 weeks ago

added your suggestion, thanks!