]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
tests: add bug 1401 tests
authorVictor Julien <victor@inliniac.net>
Mon, 18 Jan 2021 09:36:16 +0000 (10:36 +0100)
committerVictor Julien <victor@inliniac.net>
Mon, 18 Jan 2021 09:36:16 +0000 (10:36 +0100)
12 files changed:
tests/bug-1401-01/1.rules [new file with mode: 0644]
tests/bug-1401-01/80000000-037-PTP_Example_IPv4_HTTP_Session-PUBLIC-tp-01-TEST1.pcap [new file with mode: 0644]
tests/bug-1401-01/test.yaml [new file with mode: 0644]
tests/bug-1401-02/2.rules [new file with mode: 0644]
tests/bug-1401-02/80000000-037-PTP_Example_IPv4_HTTP_Session-PUBLIC-tp-01-TEST1.pcap [new file with mode: 0644]
tests/bug-1401-02/test.yaml [new file with mode: 0644]
tests/bug-1401-03/1.rules [new file with mode: 0644]
tests/bug-1401-03/80000000-037-PTP_Example_IPv4_HTTP_Session-PUBLIC-tp-01.pcap [new file with mode: 0644]
tests/bug-1401-03/test.yaml [new file with mode: 0644]
tests/bug-1401-04/2.rules [new file with mode: 0644]
tests/bug-1401-04/80000000-037-PTP_Example_IPv4_HTTP_Session-PUBLIC-tp-01.pcap [new file with mode: 0644]
tests/bug-1401-04/test.yaml [new file with mode: 0644]

diff --git a/tests/bug-1401-01/1.rules b/tests/bug-1401-01/1.rules
new file mode 100644 (file)
index 0000000..4983917
--- /dev/null
@@ -0,0 +1 @@
+alert tcp 66.155.11.238 any -> any any (flags:SA; sid:1; rev:1;)
diff --git a/tests/bug-1401-01/80000000-037-PTP_Example_IPv4_HTTP_Session-PUBLIC-tp-01-TEST1.pcap b/tests/bug-1401-01/80000000-037-PTP_Example_IPv4_HTTP_Session-PUBLIC-tp-01-TEST1.pcap
new file mode 100644 (file)
index 0000000..33e8416
Binary files /dev/null and b/tests/bug-1401-01/80000000-037-PTP_Example_IPv4_HTTP_Session-PUBLIC-tp-01-TEST1.pcap differ
diff --git a/tests/bug-1401-01/test.yaml b/tests/bug-1401-01/test.yaml
new file mode 100644 (file)
index 0000000..273617c
--- /dev/null
@@ -0,0 +1,11 @@
+requires:
+  features:
+    - HAVE_LIBJANSSON
+
+checks:
+  - filter:
+      count: 1
+      match:
+        event_type: alert
+        alert.signature_id: 1
+
diff --git a/tests/bug-1401-02/2.rules b/tests/bug-1401-02/2.rules
new file mode 100644 (file)
index 0000000..e4b953a
--- /dev/null
@@ -0,0 +1 @@
+alert tcp 66.155.11.238 any -> any any (flow:to_client; flags:SA; sid:2; rev:1;)
diff --git a/tests/bug-1401-02/80000000-037-PTP_Example_IPv4_HTTP_Session-PUBLIC-tp-01-TEST1.pcap b/tests/bug-1401-02/80000000-037-PTP_Example_IPv4_HTTP_Session-PUBLIC-tp-01-TEST1.pcap
new file mode 100644 (file)
index 0000000..33e8416
Binary files /dev/null and b/tests/bug-1401-02/80000000-037-PTP_Example_IPv4_HTTP_Session-PUBLIC-tp-01-TEST1.pcap differ
diff --git a/tests/bug-1401-02/test.yaml b/tests/bug-1401-02/test.yaml
new file mode 100644 (file)
index 0000000..2bc44fe
--- /dev/null
@@ -0,0 +1,13 @@
+requires:
+  features:
+    - HAVE_LIBJANSSON
+args:
+- --set stream.midstream=true
+
+checks:
+  - filter:
+      count: 1
+      match:
+        event_type: alert
+        alert.signature_id: 2
+
diff --git a/tests/bug-1401-03/1.rules b/tests/bug-1401-03/1.rules
new file mode 100644 (file)
index 0000000..4983917
--- /dev/null
@@ -0,0 +1 @@
+alert tcp 66.155.11.238 any -> any any (flags:SA; sid:1; rev:1;)
diff --git a/tests/bug-1401-03/80000000-037-PTP_Example_IPv4_HTTP_Session-PUBLIC-tp-01.pcap b/tests/bug-1401-03/80000000-037-PTP_Example_IPv4_HTTP_Session-PUBLIC-tp-01.pcap
new file mode 100644 (file)
index 0000000..4c85f66
Binary files /dev/null and b/tests/bug-1401-03/80000000-037-PTP_Example_IPv4_HTTP_Session-PUBLIC-tp-01.pcap differ
diff --git a/tests/bug-1401-03/test.yaml b/tests/bug-1401-03/test.yaml
new file mode 100644 (file)
index 0000000..273617c
--- /dev/null
@@ -0,0 +1,11 @@
+requires:
+  features:
+    - HAVE_LIBJANSSON
+
+checks:
+  - filter:
+      count: 1
+      match:
+        event_type: alert
+        alert.signature_id: 1
+
diff --git a/tests/bug-1401-04/2.rules b/tests/bug-1401-04/2.rules
new file mode 100644 (file)
index 0000000..e4b953a
--- /dev/null
@@ -0,0 +1 @@
+alert tcp 66.155.11.238 any -> any any (flow:to_client; flags:SA; sid:2; rev:1;)
diff --git a/tests/bug-1401-04/80000000-037-PTP_Example_IPv4_HTTP_Session-PUBLIC-tp-01.pcap b/tests/bug-1401-04/80000000-037-PTP_Example_IPv4_HTTP_Session-PUBLIC-tp-01.pcap
new file mode 100644 (file)
index 0000000..4c85f66
Binary files /dev/null and b/tests/bug-1401-04/80000000-037-PTP_Example_IPv4_HTTP_Session-PUBLIC-tp-01.pcap differ
diff --git a/tests/bug-1401-04/test.yaml b/tests/bug-1401-04/test.yaml
new file mode 100644 (file)
index 0000000..abe62ba
--- /dev/null
@@ -0,0 +1,11 @@
+requires:
+  features:
+    - HAVE_LIBJANSSON
+
+checks:
+  - filter:
+      count: 1
+      match:
+        event_type: alert
+        alert.signature_id: 2
+