Skip to content

Conversation

@catenacyber
Copy link
Contributor

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

Describe changes:

  • detect/integers: generalize multi-integers

SV_BRANCH=OISF/suricata-verify#2653

#13838 with better history, more SV tests, fixes...

@victorjulien should I do a first PR with commits up to rust/detect: generic detect_uint_match_at_index ?

More TODOs:

List of keywords to do : ./src/suricata --list-keywords=csv | grep uint | grep multi | cut -d\; -f1

  • nfs_procedure (first cherry-pick da81b7e)
  • filesize (file iterator)
  • vlan.id (c prefilter)
  • enip.cip_attribute (array of arrays)
  • enip.cip_class (array of arrays)
  • enip.cip_status (array of arrays)
  • enip.cip_instance (array of arrays)
  • enip.cip_extendedstatus (array of arrays)
  • mqtt.reason_code (2 arrays ...)
  • mqtt.flags (bitflags)
  • mqtt.connect.flags (bitflags)

to be able to use it outside of ldap

Ticket: 7480

No behavior change, just code restyling
Ticket: 7480

No behavior change, just code restyling
And make ldap use them

Ticket: 7480

No behavior change, just code restyling
And make ldap use it

Ticket: 7480

No behavior change, just code restyling
as we do not pop

Ticket: 7480

May have a behavior change, but only in terms of performance
and make ldap use it

Ticket: 7480

No behavior change, just code restyling
Ticket: 7480

Describing the usage of index
As is done for absent keyword for instance
For example
dns.rrtype: !A,nb>3
will match if we have more than 3 dns records which are not A
To match if array is empty, or index is out of bounds
@catenacyber
Copy link
Contributor Author

Replaced by #13873

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