detect/sip: add sticky buffers to match headers#10839
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #10839 +/- ##
==========================================
+ Coverage 82.83% 82.87% +0.04%
==========================================
Files 913 921 +8
Lines 246847 246975 +128
==========================================
+ Hits 204474 204679 +205
+ Misses 42373 42296 -77
Flags with carried forward coverage won't be shown. Click here to find out more. |
|
I'm looking at RFC3261 and some of the keywords being added like:
I don't know how prevalent the compact form usage is; should your additions handle both forms of the headers iff the header has a compact form? |
Definitely, those compact form must be handled. |
|
Why not a generic |
I'm not sure I like that to be honest. |
Why do not you like it ? |
It's an important keyword for http. In general, the other http keywords like http.header_names, http.start, etc should probably all be recreated here. Rule writers love them :) |
So, could I add a keyword as @catenacyber suggested in another PR, and leave this one as is once the compact form issue is resolved? |
I'm ok with doing them in follow up PRs. Btw I suggest a more comprehensive list :) |
Sure, it's just a starting point :) |
|
Replaced with #10907 |
Make sure these boxes are signed before submitting your Pull Request -- thank you.
https://docs.suricata.io/en/latest/devguide/contributing/contribution-process.html
https://suricata.io/about/contribution-agreement/ (note: this is only required once)
Link to redmine ticket:
https://redmine.openinfosecfoundation.org/issues/6374
Describe changes:
This patchset introduces several sticky buffers to match the following SIP headers:
SV_BRANCH=OISF/suricata-verify#1764