Skip to content

add tls sni auto-accept-prior-hook repro bug validation - #3313

Open
yashda wants to merge 1 commit into
OISF:masterfrom
yashda:test/firewall-sni-lte-prior-hook
Open

add tls sni auto-accept-prior-hook repro bug validation#3313
yashda wants to merge 1 commit into
OISF:masterfrom
yashda:test/firewall-sni-lte-prior-hook

Conversation

@yashda

@yashda yashda commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Ticket

Add a firewall-mode test showing that the auto-accept-prior-states (<) notation on a catch-all accept does not cover the prior app-layer hook when a lower-SID same-hook drop rule with a matching prefilter leads the candidate list.

The rules drop TLS SNI "www.google.com" (sid:200) and accept all other SNI via accept:flow tls:<client_hello_done (sid:201), without an explicit accept:hook tls:client_in_progress. The expected result is a drop by sid:200 with an alert; the actual result is a default-app-policy drop at client_in_progress with sid:200 never firing.

The test asserts the expected behaviour and therefore currently fails, documenting the defect. Reuses tests/tls/tls-client-hello-frag-01.

Redmine: https://redmine.openinfosecfoundation.org/issues/8944

Add a firewall-mode test showing that the auto-accept-prior-states (`<`)
notation on a catch-all accept does not cover the prior app-layer hook
when a lower-SID same-hook drop rule with a matching prefilter leads the
candidate list.

The rules drop TLS SNI "www.google.com" (sid:200) and accept all other
SNI via `accept:flow tls:<client_hello_done` (sid:201), without an
explicit `accept:hook tls:client_in_progress`. The expected result is a
drop by sid:200 with an alert; the actual result is a default-app-policy
drop at client_in_progress with sid:200 never firing.

The test asserts the expected behaviour and therefore currently fails,
documenting the defect. Reuses tests/tls/tls-client-hello-frag-01.
@catenacyber

Copy link
Copy Markdown
Collaborator

Is there a redmine ticket that goes with this test ? A suricata PR ?

@yashda

yashda commented Aug 25, 2026

Copy link
Copy Markdown
Contributor Author

Updated the description with the Redmine ticket.

@catenacyber catenacyber added the requires suricata fix This PR requires an issue in Suricata to be fixed first label Aug 26, 2026
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