From ff2d4b0e4be6b37d193ef32eaf4682a06c8b8fba Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Fri, 6 Sep 2024 14:21:25 +0200 Subject: [PATCH] tests: add test for issue 7241 Test for 8+ only. --- tests/bug-7241-01-8plus/test.rules | 4 ++++ tests/bug-7241-01-8plus/test.yaml | 30 ++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 tests/bug-7241-01-8plus/test.rules create mode 100644 tests/bug-7241-01-8plus/test.yaml 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 -- 2.47.2