-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support undefined
in --exclude-status
#1087
Comments
@YamatoSecurity exclude_status is an option to filter by the name of the status (containing the values stable and test) in the rule. I think it would be better to create a new option to disable reading of undefined levels. |
Thanks for letting me know. So use a new option |
@YamatoSecurity Yes, implementation will be easy by using The implementation can be done either way, but there will be issues due to the need to check multiple fields. The undefind is the value of the level of the rule, and the exclude_status is the value of the status of the rule that is being targeted by the exclude_status, which is something else. It is unclear whether the value set in exclude-status is for the status of the rule or for the value of the level of the rule. For example, if status does not exist and you have taken the value of undefined, you will fall under this filtering even if you do not want to filter by status.
|
@hitenkoku Ah, I see now. I'm sorry I wrote in the issue that
|
I confirmed treatment as "informational" when level is not defined. ref: Lines 322 to 325 in 5769a75
I confirmed that no filtering by exclude_status when status is undefined. Lines 279 to 286 in 5769a75
|
Recently, some sigma rules are being uploaded without the
level
defined so they areundefined
rules.However,
--exclude-status
does not support disablingundefined
rules so I would like to support this.The text was updated successfully, but these errors were encountered: