]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
Adds test about icmpv6 type and code detection
authorPhilippe Antoine <contact@catenacyber.fr>
Mon, 19 Jul 2021 13:47:40 +0000 (15:47 +0200)
committerJason Ish <jason.ish@oisf.net>
Tue, 28 Sep 2021 16:21:35 +0000 (10:21 -0600)
tests/ipv6-evasion/ipv6-dos-with-ext-headers-5/README.md [new file with mode: 0644]
tests/ipv6-evasion/ipv6-dos-with-ext-headers-5/denial6-5.pcap [new file with mode: 0644]
tests/ipv6-evasion/ipv6-dos-with-ext-headers-5/test.rules [new file with mode: 0644]
tests/ipv6-evasion/ipv6-dos-with-ext-headers-5/test.yaml [new file with mode: 0644]

diff --git a/tests/ipv6-evasion/ipv6-dos-with-ext-headers-5/README.md b/tests/ipv6-evasion/ipv6-dos-with-ext-headers-5/README.md
new file mode 100644 (file)
index 0000000..d250cc3
--- /dev/null
@@ -0,0 +1,11 @@
+# Description
+
+Test detection of DoS attack that tries to increase decoding effort.
+
+# PCAP
+
+Pcap from https://redmine.cs.uni-potsdam.de/projects/pcap/files
+
+# Notes
+
+It might be better to have a dedicated rule that focuses on the DoS aspect.
diff --git a/tests/ipv6-evasion/ipv6-dos-with-ext-headers-5/denial6-5.pcap b/tests/ipv6-evasion/ipv6-dos-with-ext-headers-5/denial6-5.pcap
new file mode 100644 (file)
index 0000000..fefecdb
Binary files /dev/null and b/tests/ipv6-evasion/ipv6-dos-with-ext-headers-5/denial6-5.pcap differ
diff --git a/tests/ipv6-evasion/ipv6-dos-with-ext-headers-5/test.rules b/tests/ipv6-evasion/ipv6-dos-with-ext-headers-5/test.rules
new file mode 100644 (file)
index 0000000..2fe4789
--- /dev/null
@@ -0,0 +1,2 @@
+alert icmpv6 any any -> any any (itype:4; icode:1; sid:1;)
+
diff --git a/tests/ipv6-evasion/ipv6-dos-with-ext-headers-5/test.yaml b/tests/ipv6-evasion/ipv6-dos-with-ext-headers-5/test.yaml
new file mode 100644 (file)
index 0000000..2596570
--- /dev/null
@@ -0,0 +1,11 @@
+
+requires:
+    features:
+        - HAVE_LIBJANSSON
+
+checks:
+    - filter:
+        count: 15
+        match:
+            event_type: alert
+            alert.signature_id: 1