-
Notifications
You must be signed in to change notification settings - Fork 29
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
Documentation: Guidance around signature writing. #52
Comments
For example: The following rule may be written in a way that Sagan will understand properly, but having the classtype before "program" is not less readable:
Putting the classtype after all keywords that perform content checks would be a preferred method. This is also in line with how Emerging Threats writes their Suricata rules:
Now, considering this documentation on high-performance considerations with Sagan and Sagan rules, all rules should be written following those recommendations. Continuing with the above rule:
I'm now wondering if the |
So far I've been writing rules based on the order of which the content will show up in the logs and which are the fastest matches. So in order I put |
Add a section around proper signature writing for Sagan (William).
The text was updated successfully, but these errors were encountered: