Skip to content

Detect count 5044 v4.7 - #16103

Closed
catenacyber wants to merge 7 commits into
OISF:mainfrom
catenacyber:detect-count-5044-v4.7
Closed

Detect count 5044 v4.7#16103
catenacyber wants to merge 7 commits into
OISF:mainfrom
catenacyber:detect-count-5044-v4.7

Conversation

@catenacyber

Copy link
Copy Markdown
Contributor

Link to ticket: https://redmine.openinfosecfoundation.org/issues/
https://redmine.openinfosecfoundation.org/issues/5044

Describe changes:

  • adds other modes to multi-buffers like all, all_or_absent, matches`, and precise indexing

SV_BRANCH=OISF/suricata-verify#3062

Draft : I would like some approval before doing all the individual modifications for each multi-buffer

#16100 after AI review

TODOs :

  • add support for all multi-buf keywords
  • add count support

Also rename parse_uint_count as parse_multi_count

This allows to prepare multi-buffers using this code
As for multi-integers, multi-buffers can now have the following
arguments
- nb
- precise index
- all

Ticket: 5044
- or_absent can also be any_or_absent
- nb can also be matches
- precise index can have prefix index
To avoid accepting "email.received: index 1junk;"
Ticket: 5044

As we set "all" before adding a transform, we must take care of
this case `sticky_multi: all; transform; content: "abc";`
so that "all" applies to the transformed multi-buffer
This was referenced Aug 25, 2026
@catenacyber

Copy link
Copy Markdown
Contributor Author

Replaced by #16111

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant