-
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: absent keyword to test absence of sticky buffer 2224 v23 #11906
detect: absent keyword to test absence of sticky buffer 2224 v23 #11906
Conversation
- DetectEngineInspectBufferHttpHeader is only used with ALPROTO_HTTP1 - engine->progress should be HTP_REQUEST_HEADERS or HTP_RESPONSE_HEADERS based on the direction
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #11906 +/- ##
==========================================
- Coverage 82.60% 79.18% -3.42%
==========================================
Files 912 912
Lines 249342 249070 -272
==========================================
- Hits 205968 197228 -8740
- Misses 43374 51842 +8468
Flags with carried forward coverage won't be shown. Click here to find out more. |
Information: QA ran without warnings. Pipeline 23045 |
Ticket: 2224 It takes an argument to match only if the buffer is absent, or it can still match if the buffer is present, but we test the absence of some content. For multi buffers, absent matches if there are 0 buffers. For file keywords, absent matches if there is no file.
5cbee48
to
cdd48e4
Compare
Force-pushed with just the commit reworded. Still the question of transforms : do you see a use case of buffer + transform + absent keyword ? |
Information: QA ran without warnings. Pipeline 23073 |
Clean in #11964 |
Link to redmine ticket:
https://redmine.openinfosecfoundation.org/issues/2224
Describe changes:
absent
keyword to match on absent bufferSV_BRANCH=OISF/suricata-verify#1957
#11509 with code review taken into account