From: Victor Julien Date: Fri, 6 Sep 2024 12:21:25 +0000 (+0200) Subject: tests: add test for issue 7241 X-Git-Tag: suricata-7.0.7~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2030%2Fhead;p=thirdparty%2Fsuricata-verify.git tests: add test for issue 7241 Test for 8+ only. --- diff --git a/tests/bug-7241-01-8plus/test.rules b/tests/bug-7241-01-8plus/test.rules new file mode 100644 index 000000000..88094db40 --- /dev/null +++ b/tests/bug-7241-01-8plus/test.rules @@ -0,0 +1,4 @@ +drop tcp any any -> any any (flow:established; app-layer-protocol:!tls; sid:1;) +drop tcp any any -> any any (flow:established; app-layer-protocol:!tls; prefilter; sid:2;) +drop tcp any any -> any any (flow:established; app-layer-protocol:!tls,either; sid:3;) +drop tcp any any -> any any (flow:established; app-layer-protocol:!tls,either; prefilter; sid:4;) diff --git a/tests/bug-7241-01-8plus/test.yaml b/tests/bug-7241-01-8plus/test.yaml new file mode 100644 index 000000000..5e89ca983 --- /dev/null +++ b/tests/bug-7241-01-8plus/test.yaml @@ -0,0 +1,30 @@ +requires: + min-version: 8 + +pcap: ../tls/tls-random/input.pcap + +args: +- -k none +- --simulate-ips + +checks: +- filter: + count: 0 + match: + alert.signature_id: 1 + event_type: alert +- filter: + count: 0 + match: + alert.signature_id: 2 + event_type: alert +- filter: + count: 0 + match: + alert.signature_id: 3 + event_type: alert +- filter: + count: 0 + match: + alert.signature_id: 4 + event_type: alert