]> git.ipfire.org Git - people/stevee/suricata-verify.git/commitdiff
tests: add bug 2736 tests
authorVictor Julien <victor@inliniac.net>
Mon, 18 Jan 2021 09:45:21 +0000 (10:45 +0100)
committerVictor Julien <victor@inliniac.net>
Mon, 18 Jan 2021 09:56:41 +0000 (10:56 +0100)
tests/bug-2736-01/23_6594.pcap [new file with mode: 0644]
tests/bug-2736-01/test.rules [new file with mode: 0644]
tests/bug-2736-01/test.yaml [new file with mode: 0644]
tests/bug-2736-02/suricata.0400.pcap [new file with mode: 0644]
tests/bug-2736-02/test.rules [new file with mode: 0644]
tests/bug-2736-02/test.yaml [new file with mode: 0644]

diff --git a/tests/bug-2736-01/23_6594.pcap b/tests/bug-2736-01/23_6594.pcap
new file mode 100644 (file)
index 0000000..693cb85
Binary files /dev/null and b/tests/bug-2736-01/23_6594.pcap differ
diff --git a/tests/bug-2736-01/test.rules b/tests/bug-2736-01/test.rules
new file mode 100644 (file)
index 0000000..1af4b79
--- /dev/null
@@ -0,0 +1,6 @@
+alert dns any any -> any 53 ( \
+msg:"DNS - Transaction ID problem, DDNS"; \
+content:"|04|ddns|03|net|00|"; \
+classtype:trojan-activity; \
+sid:1; rev:1;)
+
diff --git a/tests/bug-2736-01/test.yaml b/tests/bug-2736-01/test.yaml
new file mode 100644 (file)
index 0000000..63f19ae
--- /dev/null
@@ -0,0 +1,10 @@
+requires:
+  features:
+    - HAVE_LIBJANSSON
+
+checks:
+  - filter:
+      count: 1
+      match:
+        event_type: alert
+        alert.signature_id: 1
diff --git a/tests/bug-2736-02/suricata.0400.pcap b/tests/bug-2736-02/suricata.0400.pcap
new file mode 100644 (file)
index 0000000..57bafe2
Binary files /dev/null and b/tests/bug-2736-02/suricata.0400.pcap differ
diff --git a/tests/bug-2736-02/test.rules b/tests/bug-2736-02/test.rules
new file mode 100644 (file)
index 0000000..b47f3ad
--- /dev/null
@@ -0,0 +1,5 @@
+alert dns any any -> any 53 ( \
+msg:"DNS - Transaction ID problem, suricata"; \
+content:"suricata"; \
+classtype:trojan-activity; \
+sid:2; rev:1;)
diff --git a/tests/bug-2736-02/test.yaml b/tests/bug-2736-02/test.yaml
new file mode 100644 (file)
index 0000000..eb2358d
--- /dev/null
@@ -0,0 +1,10 @@
+requires:
+  features:
+    - HAVE_LIBJANSSON
+
+checks:
+  - filter:
+      count: 1
+      match:
+        event_type: alert
+        alert.signature_id: 2