]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
tests: add bug 6875 test 1717/head
authorVictor Julien <victor@inliniac.net>
Wed, 20 Mar 2024 07:17:06 +0000 (08:17 +0100)
committerVictor Julien <victor@inliniac.net>
Wed, 20 Mar 2024 07:24:53 +0000 (08:24 +0100)
tests/bug-6875-01/README.md [new file with mode: 0644]
tests/bug-6875-01/fuzz.pcap [new file with mode: 0644]
tests/bug-6875-01/suricata.yaml [new file with mode: 0644]
tests/bug-6875-01/test.rules [new file with mode: 0644]
tests/bug-6875-01/test.yaml [new file with mode: 0644]

diff --git a/tests/bug-6875-01/README.md b/tests/bug-6875-01/README.md
new file mode 100644 (file)
index 0000000..c549c91
--- /dev/null
@@ -0,0 +1,3 @@
+PCAP
+====
+Pcap from https://redmine.openinfosecfoundation.org/issues/6875
diff --git a/tests/bug-6875-01/fuzz.pcap b/tests/bug-6875-01/fuzz.pcap
new file mode 100644 (file)
index 0000000..345bac8
Binary files /dev/null and b/tests/bug-6875-01/fuzz.pcap differ
diff --git a/tests/bug-6875-01/suricata.yaml b/tests/bug-6875-01/suricata.yaml
new file mode 100644 (file)
index 0000000..b29df78
--- /dev/null
@@ -0,0 +1,9 @@
+%YAML 1.1
+---
+
+outputs:
+  - eve-log:
+      enabled: yes
+      types:
+        - alert:
+            payload: yes
diff --git a/tests/bug-6875-01/test.rules b/tests/bug-6875-01/test.rules
new file mode 100644 (file)
index 0000000..742347e
--- /dev/null
@@ -0,0 +1 @@
+alert ip any any -> any any (msg:"Flowbit set"; sid:1;)
diff --git a/tests/bug-6875-01/test.yaml b/tests/bug-6875-01/test.yaml
new file mode 100644 (file)
index 0000000..85c25ab
--- /dev/null
@@ -0,0 +1,10 @@
+args:
+  - -k none
+
+checks:
+  - filter:
+      count: 1
+      match:
+        pcap_cnt: 1
+        alert.signature_id: 1
+        stream: 0