-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Detect bidir 5665 v14 #11497
Detect bidir 5665 v14 #11497
Conversation
Ticket: 5665 This is done with `alert ip any any => any any` The => operator means that we will need both directions
By using keywords bidir.toclient and bidir.toserver, the following keywords are forced to the direction even if they can match on both directions. Ticket: 5665
Do not require a rule to use bidir.toserver after the usage of bidir.toclient for unambiguous keywords, where the rule writer does not want to explicit the redundant direction.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #11497 +/- ##
==========================================
+ Coverage 82.56% 82.65% +0.09%
==========================================
Files 938 938
Lines 248247 248394 +147
==========================================
+ Hits 204961 205322 +361
+ Misses 43286 43072 -214
Flags with carried forward coverage won't be shown. Click here to find out more. |
Information: QA ran without warnings. Pipeline 21544 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two documentation suggestions :P
Thanks for including the explanation about how Suricata interprets <>
rules!
Following up on the previous PR comment about name suggestions, what about transaction rule? (or something that brought attention to this aspect)
- They cannot have ``fast_pattern`` or ``prefilter`` on a keyword which is on | ||
the direction to client only if they do have any streaming buffers for detection | ||
on the other side. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This part is still difficult to know how to read, to me. What about, maybe...
- They cannot have ``fast_pattern`` or ``prefilter`` on a keyword which is on | |
the direction to client only if they do have any streaming buffers for detection | |
on the other side. | |
- They cannot have ``fast_pattern`` or ``prefilter`` on a keyword which is on | |
the direction to client - only if they do have any streaming buffers for detection | |
on the other side. |
(If that's what this means, ofc XD )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
adding an example of an impossible rule
To me, it looks like all the commits could be squashed, indeed. Or maybe have one for code, and one for docs... 🤔 |
Continued in #11528 |
Link to redmine ticket:
https://redmine.openinfosecfoundation.org/issues/5665
Describe changes:
SV_BRANCH=OISF/suricata-verify#1922
#11323 with better doc
First version not a draft.
Should I squash all the commits together ?