-
-
Notifications
You must be signed in to change notification settings - Fork 103
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
[Correlations] Issue with rule parsing #186
Comments
Also, if the title is mandatory, isn't the |
Another question I have: When you do something like that: rule = SigmaCollection.from_yaml(failed_logins_followed_by_successful_login)
result = mybackend.convert(rule) Where |
Hi! The example is wrong. The I've also updated the correlation rule example in the specification. Thanks for pointing this out, I wasn't aware about it 😁 You have by the way used an even more outdated example. The
Basically,
Depending on the use case it can be necessary that the other rules are also needed independently. To keep things simple I've decided doing it this way, but...
...yes, there's a simple way to do this 😊 Better two:
I've just pushed a commit that adds the convenience iteration methods |
Update: after a bit of debugging, the solution is to call |
Yes, that's correct. I thought the reference resolution belongs to the conversion process and it's more efficient to keep it out from the rule parsing if someone just needs parsed rules. Perhaps it's better to integrate it in the parsing stage and make it possible to disable...what do you think? |
I'm not sure what's the best default, but I think it'd be natural to have the option to resolve on parsing a rule. |
I'm getting my hands on correlations and am trying to support that in our PySigma Backend.
Given this rule taken from the official sigma-specification repo:
When I call
SigmaCollection.from_yaml()
, I get this error for the sub-rule with IDa8418a5a-5fc4-46b5-b23b-6c73beb19d41
:sigma.exceptions.SigmaTitleError: Sigma rule must have a title
If I add a title to that rule, I get the same error, but for the sub-rule with ID
4d0a2c83-c62c-4ed4-b475-c7e23a9269b8
Is the title mandatory for sub-rules? If so, I'll update the specification examples, because they are misleading :)
The text was updated successfully, but these errors were encountered: