Skip to content

detect-bytetest-02: fix alert count#3042

Closed
inashivb wants to merge 1 commit into
OISF:masterfrom
inashivb:pkt-stream-double-match-fix/v1
Closed

detect-bytetest-02: fix alert count#3042
inashivb wants to merge 1 commit into
OISF:masterfrom
inashivb:pkt-stream-double-match-fix/v1

Conversation

@inashivb

Copy link
Copy Markdown
Member

There's just one packet in the pcap that matches the rules 4 and 5, there's no need for 2 alerts. However, with the way packet-stream rules are assessed by Suricata, the rules are inspected twice by packet and stream payload inspection engines thus creating 2 alerts.

Ticket

If your pull request is related to a Suricata ticket, please provide
the full URL to the ticket here so this pull request can monitor
changes to the ticket status:

Redmine ticket: https://redmine.openinfosecfoundation.org/issues/8266

There's just one packet in the pcap that matches the rules 4 and 5,
there's no need for 2 alerts. However, with the way packet-stream rules
are assessed by Suricata, the rules are inspected twice by packet and
stream payload inspection engines thus creating 2 alerts.
@inashivb inashivb added the requires suricata pr Depends on a PR in Suricata label Apr 23, 2026
@inashivb inashivb marked this pull request as draft April 23, 2026 12:03
@catenacyber

Copy link
Copy Markdown
Collaborator

There is not yet a suricata PR for this, right ?

@catenacyber catenacyber added requires suricata fix This PR requires an issue in Suricata to be fixed first and removed requires suricata pr Depends on a PR in Suricata labels Apr 30, 2026
@inashivb

Copy link
Copy Markdown
Member Author

There is not yet a suricata PR for this, right ?

Indeed. In fact, it's looking like we may need to update some other tests to have the same behavior because it's hard to change how Suricata operates.

@inashivb

Copy link
Copy Markdown
Member Author

Closing for now.

@inashivb inashivb closed this May 29, 2026
@inashivb inashivb deleted the pkt-stream-double-match-fix/v1 branch May 29, 2026 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

requires suricata fix This PR requires an issue in Suricata to be fixed first

Development

Successfully merging this pull request may close these issues.

2 participants